Add min. code to publish v0.1.21 to PyPI - #41
Merged
Conversation
Without a [build-system] table, front-ends fall back to a legacy setuptools invocation of setup.py; uv's own docs say to "strongly recommend configuring a build system." Pointing build-backend at setuptools.build_meta keeps setup.py as the single source of package metadata (no metadata is duplicated or moved) while making `uv build` and `pip install .` go through the standard PEP 517 hooks instead. Verified with `uv build`: produces the same sdist/wheel as before.
Mirrors the workflow already used by sumy (a project by the same author, and a downstream consumer of breadability): build with `uv build` and upload with `uv publish --trusted-publishing automatic` on GitHub Releases, authenticating via OIDC instead of a long-lived PyPI API token stored as a repo secret. Requires a one-time, manual setup step on pypi.org (Project settings -> Publishing) to register this repo/workflow as a trusted publisher for the breadability project before the first release created here can actually upload.
The breadability.1 man page has been drifting out of sync with the package version since it is manually maintained via help2man, which isn't part of any automated release step.
miso-belica
force-pushed
the
feature/min-trusted-release-action
branch
from
August 10, 2026 18:39
73e0552 to
b6a8805
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 8 changed files in this pull request and generated no new comments.
Suppressed comments (1)
breadability/init.py:10
- The version bump leaves the tracked generated man page inconsistent:
breadability.1:2still identifies the command asbreadability 0.1.20. Please run the new man-page workflow (orhelp2manlocally) and commit the regenerated file before publishing 0.1.21.
__version__ = "0.1.21"
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.
If anybody is watching this repo and can do a review it would be appreciated. But because installing breadability is currently broken anyway I will probably just wait a day or two and then activate OIDC trusted publishing and release a new version.