Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Remove token restrictions #289

Merged
merged 5 commits into from Aug 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
### `2.1.9`

- [#289](https://github.com/codecov/codecov-python/pull/289)Remove token restriction as it is changed server-side

### `2.1.8`

- [#285](https://github.com/codecov/codecov-python/pull/285)Add support for CODECOV_FLAGS
Expand Down
12 changes: 7 additions & 5 deletions README.md
@@ -1,7 +1,10 @@
Codecov Global Python Uploader ![PyPI](https://img.shields.io/pypi/v/codecov) [![codecov.io](https://codecov.io/github/codecov/codecov-python/coverage.svg?branch=master)](https://codecov.io/github/codecov/codecov-python) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
Codecov Global Python Uploader
[![codecov.io](https://codecov.io/github/codecov/codecov-python/coverage.svg?branch=master)](https://codecov.io/github/codecov/codecov-python)
![PyPI](https://img.shields.io/pypi/v/codecov)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
=======
| [https://codecov.io/][1] | [https://community.codecov.io/][2] | [@codecov][3] | [hello@codecov.io][4] |
| ------------------------ | ---------------------------------- | ------------- | --------------------- |
| [Support][1] | [Documentation][2] | [Community Boards][3] | [Twitter][4] |
| ------------ | ------------------ | --------------------- | ------------ |

Find coverage reports for all the [languages below](#languages), gather them and submit them to Codecov.

Expand Down Expand Up @@ -100,10 +103,9 @@ If you're seeing an **HTTP 400 error when uploading reports to S3**, make sure y



[1]: https://codecov.io/
[1]: https://codecov.io/support/
[2]: https://community.codecov.io/
[3]: https://twitter.com/codecov
[4]: mailto:hello@codecov.io

## Copyright

Expand Down
9 changes: 0 additions & 9 deletions codecov/__init__.py
Expand Up @@ -953,8 +953,6 @@ def main(*argv, **kwargs):
if _slug:
query["slug"] = _slug.groups()[1]

assert query.get("job") or query.get("token"), "Missing repository upload token"

# Processing gcov
# ---------------
if "gcov" in codecov.disable:
Expand Down Expand Up @@ -1189,13 +1187,6 @@ def main(*argv, **kwargs):
"Tip: See all example repositories: https://github.com/codecov?query=example"
)

write("Support channels:", "green")
write(
" Email: hello@codecov.io\n"
" IRC: #codecov\n"
" Gitter: https://gitter.im/codecov/support\n"
" Twitter: @codecov\n"
)
sys.exit(1 if codecov.required else 0)

else:
Expand Down
2 changes: 1 addition & 1 deletion codecov/__version__.py
Expand Up @@ -5,4 +5,4 @@
__license__ = "Apache 2.0"
__title__ = "codecov"
__url__ = "https://github.com/codecov/codecov-python"
__version__ = "2.1.8"
__version__ = "2.1.9"
12 changes: 0 additions & 12 deletions tests/test.py
Expand Up @@ -294,18 +294,6 @@ def test_send_error(self):
else:
raise Exception("400 never raised")

@data((dict(commit="sha"), "Missing repository upload token"),)
def test_require_branch(self, dd):
(kwargs, reason) = dd
# this is so we dont get branch for local git
self.set_env(JENKINS_URL="hello")
try:
self.run_cli(**kwargs)
except AssertionError as e:
self.assertEqual(str(e), reason)
else:
raise Exception("Did not raise AssertionError")

@unittest.skipIf(
os.getenv("CI") == "True" and os.getenv("APPVEYOR") == "True",
"Skip AppVeyor CI test",
Expand Down