Repository navigation
Publish releases to PyPI - #1869
Conversation
A published GitHub release builds the sdist and wheel and uploads them with PyPI Trusted Publishing. The installation docs describe installing from PyPI with pipx, taking the compiled bindings from the distribution, and name the notmuch2 bindings alot uses on Debian and Fedora. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TR9KjabaVCyHnpqp2kQZHC
This claim is a bit ridiculous. I keep it in this form specifically in the docs/examples/snippets so that I don't have to update them on each commit everywhere. But I also have a loud recommendation in the action readme telling people to pin to commit SHAs since like 2019 🤦♂️... Nowadays there's also I of course keep this branch pointer stable but the Claude-inferred claim is a clear hallucination :) FWIW, I don't mind if people use this pointer and often tend to tell people to use it for simplicity. But it's not like I present the entirety of the PyPA opinion with my preference which a lot of people tend to disagree with.. |
|
@webknjaz thanks fore looking into this! As you've correctly pointed out, the whole "Review findings and resolution" secion in the PR description is kind of a log of the automated review process I forced claude through. This is to expose a bit more transparency for claude-proposed PRs. I do not really understand this comment of the "reviewer" nor did I bother looking it up because the conclusion was to leave this bit alone and not change things anyway. I'm not challenging your gh action's code in any way :) |
Closes #1868 (option 1). Revisits #1709 and #1705.
Publishing a GitHub release now builds the sdist and wheel and uploads them to PyPI with Trusted Publishing, so no API token is stored. The job checks that the built version equals the release tag, so a tag that setuptools-scm would normalise differently stops before anything is uploaded.
What has changed since #1709 was closed: a plain
pip install alotstill fails on thegpgsdist, but installing with pipx on top of the distribution's bindings works. The installation docs now describe that route, from 0.13 on. The Debian and Fedora package lists named the oldnotmuchbindings; they now namenotmuch2.Setup outside the repository, before the first release:
alot: ownerpazz, repositoryalot, workflowpublish.yml, environmentpypi.pypia required reviewer, since pre-releases also trigger an upload and uploads cannot be undone.NEWS: alot releases are published on PyPI again; see the installation notes for installing with pipx.
Review findings and resolution
review-design
python-notmuch: fixed (Fedora packagespython3-notmuch2).fetch-depth: 0probably unnecessary: kept as cheap insurance for setuptools-scm..claude/andCLAUDE.md: left; harmless and predates this change.review-correctness
gpgand fails building it from source: fixed byPIPX_DEFAULT_BACKEND=pipin the recipe; both backends tested locally with a wheel built from this branch, only pip succeeds.pipx run buildfails under the uv backend: replaced bypython3 -m pip install buildandpython3 -m build.v0.13and0.11style tags: no change.gh-action-pypi-publish@release/v1is a mutable ref: left; PyPA's recommended usage.🤖 Generated with Claude Code
https://claude.ai/code/session_01TR9KjabaVCyHnpqp2kQZHC