Skip to content

Prevent upload of Python 3.13+ wheels to PyPI#1

Merged
nuniz merged 4 commits into
mainfrom
copilot/update-python-version-in-workflow
Jan 25, 2026
Merged

Prevent upload of Python 3.13+ wheels to PyPI#1
nuniz merged 4 commits into
mainfrom
copilot/update-python-version-in-workflow

Conversation

Copilot AI commented Jan 25, 2026

Copy link
Copy Markdown
Contributor

PyPI rejected fastaccess-0.2.0-cp314-cp314-linux_x86_64.whl with 400 Bad Request. The package supports Python 3.8-3.12 only.

Changes

  • Workflow: Added pre-upload filter step to remove any cp313+ wheels using glob patterns *-cp31[3-9]-*.whl, *-cp32[0-9]-*.whl, *-cp3[3-9][0-9]-*.whl

  • Package metadata: Constrained requires-python from >=3.8 to >=3.8,<3.13 to explicitly declare supported versions

The workflow's CIBW_BUILD already constrains to cp38-cp312, but this provides defense-in-depth and ensures PyPI metadata accuracy.

Original prompt

The provided GitHub Actions workflow (https://github.com/nuniz/FASTAccess/blob/cd3f4fe1364b0c879669be9e32708f990de85d02/.github/workflows/python-publish.yml) is failing when uploading a binary Python package to PyPI. The workflow currently specifies 'python-version: \u0003.7+', which may include unsupported Python versions (e.g., Python 3.14). As per the error logs, PyPI reported a 400 Bad Request error stating that the binary wheel 'fastaccess-0.2.0-cp314-cp314-linux_x86_64.whl' is invalid. This indicates an issue with compatibility with PyPI's requirements.\n\nSteps to Resolve:\n\n1. Modify the 'python-version' in the workflow to constrain it to supported versions (e.g., '3.12') instead of '\u0003.7+'.\n\n2. Update the workflow file located at '.github/workflows/python-publish.yml' in the repository to reflect this change.

This pull request was created from Copilot chat.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits January 25, 2026 20:04
…PI upload

Co-authored-by: nuniz <47698284+nuniz@users.noreply.github.com>
Co-authored-by: nuniz <47698284+nuniz@users.noreply.github.com>
Co-authored-by: nuniz <47698284+nuniz@users.noreply.github.com>
@nuniz nuniz marked this pull request as ready for review January 25, 2026 20:08
Copilot AI changed the title [WIP] Update Python version in GitHub Actions workflow for compatibility Prevent upload of Python 3.13+ wheels to PyPI Jan 25, 2026
@nuniz nuniz merged commit f6db3a5 into main Jan 25, 2026
7 checks passed
Copilot AI requested a review from nuniz January 25, 2026 20:08
@nuniz nuniz deleted the copilot/update-python-version-in-workflow branch January 25, 2026 20:08
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.

2 participants