-
Update version number and release date in dolfyn/_version.py
-
Update version number in changelog.md
-
Commit version number changes
-
Create a new version tag and push to repository:
git tag v#.#.# git push origin --tags
Upgrade packaging tools:
python3 -m pip install --upgrade build pip twine
Remove legacy files from dist/ directory.
rm dist/dolfyn-*
Build:
python3 -m build
Upload to Test-PyPi:
python3 -m twine upload --repository testpypi dist/dolfyn-*
Before uploading to the distribution version of PyPi, it is a best practice to:
-
Build a test virtual environment
-
Install dependencies
python3 -m pip install -r requirements.txt
-
Install from testpypi:
python3 -m pip install --index-url https://test.pypi.org/simple/ dolfyn
-
Confirm that you can import the package and do a version check
pip freeze | findstr dolfyn # version check
python3 -m twine upload dist/dolfyn-*
Change directories in a command window:
cd dolfyn/docs
To build documentation in html:
make html
To remove all built documentation:
make clean