rename to cacp-protocol + add release.yml workflow#7
Merged
Conversation
The unprefixed `cacp` slot on PyPI is occupied by an unrelated project
(Classification Algorithms Comparison Pipeline by Sylwester Czmil,
v1.0.4). To publish the reference parser without colliding:
- Distribution name: `cacp-protocol`
- Import name: `cacp_protocol`
Pure mechanical rename — no behavioral change. 42 tests pass.
Files renamed:
- src/cacp/{__init__,models,parser}.py → src/cacp_protocol/...
- All imports updated: `from cacp.X` → `from cacp_protocol.X`,
`from cacp import` → `from cacp_protocol import`
`pyproject.toml` updates `name = "cacp-protocol"`. README install +
usage examples updated; added a "Naming" callout explaining the
collision so future readers don't wonder.
Added `.github/workflows/release.yml`:
- Triggers on `v*` tag push
- Verifies pyproject version matches the tag
- Builds sdist + wheel via `python -m build`
- Publishes via `pypa/gh-action-pypi-publish` using PyPI
trusted-publisher (OIDC, no token needed once configured on PyPI)
- Fallback path documented in the workflow comments — operator can
swap to `password: \${{ secrets.PYPI_API_TOKEN }}` if trusted-publisher
isn't viable
Operator next steps to ship v0.1.0:
1. Merge this PR
2. (one-time) On pypi.org: register `cacp-protocol` project (it's
currently unclaimed, HTTP 404 on /pypi/cacp-protocol/json) AND
add a trusted-publisher entry pointing at owner=zenprocess,
repo=cacp, workflow=release.yml, environment=pypi
3. Tag `git tag v0.1.0 && git push --tags` — workflow auto-publishes
Unblocks switchyard CACP consolidation epic (#1015), spec 110 chain
(#1017 A/B telemetry already shipped in switchyard v5.4.10).
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.
Why
PyPI's
cacpslot is occupied by an unrelated project — Sylwester Czmil's "Classification Algorithms Comparison Pipeline" v1.0.4. We can't publish under that name without colliding at both the dist-name AND import level.What
cacp-protocolcacp_protocolPure mechanical rename — no behavioral change. 42 tests pass (run with
cd cacp-python && PYTHONPATH=src pytest).Files
src/cacp/{__init__,models,parser}.py→src/cacp_protocol/...from cacp.X→from cacp_protocol.Xpyproject.tomlupdatesname = "cacp-protocol".gitignoreadded (was missing —__pycache__slipped into the first amend before this fix)Release workflow added
.github/workflows/release.yml:v*tag pushpyprojectversion matches the tag (catches the v5.1.3-class drift switchyard hit)python -m buildpypa/gh-action-pypi-publishwith PyPI trusted-publisher (OIDC, no token in repo)Operator next steps to ship v0.1.0
cacp-protocol(currently unclaimed — HTTP 404 on/pypi/cacp-protocol/jsonconfirmed)zenprocess, repocacp, workflowrelease.yml, environmentpypigit tag v0.1.0 && git push --tags— workflow auto-publishesIf trusted-publisher isn't viable, fallback path documented in workflow comments — replace
with:block withpassword: \${{ secrets.PYPI_API_TOKEN }}.Unblocks
switchyard CACP consolidation epic (#1015), spec 110 chain. switchyard's A/B telemetry infra (#1017) already shipped in v5.4.10 and is waiting for
cacp-protocolto import as the reference parser.🤖 Generated with Claude Code