-
Notifications
You must be signed in to change notification settings - Fork 224
Release process
-
cd
somewhere and get a clean version of alibi-detect:git clone git@github.com:SeldonIO/alibi-detect.git
-
Bump the version in
alibi-detect/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. Update theversion
anddate
entries in the "Citations" section at the bottom of theREADME.md
. Bonus: If youpip install grip
and then rungrip
in the command line from the root directory of alibi-detect, 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. -
Also update
CITATION.cff
version
anddate-released
fields. -
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
(if you name the upstream SeldonIO repo something other than
origin
, e.g.upstream
, you will need to use this in place oforigin
) -
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-detect[all]" --no-cache-dir
-
As a minimum check that you can
import alibi_detect
andfrom alibi_detect.cd import *
(or.ad
/.od
) without issues (NB: you may need tocd
out of the current directory to import the newly installed version ofalibi-detect
rather than the sources residing in thealibi
folder - to make sure, check thealibi_detect.__path__
variable). 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 -> Edit) and copy the changes relevant to this release from CHANGELOG.md
-
Bump the version in
alibi-detect/version.py
to the next development version (e.g.0.1.1
to0.1.2.dev0
) and push