-
Notifications
You must be signed in to change notification settings - Fork 252
Release process
-
cd
somewhere and get a clean version of alibi:git clone [email protected]:SeldonIO/alibi.git
-
Bump the version in
alibi/version.py
to the release version (e.g.0.1.1.dev0
to0.1.1
) -
Add any changes from the previous release to
CHANGELOG.md
, follow the style of Keep a changelog. Also updateCITATION.cff
version
anddate-released
fields. Bonus: If youpip install grip
and then rungrip
in the command line from the root directory of alibi, it will serveREADME.md
in the browser. You can change the path to/CHANGELOG.md
to check if changes render properly. Github may rate-limit this so you may need to set up a personal access token. -
Commit the change with a message e.g.
git commit -m 'v0.1.1'
-
Add a tag
git tag v0.1.1
-
Push the change and the tag
git push
git push origin v0.1.1
-
Build the python package
make build_pypi
-
Publish the package on test PyPI to check everything is working fine (run
pip install twine
if you don't havetwine
installed already)make push_pypi_test
-
Check that it can be installed from the test PyPI, in a clean conda/virtual environment run
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple 'alibi[all]' --no-cache-dir
-
As a minimum check that you can
import alibi
, checkalibi.__version__
andalibi.__path__
(NB: you may need tocd
out of the current directory to import the newly installed version ofalibi
rather than the sources residing in thealibi
folder - to make sure, check thealibi.__path__
variable) andfrom alibi.explainers import *
without issues. If everything works, publish to real PyPImake push_pypi
-
On Github a release will be automatically published when you pushed the tag, edit the release (go to Releases -> click on the new tag -> Create release from tag) and copy the changes relevant to this release from CHANGELOG.md
-
Bump the version in
alibi/version.py
to the next development version (e.g.0.1.1
to0.1.2.dev0
) and push