Skip to content

Commit 1251f26

Browse files
authored
Add Python 3.12 and PyPy 3.10 to CI. (#218)
* Add Python 3.12 and PyPy 3.10 to CI. * Fix and pin flake8. * Bump pylint.
1 parent fe2eed8 commit 1251f26

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ jobs:
1818
- python-version: "3.8"
1919
env:
2020
TOXENV: docs
21-
- python-version: "3.11"
21+
- python-version: "3.12"
2222
env:
2323
TOXENV: flake8
24-
- python-version: "3.11"
24+
- python-version: "3.12"
2525
env:
2626
TOXENV: pylint
27-
- python-version: "3.11"
27+
- python-version: "3.12"
2828
env:
2929
TOXENV: security
30-
- python-version: "3.11"
30+
- python-version: "3.12"
3131
env:
3232
TOXENV: black
33-
- python-version: "3.11"
33+
- python-version: "3.12"
3434
env:
3535
TOXENV: typing
3636

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15-
- name: Set up Python 3.9
15+
- name: Set up Python 3.12
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.9
18+
python-version: 3.12
1919

2020
- name: Check Tag
2121
id: check-release-tag

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.8"]
17+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.10"]
1818

1919
steps:
2020
- uses: actions/checkout@v4

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"Programming Language :: Python :: 3.9",
3333
"Programming Language :: Python :: 3.10",
3434
"Programming Language :: Python :: 3.11",
35+
"Programming Language :: Python :: 3.12",
3536
"Programming Language :: Python :: Implementation :: CPython",
3637
"Programming Language :: Python :: Implementation :: PyPy",
3738
"Topic :: Internet :: WWW/HTTP",

tests/test_url.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,15 @@
227227
# domain name labels (63 characters) and the domain name as a whole (253
228228
# characters). However, all cases are expected to pass because the URL
229229
# living standard does not require domain names to be within these limits.
230-
(f"https://{'a'*63}.example", f"https://{'a'*63}.example"),
231-
(f"https://{'a'*64}.example", f"https://{'a'*64}.example"),
230+
(f"https://{'a' * 63}.example", f"https://{'a' * 63}.example"),
231+
(f"https://{'a' * 64}.example", f"https://{'a' * 64}.example"),
232232
(
233-
f"https://{'a'*63}.{'a'*63}.{'a'*63}.{'a'*53}.example",
234-
f"https://{'a'*63}.{'a'*63}.{'a'*63}.{'a'*53}.example",
233+
f"https://{'a' * 63}.{'a' * 63}.{'a' * 63}.{'a' * 53}.example",
234+
f"https://{'a' * 63}.{'a' * 63}.{'a' * 63}.{'a' * 53}.example",
235235
),
236236
(
237-
f"https://{'a'*63}.{'a'*63}.{'a'*63}.{'a'*54}.example",
238-
f"https://{'a'*63}.{'a'*63}.{'a'*63}.{'a'*54}.example",
237+
f"https://{'a' * 63}.{'a' * 63}.{'a' * 63}.{'a' * 54}.example",
238+
f"https://{'a' * 63}.{'a' * 63}.{'a' * 63}.{'a' * 54}.example",
239239
),
240240
("https://ñ.example", "https://xn--ida.example"),
241241
("http://192.168.0.0", "http://192.168.0.0"),

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py37, py38, py39, py310, pypy3, docs, security, flake8, pylint, black, typing
7+
envlist = py38, py39, py310, py311, py312, pypy3, docs, security, flake8, pylint, black, typing
88

99
[testenv]
1010
deps =
@@ -34,15 +34,15 @@ commands =
3434
[testenv:flake8]
3535
basepython = python3
3636
deps =
37-
flake8
37+
flake8==6.1.0
3838
commands =
3939
flake8 \
4040
{posargs:w3lib tests setup.py}
4141

4242
[testenv:pylint]
4343
deps =
4444
{[testenv]deps}
45-
pylint==2.17.4
45+
pylint==3.0.0
4646
commands =
4747
pylint conftest.py docs setup.py tests w3lib
4848

0 commit comments

Comments
 (0)