Contributing
Here are a couple of details regarding the development of this library. Contributions are more than welcome!
Please see Setup for developers on how to set up the library for development.
Using bumpversion to tag a new release
Using bumpversion
bumpversion allows to update the library version consistently over all files. Please do not change the version manually, but use the following steps instead after a pull request has been merged into the main branch. Depending on the amount of changes, choose accordingly from:
patch=+0.0.1minor=+0.1.0major=+1.0.0
Execute the following commands:
pip install --upgrade bumpversion
git checkout main
git pull
bumpversion patch # adjust accordingly
git push origin main --tags
The files in which the versions are updated as well as the current version can be found in the .bumpversion.cfg. You need appropriate rights for the repository to be able to push the tag.
Creating a new release
Once a new version has been tagged, a new release has to be created on GitHub. Go to Releases and click on “Draft a new release”. Choose the tag you just created, auto-generate release notes, and click “Publish release”. The package will then be automatically uploaded to the Python Package Index (PyPI) at this location and a new container image will be built and tagged.
After making a new release available on PyPI, a JIRA issue (example) should be opened to request that
hepdata_lib is upgraded in future LCG Releases used by SWAN.