From d8238f52c6e67038641f95147e0c023606665298 Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Fri, 20 Sep 2024 01:04:09 +0200 Subject: [PATCH] drop python 3.8 --- .github/workflows/branchbuild.yml | 2 +- .github/workflows/releasebuild.yml | 12 ++++-------- README.md | 2 +- pyproject.toml | 6 +++--- setup.py | 4 ++-- 5 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/branchbuild.yml b/.github/workflows/branchbuild.yml index 0b999e6..844c1ef 100644 --- a/.github/workflows/branchbuild.yml +++ b/.github/workflows/branchbuild.yml @@ -139,7 +139,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] os: [ubuntu-latest, windows-latest, macos-13] steps: diff --git a/.github/workflows/releasebuild.yml b/.github/workflows/releasebuild.yml index 4b51fd5..620e427 100644 --- a/.github/workflows/releasebuild.yml +++ b/.github/workflows/releasebuild.yml @@ -68,7 +68,7 @@ jobs: CIBW_TEST_REQUIRES: pytest hypothesis CIBW_TEST_COMMAND: pytest {package}/tests CIBW_BUILD_VERBOSITY: 3 - CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8" + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9" steps: - uses: actions/download-artifact@v4 @@ -108,7 +108,7 @@ jobs: CIBW_TEST_REQUIRES: pytest hypothesis CIBW_TEST_COMMAND: pytest {package}/tests CIBW_BUILD_VERBOSITY: 3 - CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8" + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9" steps: - uses: actions/download-artifact@v4 @@ -141,17 +141,13 @@ jobs: fail-fast: false matrix: arch: [auto, aarch64, ppc64le, s390x] - python_tag: ["cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "pp38-*", "pp39-*", "pp310-*"] + python_tag: ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "pp39-*", "pp310-*"] exclude: # PyPy builds not available for these platforms - - arch: ppc64le - python_tag: "pp38-*" - arch: ppc64le python_tag: "pp39-*" - arch: ppc64le python_tag: "pp310-*" - - arch: s390x - python_tag: "pp38-*" - arch: s390x python_tag: "pp39-*" - arch: s390x @@ -159,7 +155,7 @@ jobs: env: CIBW_ARCHS_LINUX: ${{matrix.arch}} CIBW_BUILD: ${{matrix.python_tag}} - CIBW_TEST_SKIP: "{*_{aarch64,ppc64le,s390x},*musllinux_*,pp38-*}" + CIBW_TEST_SKIP: "{*_{aarch64,ppc64le,s390x},*musllinux_*}" #CIBW_TEST_REQUIRES: pytest hypothesis pandas CIBW_TEST_REQUIRES: pytest hypothesis CIBW_TEST_COMMAND: pytest {package}/tests diff --git a/README.md b/README.md index b2fd6a6..322f0dd 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ RapidFuzz is a fast string matching library for Python and C++, which is using t ## Requirements -- Python 3.8 or later +- Python 3.9 or later - On Windows the [Visual C++ 2019 redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) is required ## Installation diff --git a/pyproject.toml b/pyproject.toml index 968e435..fd73817 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ line-length = 120 [tool.mypy] files = ["src"] -python_version = "3.8" +python_version = "3.9" warn_unused_configs = true show_error_codes = true enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] @@ -28,7 +28,7 @@ xfail_strict = true log_cli_level = "info" [tool.pylint] -py-version = "3.8" +py-version = "3.9" [tool.pylint.reports] output-format = "colorized" @@ -46,7 +46,7 @@ disable = [ ] [tool.ruff] -target-version = "py38" +target-version = "py39" src = ["src"] exclude = [] diff --git a/setup.py b/setup.py index 49fde69..1c185a2 100644 --- a/setup.py +++ b/setup.py @@ -26,11 +26,11 @@ setup_args = { "license": "MIT", "classifiers": [ "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.13", "License :: OSI Approved :: MIT License", ], "packages": ["rapidfuzz", "rapidfuzz.distance", "rapidfuzz.__pyinstaller"], @@ -47,7 +47,7 @@ setup_args = { "rapidfuzz": ["*.pyi", "py.typed", "__init__.pxd", "rapidfuzz.h"], "rapidfuzz.distance": ["*.pyi"], }, - "python_requires": ">=3.8", + "python_requires": ">=3.9", }