diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index c602ffc018..e574a2ab34 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -195,11 +195,11 @@ jobs: echo "steps.script.outputs.old_tag=v${current_tag}" echo "old_tag=v${current_tag}" >> $GITHUB_OUTPUT - - name: Set up Python 3.13 + - name: Set up Python 3.12 if: success() uses: actions/setup-python@v5 with: - python-version: '3.13' + python-version: '3.12' - name: Install Python dependencies run: | diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index d4cff442ff..b625754baf 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: os: [windows-latest] - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f56a516c1..ed42f3670b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,13 +30,13 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.9', '3.10', '3.11', '3.12'] include: - os: macos-latest - python-version: '3.13' + python-version: '3.12' # Intel runner - os: macos-13 - python-version: '3.13' + python-version: '3.12' steps: - uses: actions/checkout@v4 @@ -89,7 +89,7 @@ jobs: coverage xml - name: Report contrib coverage with Codecov - if: github.event_name != 'schedule' && matrix.python-version == '3.13' && matrix.os == 'ubuntu-latest' + if: github.event_name != 'schedule' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@v5 with: fail_ci_if_error: true @@ -99,17 +99,17 @@ jobs: - name: Test docstring examples with doctest # TODO: Don't currently try to match amd64 and arm64 floating point for docs, but will in the future. - if: matrix.python-version == '3.13' && matrix.os != 'macos-latest' + if: matrix.python-version == '3.12' && matrix.os != 'macos-latest' run: coverage run --data-file=.coverage-doctest --module pytest src/ README.rst - name: Coverage report for doctest only - if: matrix.python-version == '3.13' && matrix.os != 'macos-latest' + if: matrix.python-version == '3.12' && matrix.os != 'macos-latest' run: | coverage report --data-file=.coverage-doctest coverage xml --data-file=.coverage-doctest -o doctest-coverage.xml - name: Report doctest coverage with Codecov - if: github.event_name != 'schedule' && matrix.python-version == '3.13' && matrix.os == 'ubuntu-latest' + if: github.event_name != 'schedule' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@v5 with: fail_ci_if_error: true @@ -118,6 +118,6 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: Run benchmarks - if: github.event_name == 'schedule' && matrix.python-version == '3.13' + if: github.event_name == 'schedule' && matrix.python-version == '3.12' run: | pytest --benchmark-sort=mean tests/benchmarks/test_benchmark.py diff --git a/.github/workflows/dependencies-head.yml b/.github/workflows/dependencies-head.yml index 0742036e50..c714392d81 100644 --- a/.github/workflows/dependencies-head.yml +++ b/.github/workflows/dependencies-head.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, macos-13] - python-version: ['3.13'] + python-version: ['3.12'] steps: - uses: actions/checkout@v4 @@ -50,7 +50,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ['3.13'] + python-version: ['3.12'] steps: - uses: actions/checkout@v4 @@ -79,7 +79,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ['3.13'] + python-version: ['3.12'] steps: - uses: actions/checkout@v4 @@ -105,7 +105,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ['3.13'] + python-version: ['3.12'] steps: - uses: actions/checkout@v4 @@ -130,7 +130,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ['3.13'] + python-version: ['3.12'] steps: - uses: actions/checkout@v4 @@ -168,7 +168,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ['3.13'] + python-version: ['3.12'] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a802b904c9..c7a99fda4d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,7 +27,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.13' + python-version: '3.12' - name: Install Python dependencies run: | diff --git a/.github/workflows/notebooks.yml b/.github/workflows/notebooks.yml index 8e06f6e6d7..52b6fb1af4 100644 --- a/.github/workflows/notebooks.yml +++ b/.github/workflows/notebooks.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.13'] + python-version: ['3.12'] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index e4f2d7dd43..370cbf41a5 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -41,10 +41,10 @@ jobs: with: fetch-depth: 0 - - name: Set up Python 3.13 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: '3.13' + python-version: '3.12' - name: Install python-build and twine run: | diff --git a/.github/workflows/release_tests.yml b/.github/workflows/release_tests.yml index 362b019b37..4a2b910dda 100644 --- a/.github/workflows/release_tests.yml +++ b/.github/workflows/release_tests.yml @@ -21,13 +21,13 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.9', '3.10', '3.11', '3.12'] include: - os: macos-latest - python-version: '3.13' + python-version: '3.12' # Intel runner - os: macos-13 - python-version: '3.13' + python-version: '3.12' fail-fast: false steps: diff --git a/pyproject.toml b/pyproject.toml index 250987e44f..67e13ac0f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,6 @@ classifiers = [ "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 :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Physics", @@ -237,7 +236,7 @@ exclude_also = [ [tool.mypy] files = "src" -python_version = "3.13" +python_version = "3.12" warn_unused_configs = true strict = true enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]