From 73414971b83facd9f11d6f3493aaeafbd2e6c753 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Thu, 10 Oct 2024 08:35:50 -0700 Subject: [PATCH] Build and test on Python 3.13 --- .github/workflows/address-sanitizer.yml | 2 +- .github/workflows/clang-analyzer.yml | 2 +- .github/workflows/test-libmaxminddb.yml | 2 +- .github/workflows/test.yml | 2 +- .readthedocs.yaml | 2 +- pyproject.toml | 1 + setup.cfg | 15 ++++++++------- 7 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/address-sanitizer.yml b/.github/workflows/address-sanitizer.yml index 8a990c9..f2db862 100644 --- a/.github/workflows/address-sanitizer.yml +++ b/.github/workflows/address-sanitizer.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.12 + python-version: 3.13 - name: Install dependencies run: | diff --git a/.github/workflows/clang-analyzer.yml b/.github/workflows/clang-analyzer.yml index ea65fc1..56cd6a5 100644 --- a/.github/workflows/clang-analyzer.yml +++ b/.github/workflows/clang-analyzer.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.12 + python-version: 3.13 - name: Install dependencies run: | diff --git a/.github/workflows/test-libmaxminddb.yml b/.github/workflows/test-libmaxminddb.yml index 1321aca..4eb8063 100644 --- a/.github/workflows/test-libmaxminddb.yml +++ b/.github/workflows/test-libmaxminddb.yml @@ -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.8, 3.9, "3.10", 3.11, 3.12] + python-version: [3.8, 3.9, "3.10", 3.11, 3.12, 3.13] name: Python ${{ matrix.python-version }} on ${{ matrix.platform }} runs-on: ${{ matrix.platform }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fda08f1..78badd5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: platform: [macos-latest, ubuntu-latest, windows-latest] - python-version: [3.8, 3.9, "3.10", 3.11, 3.12] + python-version: [3.8, 3.9, "3.10", 3.11, 3.12, 3.13] name: Python ${{ matrix.python-version }} on ${{ matrix.platform }} runs-on: ${{ matrix.platform }} diff --git a/.readthedocs.yaml b/.readthedocs.yaml index e806a2c..cc978b9 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -3,4 +3,4 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.12" + python: "3.13" diff --git a/pyproject.toml b/pyproject.toml index 6bf9d6c..cffa071 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Internet", "Topic :: Internet :: Proxy Servers", ] diff --git a/setup.cfg b/setup.cfg index 5e43843..8ec9fb3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,7 +15,7 @@ python_requires = >=3.8 maxminddb = extension.pyi; py.typed [tox:tox] -envlist = {py38,py39,py310,py311,py312}-test,py312-{black,lint,flake8,mypy} +envlist = {py38,py39,py310,py311,py312,py313}-test,py313-{black,lint,flake8,mypy} [gh-actions] python = @@ -23,25 +23,26 @@ python = 3.9: py39 3.10: py310 3.11: py311 - 3.12: py312,black,lint,flake8,mypy + 3.12: py312 + 3.13: py313,black,lint,flake8,mypy -[testenv:{py38,py39,py310,py311,py312}-test] +[testenv:{py38,py39,py310,py311,py312,py313}-test] deps = pytest commands = pytest tests passenv = * -[testenv:py312-black] +[testenv:py313-black] deps = black commands = black --check --diff . -[testenv:py312-lint] +[testenv:py313-lint] deps = pylint commands = pylint maxminddb -[testenv:py312-flake8] +[testenv:py313-flake8] deps = flake8 commands = flake8 maxminddb -[testenv:py312-mypy] +[testenv:py313-mypy] deps = mypy commands = mypy maxminddb tests