bunpy publish
bunpy publish [flags]Description
Builds a wheel from pyproject.toml and uploads it to PyPI (or a compatible
index). Requires a PyPI API token.
Flags
| Flag | Default | Description |
|---|---|---|
--token <tok> | $PYPI_TOKEN | PyPI API token |
--index <url> | PyPI | Upload URL |
--dry-run | off | Build the wheel but don’t upload |
--help, -h | Print help |
Examples
Publish using an environment variable:
export PYPI_TOKEN=pypi-...
bunpy publishDry run to check the wheel:
bunpy publish --dry-runPublish to a private index:
bunpy publish --index https://pypi.mycompany.com/legacy/ --token $PRIVATE_TOKENErrors
If no token is provided and $PYPI_TOKEN is not set, bunpy exits with an
error. Use --dry-run to test the build without credentials.