From 8f73ea7fbc38641dfa9e4f1c88906532b02ee5b4 Mon Sep 17 00:00:00 2001 From: Elephant Liu Date: Mon, 14 Oct 2024 14:33:09 +0800 Subject: [PATCH 1/2] Support Python 3.13 and drop Python 3.8 --- .github/workflows/publish.yml | 2 +- .github/workflows/test.yml | 2 +- setup.py | 6 +++--- tox.ini | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 944678e..98cd6dc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,7 @@ jobs: - name: Build wheels uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64 with: - python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311' + python-versions: 'cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312 cp313-cp313' build-requirements: 'cython' - name: Clean linux_x86_64.whl run: rm dist/*-linux_x86_64.whl diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ffba5d7..1fe30ab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"] + pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v2 diff --git a/setup.py b/setup.py index a185fe5..a3f4b31 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from glob import glob from setuptools import setup, Extension -version = "0.4.2" +version = "0.4.3" def readme(): @@ -25,11 +25,11 @@ def readme(): "Programming Language :: C", "Programming Language :: Cython", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "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.13", "Programming Language :: Python :: Implementation :: CPython", "Development Status :: 5 - Production/Stable", "Operating System :: POSIX :: Linux", diff --git a/tox.ini b/tox.ini index 96ec20e..41aff92 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py37, py38, py39, py310, py311 +envlist = py39, py310, py311, py312, py313 [testenv] passenv = CC LD From 645250cda7944270d2cbc39b012ec0a2a06276d5 Mon Sep 17 00:00:00 2001 From: Elephant Liu Date: Mon, 14 Oct 2024 14:35:33 +0800 Subject: [PATCH 2/2] install setuptools for test --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1fe30ab..55ed924 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: python-version: ${{ matrix.pyver }} - name: Install python dependencies run: | - python -m pip install --upgrade pip + python -m pip install --upgrade pip setuptools pip install 'Cython' 'tox<4' - name: Run unittest