8000 Remove token restrictions (#289) · codecov/codecov-python@fb3a25c · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit fb3a25c

Browse files
authored
Remove token restrictions (#289)
* Remove token restrictions * Update version to 2.1.9 * Fix tests * force * Update CHANGELOG.md
1 parent 066706e commit fb3a25c

File tree

5 files changed

+12
-27
lines changed

5 files changed

+12
-27
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### `2.1.9`
2+
3+
- [#289](https://github.com/codecov/codecov-python/pull/289)Remove token restriction as it is changed server-side
4+
15
### `2.1.8`
26

37
- [#285](https://github.com/codecov/codecov-python/pull/285)Add support for CODECOV_FLAGS

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
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)
1+
Codecov Global Python Uploader
2+
[![codecov.io](https://codecov.io/github/codecov/codecov-python/coverage.svg?branc 10000 h=master)](https://codecov.io/github/codecov/codecov-python)
3+
![PyPI](https://img.shields.io/pypi/v/codecov)
4+
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
25
=======
3-
| [https://codecov.io/][1] | [https://community.codecov.io/][2] | [@codecov][3] | [hello@codecov.io][4] |
4-
| ------------------------ | ---------------------------------- | ------------- | --------------------- |
6+
| [Support][1] | [Documentation][2] | [Community Boards][3] | [Twitter][4] |
7+
| ------------ | ------------------ | --------------------- | ------------ |
58

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

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

101104

102105

103-
[1]: https://codecov.io/
106+
[1]: https://codecov.io/support/
104107
[2]: https://community.codecov.io/
105108
[3]: https://twitter.com/codecov
106-
[4]: mailto:hello@codecov.io
107109

108110
## Copyright
109111

codecov/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -953,8 +953,6 @@ def main(*argv, **kwargs):
953953
if _slug:
954954
query["slug"] = _slug.groups()[1]
955955

956-
assert query.get("job") or query.get("token"), "Missing repository upload token"
957-
958956
# Processing gcov
959957
# ---------------
960958
if "gcov" in codecov.disable:
@@ -1189,13 +1187,6 @@ def main(*argv, **kwargs):
11891187
"Tip: See all example repositories: https://github.com/codecov?query=example"
11901188
)
11911189

1192-
write("Support channels:", "green")
1193-
write(
1194-
" Email: hello@codecov.io\n"
1195-
" IRC: #codecov\n"
1196-
" Gitter: https://gitter.im/codecov/support\n"
1197-
" Twitter: @codecov\n"
1198-
)
11991190
sys.exit(1 if codecov.required else 0)
12001191

12011192
else:

codecov/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
__license__ = "Apache 2.0"
66
__title__ = "codecov"
77
__url__ = "https://github.com/codecov/codecov-python"
8-
__version__ = "2.1.8"
8+
__version__ = "2.1.9"

tests/test.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -294,18 +294,6 @@ def test_send_error(self):
294294
else:
295295
raise Exception("400 never raised")
296296

297-
@data((dict(commit="sha"), "Missing repository upload token"),)
298-
def test_require_branch(self, dd):
299-
(kwargs, reason) = dd
300-
# this is so we dont get branch for local git
301-
self.set_env(JENKINS_URL="hello")
302-
try:
303-
self.run_cli(**kwargs)
304-
except AssertionError as e:
305-
self.assertEqual(str(e), reason)
306-
else:
307-
raise Exception("Did not raise AssertionError")
308-
309297
@unittest.skipIf(
310298
os.getenv("CI") == "True" and os.getenv("APPVEYOR") == "True",
311299
"Skip AppVeyor CI test",

0 commit comments

Comments
 (0)
0