- PyPI Account: You must have an account on PyPI.
- API Token: Create an API token on PyPI.
- Go to Account Settings -> API Tokens.
- Create a new token (scope it to "Entire account" if
csdocdoesn't exist yet, or just forcsdocif it does). - Copy the token (it starts with
pypi-).
Since this project uses uv, you can publish directly with it.
-
Build the package:
uv build
This creates
dist/csdoc-0.1.0.tar.gzanddist/csdoc-0.1.0-py3-none-any.whl. -
Publish:
uv publish --token <your-pypi-token>
- Replace
<your-pypi-token>with your actual token. - Alternatively, set the
UV_PUBLISH_TOKENenvironment variable.
- Replace
If you prefer standard tools:
-
Install twine:
uv pip install twine # or pip install twine -
Upload:
twine upload dist/*You will be prompted for your username (
__token__) and password (the API token).