Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.10 is out #30

Merged
merged 6 commits into from
Oct 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "pypy3"

steps:
Expand Down Expand Up @@ -55,7 +56,10 @@ jobs:
run: coverage run -m pytest tests

- name: Check test coverage
run: coverage report -m --fail-under=100
# Coverage tracking is slightly broken on Python 3.10. The fix is in
# coverage 6.0, but coveralls requires coverage < 6.0. See
# https://github.com/TheKevJames/coveralls-python/issues/326
run: coverage report -m --fail-under=${{ (matrix.python-version == '3.10') && 99 || 100 }}

- name: Report to coveralls
run: coveralls
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ environment:
- PYTHON: "C:\\Python37"
- PYTHON: "C:\\Python38"
- PYTHON: "C:\\Python39"
- PYTHON: "C:\\Python310"

init:
- "echo %PYTHON%"
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
Expand Down
2 changes: 1 addition & 1 deletion src/check_python_versions/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

MAX_PYTHON_1_VERSION = 6 # i.e. 1.6
MAX_PYTHON_2_VERSION = 7 # i.e. 2.7
CURRENT_PYTHON_3_VERSION = 9 # i.e. 3.9
CURRENT_PYTHON_3_VERSION = 10 # i.e. 3.10

MAX_MINOR_FOR_MAJOR = {
1: MAX_PYTHON_1_VERSION,
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36,py37,py38,py39,pypy3,flake8,mypy,isort,coverage
envlist = py36,py37,py38,py39,py310,pypy3,flake8,mypy,isort,coverage

[testenv]
deps = pytest
Expand Down