Skip to content

Commit af6e23a

Browse files
Officially support Python 3.10 (#66)
* testing for Python 3.10 * added flake8 checks for python version comparisons * added classifiers for supported versions
1 parent 03a7fc8 commit af6e23a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/unittests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ['3.6', '3.7', '3.8', '3.9', 'pypy-3.6', 'pypy-3.7']
10+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.6', 'pypy-3.7']
1111

1212
steps:
1313
- uses: actions/checkout@v2

asyncstdlib/_typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import sys
88
from typing import TypeVar, Hashable, Union, AsyncIterable, Iterable, Callable
99

10-
if sys.version_info[:2] >= (3, 8):
10+
if sys.version_info >= (3, 8):
1111
from typing import Protocol, AsyncContextManager, ContextManager, TypedDict
1212
else:
1313
from typing_extensions import (

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ classifiers = [
1515
"Intended Audience :: Developers",
1616
"License :: OSI Approved :: MIT License",
1717
"Programming Language :: Python :: 3 :: Only",
18+
"Programming Language :: Python :: 3.6",
19+
"Programming Language :: Python :: 3.7",
20+
"Programming Language :: Python :: 3.8",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
1823
]
1924
requires-python = "~=3.6"
2025
requires = ["typing_extensions; python_version<'3.8'"]
@@ -27,6 +32,7 @@ test = [
2732
"black; implementation_name=='cpython'",
2833
"coverage",
2934
"pytest-cov",
35+
"flake8-2020",
3036
"mypy; implementation_name=='cpython'",
3137
]
3238
doc = ["sphinx", "sphinxcontrib-trio"]

0 commit comments

Comments
 (0)