From 9b8b1464b53f1998c1ccceef36e5cedfd48e44c8 Mon Sep 17 00:00:00 2001 From: Douglas Cerna Date: Mon, 13 Jan 2025 10:04:14 -0600 Subject: [PATCH] Add support for Python 3.13 * Upgrade pre-commit dependencies * Upgrade Python requirements --- .github/workflows/test.yml | 11 ++++++----- .pre-commit-config.yaml | 2 +- pyproject.toml | 10 ++-------- requirements-dev.txt | 6 +++--- requirements.txt | 2 +- 5 files changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e781887..a168468 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ on: jobs: test: name: "Test Python ${{ matrix.python-version }}" - runs-on: "ubuntu-22.04" + runs-on: "ubuntu-24.04" strategy: fail-fast: false matrix: @@ -18,6 +18,7 @@ jobs: "3.10", "3.11", "3.12", + "3.13", ] steps: - name: "Check out repository" @@ -33,10 +34,10 @@ jobs: - name: "Install tox" run: | python -m pip install --upgrade pip - pip install tox tox-gh-actions + pip install tox - name: "Run tox" run: | - tox -- --cov agentarchives --cov-report xml:coverage.xml + tox -e py -- --cov agentarchives --cov-report xml:coverage.xml - name: "Upload coverage report" if: github.repository == 'artefactual-labs/agentarchives' uses: "codecov/codecov-action@v4" @@ -48,14 +49,14 @@ jobs: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} lint: name: "Lint" - runs-on: "ubuntu-22.04" + runs-on: "ubuntu-24.04" steps: - name: "Check out repository" uses: "actions/checkout@v4" - name: "Set up Python" uses: "actions/setup-python@v5" with: - python-version: "3.12" + python-version: "3.x" cache: "pip" cache-dependency-path: | requirements.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 18d070a..c580776 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.5 + rev: v0.9.1 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/pyproject.toml b/pyproject.toml index e0014ea..82fbaa9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,6 +39,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ] authors = [ {name = "Artefactual Systems Inc.", email = "info@artefactual.com"} @@ -108,14 +109,7 @@ omit = [ [tool.tox] legacy_tox_ini = """ [tox] - envlist = py{39,310,311,312}, linting - - [gh-actions] - python = - 3.9: py39 - 3.10: py310 - 3.11: py311 - 3.12: py312 + envlist = py, linting [testenv] deps = -r {toxinidir}/requirements-dev.txt diff --git a/requirements-dev.txt b/requirements-dev.txt index c2b2954..be9df83 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -24,7 +24,7 @@ importlib-metadata==8.5.0 # via build iniconfig==2.0.0 # via pytest -mysqlclient==2.2.6 +mysqlclient==2.2.7 # via agentarchives (pyproject.toml) packaging==24.2 # via @@ -49,7 +49,7 @@ pytest-mock==3.14.0 # via agentarchives (pyproject.toml) requests==2.32.3 # via agentarchives (pyproject.toml) -ruff==0.8.5 +ruff==0.9.1 # via agentarchives (pyproject.toml) tomli==2.2.1 # via @@ -67,5 +67,5 @@ zipp==3.21.0 # The following packages are considered to be unsafe in a requirements file: pip==24.3.1 # via pip-tools -setuptools==75.6.0 +setuptools==75.8.0 # via pip-tools diff --git a/requirements.txt b/requirements.txt index e79b9e6..a70f27b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ charset-normalizer==3.4.1 # via requests idna==3.10 # via requests -mysqlclient==2.2.6 +mysqlclient==2.2.7 # via agentarchives (pyproject.toml) requests==2.32.3 # via agentarchives (pyproject.toml)