Repository navigation
Conversation
Add pyproject.toml (hatchling) so the proxy can be installed from PyPI, and a release.yml that publishes on a v* tag via Trusted Publishing, gated on the full test suite. The distribution is "argyll": "argyle" and "proxy.py" are both taken on PyPI, and Argyll is the Scottish namesake of the argyle sock pattern the project puns on. The installed command is "argyle". The single source file is shipped as the module "argyll" (hatchling force-include), not "proxy", so installing it cannot shadow that common top-level name; the source file stays proxy.py. tests.yml gains a workflow_call trigger so release.yml can reuse it as the publish gate, and its push trigger is narrowed to branches so a tag no longer runs it twice. The tag-vs-version check already in tests.yml's release-version job still runs, via that reuse. release.yml pins its actions to commit SHAs, as the workflow that holds publish rights; tests.yml keeps its tag pins. Publishing also needs a pending publisher configured on PyPI (repo, release.yml, environment "pypi"); until then the publish job has nothing to authenticate to. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018BQF9WQNaTBCJ6YB38RBU7
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.
Sets argyle up to publish to PyPI the same way tcpsweep does:
pyproject.toml+ a tag-triggeredrelease.ymlusing Trusted Publishing, gated on the full suite. Targetsrelease-1.1.0so the packaging ships with 1.1.0 (a PyPI publish needspyproject.tomlon the tagged commit).What's here
pyproject.toml(hatchling, version read fromproxy.py's__version__).tests.yml:+workflow_call(sorelease.ymlcan reuse it as the gate) and itspushtrigger narrowed to branches, so av*tag runs the suite once (via the release gate) instead of twice. The existingrelease-versionjob still enforces tag ==--version, through that reuse.release.yml: on av*tag → run the suite → build sdist+wheel →twine check→ publish via OIDC. Actions pinned to commit SHAs (it holds publish rights);tests.ymlkeeps its@v7tag pins.The name
argyleandproxy.pyare both taken on PyPI, so the distribution isargyll— the Scottish namesake of the argyle sock pattern. The installed command staysargyle. The source file keeps its nameproxy.pybut is shipped as the moduleargyll(notproxy) so installing it can't shadow that common top-level name.Verified locally
python -m build→argyll-1.1.0sdist + wheel;twine checkpasses both.argyll.py(confirmed viaRECORD);import proxyfails in a clean venv — no shadowing.pip install→argyle --versionruns;import argyllworks.make checkpasses; both workflows parse.Still needed before a publish (owner-only, on PyPI)
Configure a pending publisher at https://pypi.org/manage/account/publishing/ for project
argyll:BearlyStable, repoargyle, workflowrelease.yml, environmentpypi.Until then the
publishjob has nothing to authenticate to. After it's set, merging this and pushing thev1.1.0tag publishesargyll1.1.0.Note:
--versionstill printsproxy.py 1.1.0; packaging doesn't change that. Say if you want the command/version string aligned toargyle.🤖 Generated with Claude Code
https://claude.ai/code/session_018BQF9WQNaTBCJ6YB38RBU7