Publishing Django Orbit¶
Prerequisites¶
Build the Package¶
This creates: - dist/django_orbit-0.1.0.tar.gz (source) - dist/django_orbit-0.1.0-py3-none-any.whl (wheel)
Test on TestPyPI First¶
# Upload to TestPyPI
twine upload --repository testpypi dist/*
# Test installation
pip install --index-url https://test.pypi.org/simple/ django-orbit
Publish to PyPI¶
You'll be prompted for your PyPI username and password (or API token).
Using API Tokens (Recommended)¶
- Go to https://pypi.org/manage/account/token/
- Create a token for this project
- Use with twine:
Or create ~/.pypirc:
After Publishing¶
Test the installation:
Version Updates¶
- Update version in
orbit/__init__.py - Update CHANGELOG.md
- Rebuild and upload: