From 245fd39a489accd27fc2ab995a7de632e0650196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Fri, 6 Oct 2023 13:52:34 +0200 Subject: [PATCH] feat: Add support for Python 3.12 FTR I run the Cython wrapper with Cython 3.0.3 to see if any changes were needed, and no file was modified. --- .github/workflows/build-and-publish.yml | 6 +++--- .github/workflows/tests.yml | 2 +- CHANGES.rst | 5 +++++ docs/conf.py | 2 +- setup.py | 3 ++- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 7b1dced..ba92591 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -29,13 +29,13 @@ jobs: - name: Install Python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.x" - name: Install build dependencies run: python -m pip install --upgrade cibuildwheel - name: Build wheels run: python -m cibuildwheel env: - CIBW_SKIP: "cp36-* cp312*" # skip 3.6 and 3.12 wheels + CIBW_SKIP: "cp36-*" # skip 3.6 CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" - uses: actions/upload-artifact@v3 with: @@ -54,7 +54,7 @@ jobs: - name: Install Python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.x" - name: Build source distribution run: python setup.py sdist - name: Store the source distribution diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f84d834..1457a72 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/CHANGES.rst b/CHANGES.rst index ea95ec5..fcc7c49 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,11 @@ CHANGES ======= +1.1.0 (2023-10-06) +------------------ + +* Added Python 3.12 support. + 1.0.0 (2023-09-03) ------------------ diff --git a/docs/conf.py b/docs/conf.py index b7733e7..2320faa 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -59,7 +59,7 @@ # built documents. # # The short X.Y version. -version = "1.0.0" +version = "1.1.0" # The full version, including alpha/beta/rc tags. release = version diff --git a/setup.py b/setup.py index bd77b87..dcb9204 100755 --- a/setup.py +++ b/setup.py @@ -52,6 +52,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Scientific/Engineering :: Information Analysis", @@ -60,7 +61,7 @@ setup( name="marisa-trie", - version="1.0.0", + version="1.1.0", description=DESCRIPTION, long_description=LONG_DESCRIPTION, long_description_content_type="text/x-rst",