Skip to content

Commit

Permalink
List 3.12 as supported and test on it
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Oct 19, 2023
1 parent 5a43764 commit 69f7b7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
17 changes: 10 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python
Topic :: Internet :: Proxy Servers
Topic :: Internet :: WWW/HTTP
Expand Down Expand Up @@ -51,16 +52,18 @@ universal = 1
minfraud = py.typed

[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
Expand All @@ -70,19 +73,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
Expand Down

0 comments on commit 69f7b7a

Please sign in to comment.