diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0279380..08c5829 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - name: Set git to use LF on Windows if: runner.os == 'Windows' @@ -32,7 +32,7 @@ jobs: - uses: actions/checkout@v2 with: submodules: recursive - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} allow-prereleases: true diff --git a/setup.py b/setup.py index c545fd1..9072253 100644 --- a/setup.py +++ b/setup.py @@ -93,10 +93,12 @@ def finalize_options(self): author_email="cory@lukasa.co.uk", setup_requires=[ - "cffi>=1.0.0", + "cffi>=1.0.0; python_version<'3.13'", + "cffi>=1.17.0; python_version>='3.13'", ], install_requires=[ - "cffi>=1.0.0", + "cffi>=1.0.0; python_version<'3.13'", + "cffi>=1.17.0; python_version>='3.13'", ], python_requires=">=3.7", cffi_modules=["src/brotlicffi/_build.py:ffi"],