Skip to content

Commit

Permalink
Test on 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Oct 11, 2023
1 parent d0c567d commit f6f983e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/address-sanitizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: 3.12

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clang-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
python-version: 3.12

- name: Build and run analyzer
run: CFLAGS="-Werror -Wall -Wextra" scan-build --status-bugs python setup.py build
2 changes: 1 addition & 1 deletion .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 due to issues
# build libmaxminddb there.
platform: [macos-latest, ubuntu-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 Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.11"
python: "3.12"
17 changes: 10 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,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
Expand All @@ -46,32 +47,34 @@ universal = 1
maxminddb = extension.pyi; 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 = pytest
commands = pytest tests
passenv = *

[testenv:py310-black]
[testenv:py312-black]
deps = black
commands = black --check --diff .

[testenv:py310-lint]
[testenv:py312-lint]
deps = pylint
commands = pylint maxminddb

[testenv:py310-flake8]
[testenv:py312-flake8]
deps = flake8
commands = flake8 maxminddb

[testenv:py310-mypy]
[testenv:py312-mypy]
deps = mypy
commands = mypy maxminddb tests

0 comments on commit f6f983e

Please sign in to comment.