Skip to content

Commit e00c152

Browse files
authored
Merge pull request #127 from scrapy-plugins/modernize
Add Python 3.13, bump (some) tool versions, add twinecheck
2 parents 249e79f + 7450c03 commit e00c152

File tree

7 files changed

+33
-15
lines changed

7 files changed

+33
-15
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: CI
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
37
jobs:
48
build:
59
runs-on: ubuntu-latest
610
strategy:
11+
fail-fast: false
712
matrix:
813
include:
914
- python-version: "2.7"
@@ -41,14 +46,20 @@ jobs:
4146
- python-version: "3.12"
4247
env:
4348
TOXENV: py
44-
- python-version: "3.12"
49+
- python-version: "3.13"
50+
env:
51+
TOXENV: py
52+
- python-version: "3.13"
4553
env:
4654
TOXENV: pre-commit
47-
- python-version: "3.12"
55+
- python-version: "3.12" # Keep in sync with .readthedocs.yml
4856
env:
4957
TOXENV: docs
58+
- python-version: "3.13"
59+
env:
60+
TOXENV: twinecheck
5061
steps:
51-
- uses: actions/checkout@v2
62+
- uses: actions/checkout@v4
5263
- name: Set up Python ${{ matrix.python-version }}
5364
uses: MatteoH2O1999/setup-python@v4
5465
with:

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ jobs:
66
deploy:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1010
- name: Set up Python
11-
uses: actions/setup-python@v2
11+
uses: actions/setup-python@v5
1212
with:
13-
python-version: "3.x"
13+
python-version: "3.13"
1414
- name: Install dependencies
1515
run: |
1616
python -m pip install --upgrade pip

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/PyCQA/bandit
3-
rev: 1.7.9
3+
rev: 1.7.10
44
hooks:
55
- id: bandit
66
args: [-r, -c, .bandit.yml]

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ build:
1414
python:
1515
install:
1616
- requirements: docs/requirements.txt
17-
- path: .
17+
- path: .

docs/conf.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@
2222
sys.path.insert(0, path.dirname(path.dirname(__file__)))
2323

2424

25-
import sphinx_rtd_theme
26-
2725
html_theme = "sphinx_rtd_theme"
2826

29-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
30-
3127
# -- General configuration ------------------------------------------------
3228

3329
# If your documentation needs a minimal Sphinx version, state it here.
@@ -48,7 +44,7 @@
4844
# You can specify multiple suffix as a list of string:
4945
#
5046
# source_suffix = ['.rst', '.md']
51-
source_suffix = '.rst'
47+
source_suffix = {'.rst': 'restructuredtext'}
5248

5349
# The master toctree document.
5450
master_doc = 'index'

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
license='BSD',
1111
description='Scrapy middleware for Zyte Smart Proxy Manager',
1212
long_description=readme,
13+
long_description_content_type="text/x-rst",
1314
maintainer='Raul Gallegos',
1415
maintainer_email='[email protected]',
1516
author='Zyte',
@@ -32,6 +33,7 @@
3233
'Programming Language :: Python :: 3.10',
3334
'Programming Language :: Python :: 3.11',
3435
'Programming Language :: Python :: 3.12',
36+
'Programming Language :: Python :: 3.13',
3537
'Framework :: Scrapy',
3638
'Intended Audience :: Developers',
3739
'Topic :: Internet :: WWW/HTTP',

tox.ini

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tox.ini
22
[tox]
3-
envlist = pre-commit,mypy,min,py27,py34,py35,py36,py37,py38,py39,py310,py311,py312,docs
3+
envlist = pre-commit,mypy,min,py27,py34,py35,py36,py37,py38,py39,py310,py311,py312,py313,docs
44

55
[testenv]
66
deps =
@@ -64,3 +64,12 @@ changedir = {[docs]changedir}
6464
deps = {[docs]deps}
6565
commands =
6666
sphinx-build -nW -b html . {envtmpdir}/html
67+
68+
[testenv:twinecheck]
69+
basepython = python3
70+
deps =
71+
twine==5.1.1
72+
build==1.2.2
73+
commands =
74+
python -m build --sdist
75+
twine check dist/*

0 commit comments

Comments
 (0)