From 52462048174ea50d2d07269d8e2e5e63e92f8026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Sch=C3=B6nfeldt?= Date: Tue, 26 Nov 2024 20:22:42 +0100 Subject: [PATCH] Set dependency to Python >= 3.10 Numpy 2 needs this, and we depend on that. So, it's a good idea to explicitly not support older versions instead of claiming something wrong. --- .github/workflows/lint.yml | 2 +- .github/workflows/packaging.yml | 2 +- .github/workflows/tox_checks.yml | 4 ++-- .github/workflows/tox_pytests.yml | 2 +- pyproject.toml | 5 +++-- tox.ini | 11 ++++++----- 6 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3e5f73159..50ff9e404 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: "3.10" - name: Install Python dependencies run: pip install black flake8 diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index a09540cfe..ce3c6808e 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -19,7 +19,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.9] + python-version: ["3.10"] steps: - uses: actions/checkout@v1 diff --git a/.github/workflows/tox_checks.yml b/.github/workflows/tox_checks.yml index 5553b0acf..9aa8c8b9a 100644 --- a/.github/workflows/tox_checks.yml +++ b/.github/workflows/tox_checks.yml @@ -33,10 +33,10 @@ jobs: - name: Git clone uses: actions/checkout@v2 - - name: Set up Python ${{ env.default_python || '3.9' }} + - name: Set up Python ${{ env.default_python || '3.10' }} uses: actions/setup-python@v5 with: - python-version: "${{ env.default_python || '3.9' }}" + python-version: "${{ env.default_python || '3.10' }}" - name: Pip cache uses: actions/cache@v2 diff --git a/.github/workflows/tox_pytests.yml b/.github/workflows/tox_pytests.yml index 240459535..6b5c46c3d 100644 --- a/.github/workflows/tox_pytests.yml +++ b/.github/workflows/tox_pytests.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.9, "3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v1 diff --git a/pyproject.toml b/pyproject.toml index d50b4de2e..4c8cf1314 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,13 +47,14 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Utilities", ] -requires-python = ">=3.8" +requires-python = ">=3.10" dependencies = [ "blinker", "dill", diff --git a/tox.ini b/tox.ini index bbbaac9c0..21e29a9b4 100644 --- a/tox.ini +++ b/tox.ini @@ -11,9 +11,10 @@ envlist = [gh-actions] python = - 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 + 3.13: py313 [testenv] basepython = @@ -114,8 +115,8 @@ deps = pytest-cov -[testenv:py39] -basepython = {env:TOXPYTHON:python3.9} +[testenv:py312] +basepython = {env:TOXPYTHON:python3.12} setenv = {[testenv]setenv} usedevelop = true @@ -125,8 +126,8 @@ deps = {[testenv]deps} pytest-cov -[testenv:py38] -basepython = {env:TOXPYTHON:python3.8} +[testenv:py313] +basepython = {env:TOXPYTHON:python3.13} setenv = {[testenv]setenv} usedevelop = true