Skip to content

Commit 3cafa50

Browse files
committed
List 3.12 as supported and test on it
1 parent 48723ec commit 3cafa50

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# We don't test on Windows currently as it appears mocket may not
1515
# work there.
1616
platform: [ubuntu-latest, macos-latest]
17-
python-version: [3.7, 3.8, 3.9, "3.10", 3.11]
17+
python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12]
1818

1919
name: Python ${{ matrix.python-version }} on ${{ matrix.platform }}
2020
runs-on: ${{ matrix.platform }}
@@ -34,7 +34,7 @@ jobs:
3434
run: |
3535
python -m pip install --upgrade pip
3636
pip install -e git+https://github.com/maxmind/GeoIP2-python#egg=geoip2
37-
pip install tox tox-gh-actions
37+
pip install setuptools tox tox-gh-actions
3838
3939
- name: Test with tox
4040
run: tox

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ classifiers = [
2828
"Programming Language :: Python :: 3.9",
2929
"Programming Language :: Python :: 3.10",
3030
"Programming Language :: Python :: 3.11",
31+
"Programming Language :: Python :: 3.12",
3132
"Topic :: Internet",
3233
"Topic :: Internet :: Proxy Servers",
3334
"Topic :: Internet :: WWW/HTTP",

setup.cfg

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33
max-line-length = 88
44

55
[tox:tox]
6-
envlist = {py37,py38,py39,py310}-test,py310-{black,lint,flake8,mypy}
6+
envlist = {py37,py38,py39,py310,py311,py312}-test,py312-{black,lint,flake8,mypy}
77

88
[gh-actions]
99
python =
1010
3.7: py37
1111
3.8: py38
1212
3.9: py39
13-
3.10: py310,black,lint,flake8,mypy
13+
3.10: py310
14+
3.11: py311
15+
3.12: py312,black,lint,flake8,mypy
1416

15-
[testenv:{py37,py38,py39,py310}-test]
17+
[testenv:{py37,py38,py39,py310,py311,py312}-test]
1618
deps =
1719
mocket
1820
pytest
@@ -22,19 +24,19 @@ deps =
2224
charset-normalizer==2.1.1
2325
commands = pytest tests
2426

25-
[testenv:py310-black]
27+
[testenv:py312-black]
2628
deps = black
2729
commands = black --check --diff .
2830

29-
[testenv:py310-lint]
31+
[testenv:py312-lint]
3032
deps = pylint
3133
commands = pylint minfraud
3234

33-
[testenv:py310-flake8]
35+
[testenv:py312-flake8]
3436
deps = flake8
3537
commands = flake8 minfraud
3638

37-
[testenv:py310-mypy]
39+
[testenv:py312-mypy]
3840
deps =
3941
mypy
4042
types-requests

0 commit comments

Comments
 (0)