-
Deployment Installations (mac) [source]:
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
python3 -m pip install --upgrade bump2version
-
Deployment workflow:
- generate docs with
python docs/conf.py
(optional) - Commit all changes.
- Increase version # with bump2version
bump2version patch
orbump2version minor
- Build distribution archives:
python -m build
- A) Upload to twine:
[only if using general full-account credentials]twine upload dist/*
- B) Upload to twine with an API token:
- Use the
--repository
flag with the "server" name from $HOME/.pypirc twine upload --repository cdds dist/*
- Use the
- generate docs with
-
[11/28/22 Update] Using project-based API token for upload
- Follow the following guides to set up your own "$HOME/.pypirc" file with the API token: https://pypi.org/help/#apitoken
- For additional info on the twine upload commands with project APIs: https://kynan.github.io/blog/2020/05/23/how-to-upload-your-package-to-the-python-package-index-pypi-test-server
pip install --upgrade bump2version
pip install --upgrade pip
pip install --upgrade build
pip install --upgrade twine
bump2version patch #or minor/major
python -m build
twine upload --repository cdds dist/*