Skip to content

Commit

Permalink
Merge pull request #58 from evo-company/add-py3.10-support
Browse files Browse the repository at this point in the history
Add py3.10 support
  • Loading branch information
kindermax committed Feb 3, 2022
2 parents 451d0e7 + 8b78188 commit 9e243a0
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -19,7 +19,7 @@ jobs:
python -m pip install tox tox-gh-actions codecov
python -m pip install -r requirements-tox.txt
- name: Run flake8
if: startsWith(matrix.python-version, '3.9')
if: startsWith(matrix.python-version, '3.10')
run: tox -e flake8
- name: Run unit tests
run: tox -- --cov
13 changes: 13 additions & 0 deletions docs/changelog/changes_07.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Changes in 0.7
==============

Unreleased
~~~~~~~~~~

- Dropped support for Python 3.6, which ended support on 2021-12-23.
- Added support for Python 3.10

Backward-incompatible changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Dropped Python 3.6 support, minimum supported version now is Python 3.7
1 change: 1 addition & 0 deletions docs/changelog/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
.. toctree::
:maxdepth: 2

changes_07
changes_06
changes_05
changes_04
Expand Down
55 changes: 36 additions & 19 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,41 @@
#
# This file is autogenerated by pip-compile
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
#
# pip-compile requirements-tests.in
#
astor==0.8.1 # via -r requirements-tests.in
attrs==20.2.0 # via pytest
coverage==5.3 # via pytest-cov
faker==4.4.0 # via -r requirements-tests.in
importlib-metadata==2.0.0 # via pluggy, pytest
iniconfig==1.0.1 # via pytest
packaging==20.4 # via pytest
pluggy==0.13.1 # via pytest
py==1.9.0 # via pytest
pyparsing==2.4.7 # via packaging
pytest-asyncio==0.14.0 # via -r requirements-tests.in
pytest-cov==2.10.1 # via -r requirements-tests.in
pytest==6.1.1 # via -r requirements-tests.in, pytest-asyncio, pytest-cov
python-dateutil==2.8.1 # via faker
six==1.15.0 # via packaging, python-dateutil
text-unidecode==1.3 # via faker
toml==0.10.1 # via pytest
zipp==3.3.0 # via importlib-metadata
astor==0.8.1
# via -r requirements-tests.in
attrs==21.4.0
# via pytest
coverage[toml]==6.3.1
# via pytest-cov
faker==12.0.0
# via -r requirements-tests.in
iniconfig==1.1.1
# via pytest
packaging==21.3
# via pytest
pluggy==1.0.0
# via pytest
py==1.11.0
# via pytest
pyparsing==3.0.7
# via packaging
pytest==6.2.5
# via
# -r requirements-tests.in
# pytest-asyncio
# pytest-cov
pytest-asyncio==0.17.2
# via -r requirements-tests.in
pytest-cov==3.0.0
# via -r requirements-tests.in
python-dateutil==2.8.2
# via faker
six==1.16.0
# via python-dateutil
toml==0.10.2
# via pytest
tomli==2.0.0
# via coverage
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
# pip-compile requirements.in
#
aiopg==1.0.0 # via -r requirements.in
graphql-core==3.1.2 ; python_version >= "3.6" # via -r requirements.in
graphql-core==3.1.2 ; python_version >= "3.7" # via -r requirements.in
prometheus-client==0.8.0 # via -r requirements.in
protobuf==3.13.0 # via -r requirements.in
psycopg2-binary==2.8.6 # via aiopg
six==1.15.0 # via protobuf
six==1.16.0 # via protobuf
sqlalchemy==1.3.19 # via -r requirements.in

# The following packages are considered to be unsafe in a requirements file:
Expand Down
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,18 @@
packages=find_packages(exclude=['test*']),
include_package_data=True,
license='BSD-3-Clause',
python_requires='>=3.6',
python_requires='>=3.7',
install_requires=[],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Libraries :: Python Modules',
],
Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py35,py36,py37,pypy3,py38,py39
envlist = py37,pypy3,py38,py39,py310

[testenv]
commands = py.test tests {posargs}
Expand All @@ -26,11 +26,10 @@ filterwarnings =

[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310

[coverage:run]
branch = True
Expand Down

0 comments on commit 9e243a0

Please sign in to comment.