Skip to content

fix: pin supported Python versions (3.11–3.13) and add pyproject.toml - #203

Closed
buiducnhat wants to merge 1 commit into
antoniaci:mainfrom
buiducnhat:fix/python-version-compatibility
Closed

buiducnhat wants to merge 1 commit into
antoniaci:mainfrom
buiducnhat:fix/python-version-compatibility

Conversation

@buiducnhat

Copy link
Copy Markdown

What this PR does

Adds a pyproject.toml declaring requires-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 from requirements.txt.
  • README.md: documents that Blackbird requires Python 3.11 – 3.13.
  • Dockerfile: bases the image on python:3.13-slim and sets WORKDIR /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.py

All 4 tests pass.

Closes #133, closes #119, closes #150

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
@buiducnhat buiducnhat closed this Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Installation issue Failing During Installation of Dependencies BUG Dependency issue ?

1 participant