Skip to content

Commit 5d63370

Browse files
authored
Upgrade greenlet and gevent for Python 3.12 support (#958)
* Update dependencies for Python 3.12 support * Run tests for 3.12 via CI
1 parent 04b7fe6 commit 5d63370

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
timeout-minutes: 20
1212
runs-on: ubuntu-latest
1313
strategy:
14-
max-parallel: 3
14+
max-parallel: 4
1515
matrix:
16-
python-version: ['3.9', '3.10', '3.11']
16+
python-version: ['3.9', '3.10', '3.11', '3.12']
1717

1818
steps:
1919
- name: checkout

requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ brotlipy
88
pyyaml
99
werkzeug==2.2.3
1010
webencodings
11-
gevent==22.10.2
12-
greenlet>=2.0.2,<3.0
11+
gevent==22.10.2; python_version<"3.8"
12+
gevent==23.9.0; python_version>="3.8"
13+
greenlet>=2.0.2,<3.0; python_version<"3.12"
14+
greenlet==3.2.4; python_version>="3.12.0rc0"
1315
webassets==2.0
1416
portalocker
1517
wsgiprox>=1.5.1

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def get_package_data():
126126
"translate_toolkit"
127127
],
128128
},
129-
python_requires='>=3.7,<3.12',
129+
python_requires='>=3.7,<3.13',
130130
tests_require=load_requirements("test_requirements.txt"),
131131
cmdclass={'test': PyTest},
132132
test_suite='',
@@ -151,6 +151,7 @@ def get_package_data():
151151
'Programming Language :: Python :: 3.9',
152152
'Programming Language :: Python :: 3.10',
153153
'Programming Language :: Python :: 3.11',
154+
'Programming Language :: Python :: 3.12',
154155
'Topic :: Internet :: Proxy Servers',
155156
'Topic :: Internet :: WWW/HTTP',
156157
'Topic :: Internet :: WWW/HTTP :: WSGI',

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ testpaths =
44
tests
55

66
[tox]
7-
envlist = py37, py38, py39, py310, py311
7+
envlist = py37, py38, py39, py310, py311, py312
88

99
[gh-actions]
1010
python =
1111
3.9: py39
1212
3.10: py310
1313
3.11: py311
14+
3.12: py312
1415

1516
[testenv]
1617
setenv = PYWB_NO_VERIFY_SSL = 1

0 commit comments

Comments
 (0)