Skip to content

Commit

Permalink
feat: add Python 3.10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
alecgerona committed Oct 29, 2021
1 parent 41013ef commit 4f36653
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

strategy:
matrix:
python: [3.6, 3.7, 3.8, 3.9]
python: ['3.6', '3.7', '3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v2
Expand All @@ -40,11 +40,11 @@ jobs:

- name: Check links in Documentation
run: tox -e linkcheck
if: matrix.python == 3.9
if: matrix.python == '3.10'

- name: Run linter
run: tox -e linting
if: matrix.python == 3.9
if: matrix.python == '3.10'

- name: Run test suite
env:
Expand All @@ -62,4 +62,4 @@ jobs:
flags: tests
name: codecov-umbrella
fail_ci_if_error: true
if: matrix.python == 3.9
if: matrix.python == '3.10'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<a href="https://pypi.org/project/PyRMQ/"><img alt="PyPI" src="https://img.shields.io/pypi/v/pyrmq?style=for-the-badge"></a>
<a href="https://pyrmq.readthedocs.io"><img src='https://readthedocs.org/projects/pyrmq/badge/?version=latest&style=for-the-badge' alt='Documentation Status' /></a>
<a href="https://codecov.io/gh/first-digital-finance/pyrmq"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/first-digital-finance/pyrmq/master.svg?style=for-the-badge"></a>
<a href="https://pypi.org/project/PyRMQ/"><img alt="Supports Python >= 3.5" src="https://img.shields.io/pypi/pyversions/pyrmq?style=for-the-badge"/></a>
<a href="https://pypi.org/project/PyRMQ/"><img alt="Supports Python >= 3.6" src="https://img.shields.io/pypi/pyversions/pyrmq?style=for-the-badge"/></a>
<a href="https://mit-license.org" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg?longCache=true&style=for-the-badge" alt="License"></a>
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg?longCache=true&style=for-the-badge"></a>
<a href="https://github.com/PyCQA/isort"><img alt="Imports: isort" src="https://img.shields.io/badge/%20imports-isort-%231674b1?style=for-the-badge&labelColor=ef8336)](https://pycqa.github.io/isort/"></a>
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sphinx==3.5.4
sphinx==4.2.0
3 changes: 3 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pytest==6.2.5
pytest-cov==2.10.1
pre-commit==2.9.3
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
test_suite="pyrmq.tests",
install_requires=["setuptools>=49.6.0", "pika>=1.1.0"],
keywords=["rabbitmq", "pika", "consumer", "publisher", "queue", "messages"],
python_requires=">=3.5",
python_requires=">=3.6",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand All @@ -56,5 +56,6 @@
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)
8 changes: 3 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
[tox]
envlist = linkcheck, linting, py36, py37, py38, py39
envlist = linkcheck, linting, py36, py37, py38, py39, py310

[testenv]
passenv =
RABBITMQ_HOST
RABBITMQ_PORT
REPORT
deps =
pytest==6.2.1
pytest-cov==2.10.1
pre-commit==2.9.3
-rrequirements-test.txt
commands =
pre-commit run --all-files
pytest -v --durations=0 --cov=pyrmq --cov-report=term --cov-report={env:REPORT:html}
Expand All @@ -28,7 +26,7 @@ deps =
commands=pre-commit run --all-files

[testenv:dev]
basepython = python3.9
basepython = python3.10
usedevelop = True
deps =
commands =

0 comments on commit 4f36653

Please sign in to comment.