Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support python 3.13 #194

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/extensive-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
include:
- os: ubuntu-latest
test: make test
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-11, windows-2019]
os: [macos-12, windows-2019]
arch: [auto64]
build: ["cp{38,39,310,311,312}-*"]
build: ["cp{39,310,311,312,313}-*"]

include:
- os: ubuntu-latest
arch: auto64
type: manylinux1
build: "cp{38,39}-*"
build: "cp39-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1

- os: ubuntu-latest
Expand All @@ -56,22 +56,22 @@ jobs:
- os: ubuntu-latest
arch: auto64
type: manylinux2014
build: "cp{311,312}-*"
build: "cp{311,312,313}-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014

- os: macos-latest
arch: universal2
build: "cp{38,39,310,311,312}-*"
build: "cp{39,310,311,312,313}-*"

- os: windows-latest
arch: auto64
build: "cp{38,39,310,311,312}-*"
build: "cp{39,310,311,312,313}-*"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Build wheels and run tests
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_BUILD: ${{ matrix.build }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.CIBW_MANYLINUX_I686_IMAGE }}
Expand All @@ -83,16 +83,16 @@ jobs:
CIBW_SKIP: "pp*"

- name: Collect built wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Checkout and install reqs
run: |
Expand All @@ -104,7 +104,7 @@ jobs:
twine check dist/*

- name: Collect built sdist
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz

Expand All @@ -118,17 +118,17 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12, windows-2019, windows-2022]
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-20.04, ubuntu-22.04, macos-12, macos-13, windows-2019, windows-2022]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
build_type: ["AHOCORASICK_UNICODE", "AHOCORASICK_BYTES"]

steps:
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python }}"

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Build, install and test
run: >
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
Changelog
=============

2.1.0 (2024-03-21)
AyanSinhaMahapatra marked this conversation as resolved.
Show resolved Hide resolved
--------------------------------------------------

- Drop support for Python 3.8. Use older version for pre-built wheels.
Note that it may work on these older verions, we are just no longer supporting
and testing these Python versions, as this is end of life

- Add support for Python 3.13

2.1.0 (2024-03-21)
--------------------------------------------------

- Drop support for Python 3.6 and 3.7. Use older version for pre-built wheels.
Note that it may work on these older veriosn, we are just no longer supporting
Note that it may work on these older verions, we are just no longer supporting
and testing these Python versions

- Add support for Python 3.12
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ of time and saved (as a pickle) to disk to reload and reuse later. The library
provides an `ahocorasick` Python module that you can use as a plain dict-like
Trie or convert a Trie to an automaton for efficient Aho-Corasick search.

**pyahocorasick** is implemented in C and tested on Python 3.8 and up.
**pyahocorasick** is implemented in C and tested on Python 3.9 and up.
It works on 64 bits Linux, macOS and Windows.

The license_ is BSD-3-Clause. Some utilities, such as tests and the pure Python
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def get_long_description():

setup(
name="pyahocorasick",
version="2.1.0",
version="2.2.0",
ext_modules=[module],

description=(
Expand Down Expand Up @@ -125,5 +125,5 @@ def get_long_description():
extras_require={
"testing": ["pytest", "twine", "setuptools", "wheel", ],
},
python_requires=">=3.8",
python_requires=">=3.9",
)
Loading