Contributors
For contributors
Section titled “For contributors”Local development
Section titled “Local development”Use uv:
uv sync --group devRun the CLI from the repo:
uv run codeshare --helpuv run codeshare --versionSmoke test
Section titled “Smoke test”Run:
uv run python -m codeshare.release_checksThe smoke test currently covers: • snapshot creation • diff creation • read-only snapshot behavior • docs rendering in full mode • default log exclusion • explicit log inclusion • .codeignore lockfile exclusion • cross-repo file rendering • docs exclusion from API-only output
rm -rf dist build src/*.egg-infouv run python -m buildPublish
Section titled “Publish”uv run twine upload \ --repository-url https://pypi.adastruct.com/ \ -u admin \ -p PASSWORD \ dist/*Install or update the CLI
Section titled “Install or update the CLI”Install globally:
uv tool install \ --index-url https://pypi.adastruct.com/simple \ codeshare-dumpUpgrade later:
uv tool install --upgrade \ --index-url https://pypi.adastruct.com/simple \ codeshare-dumpForce reinstall when needed:
uv tool install --upgrade --reinstall \ --index-url https://pypi.adastruct.com/simple \ codeshare-dumpCheck the installed version:
codeshare --versionShell completion
Section titled “Shell completion”codeshare completion bashcodeshare completion zshSelf-update
Section titled “Self-update”codeshare self-updateNotes • codeshare is a CLI tool, not a normal Python dependency for downstream projects. • prompts_artifacts/ should remain ignored. • prompt artifacts in downstream repos are intentionally private and should not be published in docs. • explicitly requested cross-repo files are supported.