Skip to content

Commit 2a3c000

Browse files
authored
Add Python 3.13, drop Python 3.8, update tool versions (#232)
1 parent a50090f commit 2a3c000

File tree

11 files changed

+23
-21
lines changed

11 files changed

+23
-21
lines changed

.github/workflows/build.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,22 @@ jobs:
1313

1414
runs-on: ubuntu-latest
1515
strategy:
16+
fail-fast: false
1617
matrix:
1718
include:
1819
- python-version: "3.12" # Keep in sync with .readthedocs.yml
1920
env:
2021
TOXENV: docs
21-
- python-version: "3.12"
22+
- python-version: "3.13"
2223
env:
2324
TOXENV: pre-commit
24-
- python-version: "3.12"
25+
- python-version: "3.13"
2526
env:
2627
TOXENV: pylint
27-
- python-version: "3.12"
28+
- python-version: "3.13"
2829
env:
2930
TOXENV: typing
30-
- python-version: "3.12"
31+
- python-version: "3.13"
3132
env:
3233
TOXENV: twinecheck
3334

.github/workflows/publish.yml

+2-2
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.12
15+
- name: Set up Python 3.13
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: 3.12
18+
python-version: 3.13
1919

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

.github/workflows/tests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313

1414
runs-on: ubuntu-latest
1515
strategy:
16+
fail-fast: false
1617
matrix:
17-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.10"]
18+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.10"]
1819

1920
steps:
2021
- uses: actions/checkout@v4

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
repos:
22
- repo: https://github.com/PyCQA/bandit
3-
rev: 1.7.8
3+
rev: 1.7.10
44
hooks:
55
- id: bandit
66
args: [-r, -c, .bandit.yml]
77
- repo: https://github.com/PyCQA/flake8
8-
rev: 7.0.0
8+
rev: 7.1.1
99
hooks:
1010
- id: flake8
1111
- repo: https://github.com/psf/black.git
12-
rev: 24.4.2
12+
rev: 24.10.0
1313
hooks:
1414
- id: black
1515
- repo: https://github.com/pycqa/isort

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This is a Python library of web-related functions, such as:
2727
Requirements
2828
============
2929

30-
Python 3.8+
30+
Python 3.9+
3131

3232
Install
3333
=======

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
templates_path = ["_templates"]
3838

3939
# The suffix of source filenames.
40-
source_suffix = ".rst"
40+
source_suffix = {".rst": "restructuredtext"}
4141

4242
# The encoding of source files.
4343
# source_encoding = 'utf-8-sig'

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Modules
2828
Requirements
2929
============
3030

31-
Python 3.8+
31+
Python 3.9+
3232

3333
Install
3434
=======

docs/requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
docutils<0.18 # https://github.yuuza.net/sphinx-doc/sphinx/issues/9727
21
sphinx
32
sphinx-hoverxref
43
sphinx-notfound-page

pylintrc

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ disable=bad-continuation,
2727
too-many-arguments,
2828
too-many-branches,
2929
too-many-lines,
30+
too-many-positional-arguments,
3031
too-many-public-methods,
3132
trailing-comma-tuple,
3233
trailing-newlines,

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@
2525
include_package_data=True,
2626
zip_safe=False,
2727
platforms=["Any"],
28-
python_requires=">=3.8",
28+
python_requires=">=3.9",
2929
classifiers=[
3030
"Development Status :: 5 - Production/Stable",
3131
"License :: OSI Approved :: BSD License",
3232
"Operating System :: OS Independent",
3333
"Programming Language :: Python",
3434
"Programming Language :: Python :: 3",
35-
"Programming Language :: Python :: 3.8",
3635
"Programming Language :: Python :: 3.9",
3736
"Programming Language :: Python :: 3.10",
3837
"Programming Language :: Python :: 3.11",
3938
"Programming Language :: Python :: 3.12",
39+
"Programming Language :: Python :: 3.13",
4040
"Programming Language :: Python :: Implementation :: CPython",
4141
"Programming Language :: Python :: Implementation :: PyPy",
4242
"Topic :: Internet :: WWW/HTTP",

tox.ini

+5-5
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 = py38, py39, py310, py311, py312, pypy3, docs, pylint, typing, pre-commit, twinecheck
7+
envlist = py39, py310, py311, py312, py313, pypy3.10, docs, pylint, typing, pre-commit, twinecheck
88

99
[testenv]
1010
deps =
@@ -21,14 +21,14 @@ basepython = python3
2121
deps =
2222
# mypy would error if pytest (or its stub) not found
2323
pytest
24-
mypy==1.10.0
24+
mypy==1.11.2
2525
commands =
2626
mypy --strict {posargs: w3lib tests}
2727

2828
[testenv:pylint]
2929
deps =
3030
{[testenv]deps}
31-
pylint==3.2.2
31+
pylint==3.3.1
3232
commands =
3333
pylint conftest.py docs setup.py tests w3lib
3434

@@ -46,8 +46,8 @@ skip_install = true
4646
[testenv:twinecheck]
4747
basepython = python3
4848
deps =
49-
twine==5.1.0
50-
build==1.2.1
49+
twine==5.1.1
50+
build==1.2.2
5151
commands =
5252
python -m build --sdist
5353
twine check dist/*

0 commit comments

Comments
 (0)