-
Notifications
You must be signed in to change notification settings - Fork 84
Package Guidelines
The main
branch should remain compatible with what is published on PyPi. Therefore the only changes which should be pushed to main
are bug fixes, or docs fixes. No new features should go to main
without an immediate new release.
Push to future
for minor or incremental changes. Strive to keep future passing tests. For larger and more extreme breaking changes, make a branch off future
. Merge future
into main
prior to making a release.
Version has 3 numbers x.y.z
x
will stay at 0 while we are in beta
y
is incremented if the new release has breaking changes to the previous release. If y
is incremented, z
resets to 0.
z
is incremented if the new release is compatible with the previous release, i.e. stability improvements and bug fixes etc.
You must set the variable PYPI_PASSWORD
in the secrets section in the settings of the github repo. PYPI_PASSWORD
is set to a generated token from PyPi which has write access to only this package.
- Make sure that tests are passing on main branch before progressing
- Update RELEASE or setup.py to increment the version number of the package
- On the main page of the package, click
Releases
in the right sidebar - Click
Draft a new release
- In the Release title, enter
v{version_number}
where{version_number}
is replaced with what you entered in step 2. - Click
Publish release
- This will trigger GitHub to run tests and will rebuild docs on tests passing
- This will trigger a github workflow which will publish the package to PyPi