Developing¶
To develop, we suggest using virtual environments together with pip
or using pipenv. Once the environment is activated, clone the repo from GitHub
git clone https://github.com/scikit-hep/pyhf.git
and install all necessary packages for development
pip install --ignore-installed -U -e .[complete]
Then setup the Git pre-commit hook for Black by running
pre-commit install
Publishing¶
Publishing to PyPI and TestPyPI is automated through the PyPA’s PyPI publish GitHub Action. To publish a release to PyPI one simply needs to run
bumpversion [major|minor|patch]
to update the release version and get a tagged commit and then push the commit
and tag to master
with
git push origin master --tags