From aa39f7641d82d5b6c2fd2601560ac1b2ad1ce2d2 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Sat, 31 May 2025 16:41:15 +0800 Subject: [PATCH] Add support for Python 3.14 Updated CI workflows to include Python 3.14 with pre-release support. Modified README and pyproject.toml to reflect compatibility with Python 3.14. Adjusted ruff target version to Python 3.14. --- .github/workflows/ci.yml | 9 +++++---- README.md | 2 +- pyproject.toml | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c1e29d..50ae03d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,15 +14,16 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ["3.12", "3.13"] + python-version: ["3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install dependencies run: | @@ -56,7 +57,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.12" @@ -114,7 +115,7 @@ jobs: run: sleep 30 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.12" diff --git a/README.md b/README.md index 2962ac1..9a371de 100644 --- a/README.md +++ b/README.md @@ -569,7 +569,7 @@ extract_archive(large_archive, "restore/", streaming=True) ## Requirements -- Python 3.12 or higher +- Python 3.12 or higher (including Python 3.14 pre-release) - zstandard >= 0.19.0 ## Development diff --git a/pyproject.toml b/pyproject.toml index e72e1f3..d6ecc9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: System :: Archiving :: Compression", "Topic :: Software Development :: Libraries :: Python Modules", ] @@ -53,7 +54,7 @@ python_functions = ["test_*"] addopts = "--cov=tzst --cov-report=term-missing --cov-report=html" [tool.ruff] -target-version = "py312" +target-version = "py314" line-length = 88 [tool.ruff.lint]