fix: pin supported Python versions (3.11–3.13) and add pyproject.toml - #203
Closed
buiducnhat wants to merge 1 commit into
Closed
buiducnhat wants to merge 1 commit into
buiducnhat wants to merge 1 commit into
Conversation
Adds a pyproject.toml declaring requires-python >=3.11,<3.14 so pip errors early on unsupported versions (e.g. Python 3.13 with the older requirements that included numpy/spaCy wheels unavailable for 3.13, and future 3.14 wheels that do not yet exist for several pinned deps). Also updates: - README.md to document the Python 3.11–3.13 requirement. - Dockerfile to build from python:3.13-slim with a working directory. - CI matrix to test 3.11, 3.12, and 3.13 with up-to-date GitHub Actions versions. Fixes antoniaci#133, fixes antoniaci#119, fixes antoniaci#150
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Adds a
pyproject.tomldeclaringrequires-python = ">=3.11,<3.14"so pip fails fast with a clear message on unsupported Python versions instead of trying to build packages from source that do not provide wheels for newer releases.This addresses the installation failures reported in:
Changes
pyproject.toml: new file with project metadata, Python constraint, and dependencies mirrored fromrequirements.txt.README.md: documents that Blackbird requires Python 3.11 – 3.13.Dockerfile: bases the image onpython:3.13-slimand setsWORKDIR /app..github/workflows/python-test.yaml: expands CI to test Python 3.11, 3.12, and 3.13 using current Actions versions.Verification
I verified a clean install and the existing test suite on Python 3.13 (macOS arm64):
python3.13 -m venv .venv source .venv/bin/activate pip install -r requirements.txt python -m unittest tests/test_core.py tests/test_export.pyAll 4 tests pass.
Closes #133, closes #119, closes #150