-
Notifications
You must be signed in to change notification settings - Fork 0
How to tag and publish
If a new version has to be tagged, follow the steps below:
Prerequisites: Make sure that the python packages build
and twine
are installed on your local machine. If this is not the case, do so with
pip install build
pip install twine
-
Make sure all changes corresponding to the new version have been merged into the main branch
1.1. Update all the version numbers in the code (documentation:
conf.py
, package:pyproject.toml
,setup.py
).1.2. Check
CHANGELOG.md
andCONTRIBUTORS.md
files. -
On the local machine, pull all changes of the main branch and create an annotated tag. For the exemplary version 1.0.12, this is done with the command
git tag -a v1.0.12 -m "version 1.0.12"
-
Push the tag to the remote repository with
git push origin v1.0.12
-
Go to the SPARKX GitHub repository and click on 'Releases' on the main page. Use the GUI to publish the new tag
-
On the local machine, pull the new tag
-
Go to the SPARKX root directory and create publishable project files for PyPI with
python3 -m build
This will automatically create a new directory
dist/
which contains all necessary files -
Upgrade
pip3 install twine --upgrade
andpip3 install pkginfo --upgrade
-
To upload the project and distribute it via PyPI, use
twine upload dist/*
-
In the terminal, you will be asked for the username and password corresponding to the SPARKX package on PyPI. After entering, the package will be uploaded and is available via
pip install sparkx
SPARKX - Software Package for Analyzing Relativistic Kinematics in Collision eXperiments
For the full documentation of the classes and functions visit: https://smash-transport.github.io/sparkx/