-
Notifications
You must be signed in to change notification settings - Fork 240
Release process
-
cdsomewhere and get a clean version of alibi-detect:git clone [email protected]:SeldonIO/alibi-detect.git -
Bump the version in
alibi-detect/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. Update theversionanddateentries in the "Citations" section at the bottom of theREADME.md. Bonus: If youpip install gripand then rungripin the command line from the root directory of alibi-detect, 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. -
Also update
CITATION.cffversionanddate-releasedfields. -
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(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 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-detect[all]" --no-cache-dir -
As a minimum check that you can
import alibi_detectandfrom alibi_detect.cd import *(or.ad/.od) without issues (NB: you may need tocdout of the current directory to import the newly installed version ofalibi-detectrather than the sources residing in thealibifolder - 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.pyto the next development version (e.g.0.1.1to0.1.2.dev0) and push