diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2dac621..78e854a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: # We don't test on Windows currently as it appears mocket may not # work there. platform: [ubuntu-latest, macos-latest] - python-version: [3.7, 3.8, 3.9, "3.10", 3.11] + python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12] name: Python ${{ matrix.python-version }} on ${{ matrix.platform }} runs-on: ${{ matrix.platform }} @@ -34,7 +34,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -e git+https://github.com/maxmind/GeoIP2-python#egg=geoip2 - pip install tox tox-gh-actions + pip install setuptools tox tox-gh-actions - name: Test with tox run: tox diff --git a/pyproject.toml b/pyproject.toml index 5f2cf53..c797fd3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Internet", "Topic :: Internet :: Proxy Servers", "Topic :: Internet :: WWW/HTTP", diff --git a/setup.cfg b/setup.cfg index 1e26b74..a9702b4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,16 +3,18 @@ max-line-length = 88 [tox:tox] -envlist = {py37,py38,py39,py310}-test,py310-{black,lint,flake8,mypy} +envlist = {py37,py38,py39,py310,py311,py312}-test,py312-{black,lint,flake8,mypy} [gh-actions] python = 3.7: py37 3.8: py38 3.9: py39 - 3.10: py310,black,lint,flake8,mypy + 3.10: py310 + 3.11: py311 + 3.12: py312,black,lint,flake8,mypy -[testenv:{py37,py38,py39,py310}-test] +[testenv:{py37,py38,py39,py310,py311,py312}-test] deps = mocket pytest @@ -22,19 +24,19 @@ deps = charset-normalizer==2.1.1 commands = pytest tests -[testenv:py310-black] +[testenv:py312-black] deps = black commands = black --check --diff . -[testenv:py310-lint] +[testenv:py312-lint] deps = pylint commands = pylint minfraud -[testenv:py310-flake8] +[testenv:py312-flake8] deps = flake8 commands = flake8 minfraud -[testenv:py310-mypy] +[testenv:py312-mypy] deps = mypy types-requests