-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Arun Prakash Jana edited this page Jul 29, 2026
·
6 revisions
Welcome to the dotz wiki!
Use these steps to build a release and upload it to PyPI.
- Ensure your working tree is clean and update the version in
dotz.py. - Create and activate a virtual environment.
- Install release tooling.
- Build and validate the package.
- Upload to TestPyPI first, then PyPI.
# from project root
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install build twine
# clean old artifacts
rm -rf dist/ build/ *.egg-info
# build sdist + wheel
python -m build
# verify metadata and package archives
python -m twine check dist/*
# upload to TestPyPI (recommended first)
python -m twine upload --repository testpypi dist/*
# test install from TestPyPI
python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple dot
# upload to PyPI
python -m twine upload dist/*After bumping the version in setup.py:
git add setup.py README.md pyproject.toml
git commit -m "Release v0.1.1"
git tag v0.1.1
git push origin main --tags- Preferred: use an API token as password with username
__token__. - Store credentials in
~/.pypircor enter them when prompted bytwine. - If you use 2FA on PyPI, API tokens are required for uploads.