From 12ced8eb26e81160255df2fc905547227b3fcf13 Mon Sep 17 00:00:00 2001 From: Jerome Kelleher Date: Thu, 20 Jun 2024 11:48:52 +0100 Subject: [PATCH] Drop Python 3.8, add 3.12 --- .github/workflows/tests.yml | 2 +- .github/workflows/wheels.yml | 20 ++++++++++---------- python/setup.cfg | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ab6a496eeb..3baad2ba80 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -60,7 +60,7 @@ jobs: strategy: fail-fast: false matrix: - python: [ 3.8, 3.9, "3.11" ] + python: [ 3.9, 3.11, 3.12 ] os: [ macos-latest, ubuntu-latest, windows-latest ] defaults: run: diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 110d02bb98..7e5eeb50b4 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -15,7 +15,7 @@ jobs: runs-on: macos-latest strategy: matrix: - python: [3.8, 3.9, "3.10", 3.11] + python: [3.9, "3.10", 3.11, 3.12] steps: - name: Checkout uses: actions/checkout@v4 @@ -55,7 +55,7 @@ jobs: runs-on: windows-latest strategy: matrix: - python: [3.8, 3.9, "3.10", 3.11] + python: [3.9, "3.10", 3.11, 3.12] wordsize: [64] steps: - name: Checkout @@ -107,10 +107,10 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.9 - name: Build sdist shell: bash @@ -140,7 +140,7 @@ jobs: runs-on: macos-latest strategy: matrix: - python: [3.8, 3.9, "3.10", 3.11] + python: [3.9, "3.10", 3.11, 3.12] steps: - name: Download wheels uses: actions/download-artifact@v4 @@ -162,7 +162,7 @@ jobs: runs-on: windows-latest strategy: matrix: - python: [3.8, 3.9, "3.10", 3.11] + python: [3.9, "3.10", 3.11, 3.12] wordsize: [64] steps: - name: Download wheels @@ -186,17 +186,17 @@ jobs: needs: ['manylinux'] strategy: matrix: - python: [3.8, 3.9, "3.10", 3.11] + python: [3.9, "3.10", 3.11, 3.12] include: - - python: 3.8 - wheel: cp38 - python: 3.9 wheel: cp39 - python: "3.10" wheel: cp310 - python: 3.11 wheel: cp311 + - python: 3.12 + wheel: cp312 steps: - name: Download wheels uses: actions/download-artifact@v4 @@ -234,4 +234,4 @@ jobs: repository_url: https://test.pypi.org/legacy/ - name: Publish distribution to PRODUCTION PyPI if: github.event_name == 'release' && !startsWith(github.event.release.tag_name, 'C_') - uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/python/setup.cfg b/python/setup.cfg index a827702bd5..fa961595f0 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -16,10 +16,10 @@ classifiers = Programming Language :: C Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Programming Language :: Python :: 3 :: Only Development Status :: 5 - Production/Stable Environment :: Other Environment @@ -45,7 +45,7 @@ platforms = [options] packages = tskit -python_requires = >=3.8 +python_requires = >=3.9 include_package_data = True # Following numpy 2 packaging advice, we build on numpy 2 and # have a runtime dependency on >= 1.23.5