-
Notifications
You must be signed in to change notification settings - Fork 263
Release process
-
cdsomewhere and get a clean version of alibi:git clone [email protected]:SeldonIO/alibi.git -
Bump the version in
alibi/version.pyto the release version (e.g.0.1.1.dev0to0.1.1) -
Add any changes from the previous release to
CHANGELOG.md, follow the style of Keep a changelog. Also updateCITATION.cffversionanddate-releasedfields. Bonus: If youpip install gripand then rungripin the command line from the root directory of alibi, it will serveREADME.mdin the browser. You can change the path to/CHANGELOG.mdto 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 pushgit 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 twineif you don't havetwineinstalled 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 tocdout of the current directory to import the newly installed version ofalibirather than the sources residing in thealibifolder - 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.pyto the next development version (e.g.0.1.1to0.1.2.dev0) and push