Skip to content

Commit d616fcf

Browse files
authored
Merge pull request #68 from scrapy/modernize
Add Python 3.13, drop Python 3.8, update tool versions
2 parents eaf206d + a63bd84 commit d616fcf

File tree

6 files changed

+21
-22
lines changed

6 files changed

+21
-22
lines changed

.github/workflows/checks.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ jobs:
55
checks:
66
runs-on: ubuntu-latest
77
strategy:
8+
fail-fast: false
89
matrix:
910
include:
10-
- python-version: 3.12
11+
- python-version: 3.13
1112
env:
1213
TOXENV: pylint
13-
- python-version: 3.12
14+
- python-version: 3.13
1415
env:
1516
TOXENV: typing
16-
- python-version: 3.12
17+
- python-version: 3.13
1718
env:
1819
TOXENV: twinecheck
1920

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212

13-
- name: Set up Python 3.12
13+
- name: Set up Python 3.13
1414
uses: actions/setup-python@v5
1515
with:
16-
python-version: 3.12
16+
python-version: 3.13
1717

1818
- name: Build
1919
run: |
2020
pip install --upgrade build twine
2121
python -m build
2222
2323
- name: Publish to PyPI
24-
uses: pypa/gh-action-pypi-publish@v1.8.14
24+
uses: pypa/gh-action-pypi-publish@v1.10.3
2525
with:
2626
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/tests.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ jobs:
55
tests:
66
runs-on: ubuntu-latest
77
strategy:
8+
fail-fast: false
89
matrix:
910
include:
10-
- python-version: 3.8
11-
env:
12-
TOXENV: py
13-
- python-version: 3.9
11+
- python-version: "3.9"
1412
env:
1513
TOXENV: py
1614
- python-version: "3.10"
@@ -22,9 +20,9 @@ jobs:
2220
- python-version: "3.12"
2321
env:
2422
TOXENV: py
25-
- python-version: pypy3.9
23+
- python-version: "3.13"
2624
env:
27-
TOXENV: pypy
25+
TOXENV: py
2826
- python-version: pypy3.10
2927
env:
3028
TOXENV: pypy

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
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

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
"queuelib": ["py.typed"],
1616
},
1717
platforms=["Any"],
18-
python_requires=">=3.8",
18+
python_requires=">=3.9",
1919
classifiers=[
2020
"Development Status :: 5 - Production/Stable",
2121
"License :: OSI Approved :: BSD License",
2222
"Operating System :: OS Independent",
2323
"Programming Language :: Python",
2424
"Programming Language :: Python :: 3",
25-
"Programming Language :: Python :: 3.8",
2625
"Programming Language :: Python :: 3.9",
2726
"Programming Language :: Python :: 3.10",
2827
"Programming Language :: Python :: 3.11",
2928
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: 3.13",
3030
"Programming Language :: Python :: Implementation :: CPython",
3131
"Programming Language :: Python :: Implementation :: PyPy",
3232
],

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@ commands =
1818
basepython = python3
1919
deps =
2020
{[testenv]deps}
21-
pylint==3.1.0
21+
pylint==3.3.1
2222
commands =
2323
pylint {posargs:queuelib setup.py}
2424

2525
[testenv:typing]
2626
basepython = python3
2727
deps =
28-
mypy==1.10.0
29-
pytest==8.2.0
28+
mypy==1.11.2
29+
pytest==8.3.3
3030
commands =
3131
mypy --strict {posargs:queuelib}
3232

3333
[testenv:twinecheck]
3434
basepython = python3
3535
deps =
36-
twine==5.0.0
37-
build==1.2.1
36+
twine==5.1.1
37+
build==1.2.2
3838
commands =
3939
python -m build --sdist
4040
twine check dist/*

0 commit comments

Comments
 (0)