Skip to content

Commit

Permalink
2.0.9 (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
VadVergasov authored Jan 12, 2022
1 parent 571e291 commit 7a950d2
Show file tree
Hide file tree
Showing 9 changed files with 363 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
language: ["python"]
steps:
- name: Checkout repository
uses: actions/checkout@v2.3.4
uses: actions/checkout@v2.4.0
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
name: Check code style
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v2.4.0
- uses: RojerGS/python-black-check@master
with:
line-length: "88"
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v2.4.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
Expand All @@ -38,20 +38,20 @@ jobs:
pip install .
- name: Test with pytest
run: |
pytest tests/test_api.py --api_key ${{ secrets.CODEFORCES_API_KEY }} --api_secret ${{ secrets.CODEFORCES_API_SECRET }} -v
pytest tests/ --api_key ${{ secrets.CODEFORCES_API_KEY }} --api_secret ${{ secrets.CODEFORCES_API_SECRET }} -v
publish:
if: startsWith(github.ref, 'refs/tags/')
needs: test
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v2.4.0
- name: Set up Python 3.9
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v2.3.1
with:
python-version: 3.9
- name: Cache pip
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
Expand All @@ -65,7 +65,7 @@ jobs:
run: |
python setup.py sdist
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
uses: pypa/gh-action-pypi-publish@v1.5.0
with:
password: ${{ secrets.pypi_password }}
release:
Expand All @@ -75,7 +75,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2.3.4
uses: actions/checkout@v2.4.0
- name: Create Release
id: create_release
uses: actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v2.4.0
- name: Install Python 3.8
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v2.3.1
with:
python-version: 3.8
- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
!tests/
tests/*
!tests/test_api.py
!tests/test_api_auth.py
!tests/conftest.py

!codeforces_api/
Expand Down
2 changes: 2 additions & 0 deletions codeforces_api/api_request_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def renew_rand(self, random_number=1000000):
)

def get_response(self, request):
if request.status_code != 200:
raise Exception("Server returned status code: " + str(request.status_code))
try:
response = request.json()
self.check_return_code(response)
Expand Down
2 changes: 1 addition & 1 deletion codeforces_api/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.8"
__version__ = "2.0.9"
58 changes: 30 additions & 28 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,45 +1,47 @@
appdirs==1.4.4
astroid==2.5.7
astroid==2.8.5
atomicwrites==1.4.0
attrs==21.2.0
black==21.5b2
bleach==3.3.0
certifi==2021.5.30
black==21.12b0
bleach==4.1.0
certifi==2021.10.8
chardet==4.0.0
click==8.0.1
charset-normalizer==2.0.9
click==8.0.3
colorama==0.4.4
docutils==0.17.1
docutils==0.18.1
idna==2.10
importlib-metadata==4.5.0
importlib-metadata==4.8.2
iniconfig==1.1.1
isort==5.8.0
keyring==23.0.1
isort==5.10.1
keyring==23.3.0
lazy-object-proxy==1.6.0
lxml==4.6.5
mccabe==0.6.1
mypy-extensions==0.4.3
packaging==20.9
pathspec==0.8.1
pkginfo==1.7.0
pluggy==0.13.1
py==1.10.0
Pygments==2.9.0
pylint==2.8.2
pyparsing==2.4.7
pytest==6.2.4
packaging==21.3
pathspec==0.9.0
pkginfo==1.8.2
pluggy==1.0.0
py==1.11.0
Pygments==2.10.0
pylint==2.11.1
pyparsing==3.0.6
pytest==6.2.5
pywin32-ctypes==0.2.0
readme-renderer==29.0
regex==2021.4.4
requests==2.25.1
readme-renderer==30.0
regex==2021.11.10
requests==2.26.0
requests-toolbelt==0.9.1
rfc3986==1.5.0
six==1.16.0
toml==0.10.2
tqdm==4.61.0
twine==3.4.1
typed-ast==1.4.3
typing-extensions==3.10.0.0
urllib3==1.26.5
tomli==1.2.2
tqdm==4.62.3
twine==3.7.1
typed-ast==1.5.1
typing-extensions==4.0.1
urllib3==1.26.7
webencodings==0.5.1
wrapt==1.12.1
zipp==3.4.1
wrapt==1.13.3
zipp==3.6.0
Loading

0 comments on commit 7a950d2

Please sign in to comment.