Skip to content

Commit 15ec7da

Browse files
committed
Change supported Python versions
Python 3.6 is at EOL and 3.10 was released around 2 months ago. This allows the conditional dataclasses requirement to be removed.
1 parent fb6c715 commit 15ec7da

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ jobs:
1313
max-parallel: 5
1414
matrix:
1515
python-version:
16-
- 3.6
1716
- 3.7
1817
- 3.8
1918
- 3.9
20-
- pypy3
19+
- "3.10"
20+
- pypy-3.7
21+
- pypy-3.8
2122

2223
steps:
2324
- uses: actions/checkout@v2

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ library.
112112
It has a test suite with 100.0% coverage for both statements and
113113
branches.
114114

115-
Currently it supports Python 3 (testing on 3.6-3.9) and PyPy 3.
115+
Currently it supports Python 3 (testing on 3.7-3.10) and PyPy 3.
116116
The last Python 2-compatible version was h11 0.11.x.
117117
(Originally it had a Cython wrapper for `http-parser
118118
<https://github.com/nodejs/http-parser>`_ and a beautiful nested state

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ whatever. But h11 makes it much easier to implement something like
4444
Vital statistics
4545
----------------
4646

47-
* Requirements: Python 3.6+ (PyPy works great)
47+
* Requirements: Python 3.7+ (PyPy works great)
4848

4949
The last Python 2-compatible version was h11 0.11.x.
5050

newsfragments/138.removal.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Python 3.6 support is removed. h11 now requires Python>=3.7 including
2+
PyPy 3. Users running `pip install h11` on Python 2 will
3+
automatically get the last Python 2-compatible version.

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
# This means, just install *everything* you see under h11/, even if it
1919
# doesn't look like a source file, so long as it appears in MANIFEST.in:
2020
include_package_data=True,
21-
python_requires=">=3.6",
21+
python_requires=">=3.7",
2222
install_requires=[
23-
"dataclasses; python_version < '3.7'",
2423
"typing_extensions; python_version < '3.8'",
2524
],
2625
classifiers=[
@@ -31,10 +30,10 @@
3130
"Programming Language :: Python :: Implementation :: PyPy",
3231
"Programming Language :: Python :: 3",
3332
"Programming Language :: Python :: 3 :: Only",
34-
"Programming Language :: Python :: 3.6",
3533
"Programming Language :: Python :: 3.7",
3634
"Programming Language :: Python :: 3.8",
3735
"Programming Language :: Python :: 3.9",
36+
"Programming Language :: Python :: 3.10",
3837
"Topic :: Internet :: WWW/HTTP",
3938
"Topic :: System :: Networking",
4039
],

tox.ini

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
[tox]
2-
envlist = format, py36, py37, py38, py39, pypy3, mypy
2+
envlist = format, py37, py38, py39, py310, pypy3, mypyp
33

44
[gh-actions]
55
python =
6-
3.6: py36
76
3.7: py37
8-
3.8: py38, format, mypy
7+
3.8: py38
98
3.9: py39
10-
pypy3: pypy3
9+
3.10: py310, format, mypy
10+
pypy-3.7: pypy3
11+
pypy-3.8: pypy3
1112

1213
[testenv]
1314
deps = -r{toxinidir}/test-requirements.txt
1415
commands = pytest --cov=h11 --cov-config=.coveragerc h11
1516

1617
[testenv:format]
17-
basepython = python3.8
18+
basepython = python3.10
1819
deps =
1920
black
2021
isort

0 commit comments

Comments
 (0)