Skip to content

Commit 7a950d2

Browse files
authored
2.0.9 (#209)
1 parent 571e291 commit 7a950d2

File tree

9 files changed

+363
-42
lines changed

9 files changed

+363
-42
lines changed

.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
language: ["python"]
2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v2.3.4
25+
uses: actions/checkout@v2.4.0
2626
- name: Initialize CodeQL
2727
uses: github/codeql-action/init@v1
2828
with:

.github/workflows/codestyle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
name: Check code style
1717
steps:
18-
- uses: actions/checkout@v2.3.4
18+
- uses: actions/checkout@v2.4.0
1919
- uses: RojerGS/python-black-check@master
2020
with:
2121
line-length: "88"

.github/workflows/publish.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
matrix:
2222
python-version: [3.6, 3.7, 3.8, 3.9]
2323
steps:
24-
- uses: actions/checkout@v2.3.4
24+
- uses: actions/checkout@v2.4.0
2525
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v2.2.2
26+
uses: actions/setup-python@v2.3.1
2727
with:
2828
python-version: ${{ matrix.python-version }}
2929
- name: Cache pip
30-
uses: actions/[email protected].6
30+
uses: actions/[email protected].7
3131
with:
3232
path: ~/.cache/pip
3333
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
@@ -38,20 +38,20 @@ jobs:
3838
pip install .
3939
- name: Test with pytest
4040
run: |
41-
pytest tests/test_api.py --api_key ${{ secrets.CODEFORCES_API_KEY }} --api_secret ${{ secrets.CODEFORCES_API_SECRET }} -v
41+
pytest tests/ --api_key ${{ secrets.CODEFORCES_API_KEY }} --api_secret ${{ secrets.CODEFORCES_API_SECRET }} -v
4242
publish:
4343
if: startsWith(github.ref, 'refs/tags/')
4444
needs: test
4545
name: Build and publish Python 🐍 distributions 📦 to PyPI
4646
runs-on: ubuntu-latest
4747
steps:
48-
- uses: actions/checkout@v2.3.4
48+
- uses: actions/checkout@v2.4.0
4949
- name: Set up Python 3.9
50-
uses: actions/setup-python@v2.2.2
50+
uses: actions/setup-python@v2.3.1
5151
with:
5252
python-version: 3.9
5353
- name: Cache pip
54-
uses: actions/[email protected].6
54+
uses: actions/[email protected].7
5555
with:
5656
path: ~/.cache/pip
5757
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
@@ -65,7 +65,7 @@ jobs:
6565
run: |
6666
python setup.py sdist
6767
- name: Publish distribution 📦 to PyPI
68-
uses: pypa/gh-action-pypi-publish@v1.4.2
68+
uses: pypa/gh-action-pypi-publish@v1.5.0
6969
with:
7070
password: ${{ secrets.pypi_password }}
7171
release:
@@ -75,7 +75,7 @@ jobs:
7575
runs-on: ubuntu-latest
7676
steps:
7777
- name: Checkout code
78-
uses: actions/checkout@v2.3.4
78+
uses: actions/checkout@v2.4.0
7979
- name: Create Release
8080
id: create_release
8181
uses: actions/[email protected]

.github/workflows/wiki.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2.3.4
14+
- uses: actions/checkout@v2.4.0
1515
- name: Install Python 3.8
16-
uses: actions/setup-python@v2.2.2
16+
uses: actions/setup-python@v2.3.1
1717
with:
1818
python-version: 3.8
1919
- name: Install dependencies

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
!tests/
1111
tests/*
1212
!tests/test_api.py
13+
!tests/test_api_auth.py
1314
!tests/conftest.py
1415

1516
!codeforces_api/

codeforces_api/api_request_maker.py

+2
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def renew_rand(self, random_number=1000000):
101101
)
102102

103103
def get_response(self, request):
104+
if request.status_code != 200:
105+
raise Exception("Server returned status code: " + str(request.status_code))
104106
try:
105107
response = request.json()
106108
self.check_return_code(response)

codeforces_api/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.0.8"
1+
__version__ = "2.0.9"

requirements.txt

+30-28
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,47 @@
11
appdirs==1.4.4
2-
astroid==2.5.7
2+
astroid==2.8.5
33
atomicwrites==1.4.0
44
attrs==21.2.0
5-
black==21.5b2
6-
bleach==3.3.0
7-
certifi==2021.5.30
5+
black==21.12b0
6+
bleach==4.1.0
7+
certifi==2021.10.8
88
chardet==4.0.0
9-
click==8.0.1
9+
charset-normalizer==2.0.9
10+
click==8.0.3
1011
colorama==0.4.4
11-
docutils==0.17.1
12+
docutils==0.18.1
1213
idna==2.10
13-
importlib-metadata==4.5.0
14+
importlib-metadata==4.8.2
1415
iniconfig==1.1.1
15-
isort==5.8.0
16-
keyring==23.0.1
16+
isort==5.10.1
17+
keyring==23.3.0
1718
lazy-object-proxy==1.6.0
1819
lxml==4.6.5
1920
mccabe==0.6.1
2021
mypy-extensions==0.4.3
21-
packaging==20.9
22-
pathspec==0.8.1
23-
pkginfo==1.7.0
24-
pluggy==0.13.1
25-
py==1.10.0
26-
Pygments==2.9.0
27-
pylint==2.8.2
28-
pyparsing==2.4.7
29-
pytest==6.2.4
22+
packaging==21.3
23+
pathspec==0.9.0
24+
pkginfo==1.8.2
25+
pluggy==1.0.0
26+
py==1.11.0
27+
Pygments==2.10.0
28+
pylint==2.11.1
29+
pyparsing==3.0.6
30+
pytest==6.2.5
3031
pywin32-ctypes==0.2.0
31-
readme-renderer==29.0
32-
regex==2021.4.4
33-
requests==2.25.1
32+
readme-renderer==30.0
33+
regex==2021.11.10
34+
requests==2.26.0
3435
requests-toolbelt==0.9.1
3536
rfc3986==1.5.0
3637
six==1.16.0
3738
toml==0.10.2
38-
tqdm==4.61.0
39-
twine==3.4.1
40-
typed-ast==1.4.3
41-
typing-extensions==3.10.0.0
42-
urllib3==1.26.5
39+
tomli==1.2.2
40+
tqdm==4.62.3
41+
twine==3.7.1
42+
typed-ast==1.5.1
43+
typing-extensions==4.0.1
44+
urllib3==1.26.7
4345
webencodings==0.5.1
44-
wrapt==1.12.1
45-
zipp==3.4.1
46+
wrapt==1.13.3
47+
zipp==3.6.0

0 commit comments

Comments
 (0)