This document guides a contributor through creating a release of the Jupyter notebook.
Review CONTRIBUTING.rst. Make sure all the tools needed to generate the
minified JavaScript and CSS files are properly installed.
You can remove all non-tracked files with:
git clean -xfdiThis would ask you for confirmation before removing all untracked files. Make
sure the dist/ folder is clean and avoid stale build from
previous attempts.
Update version number in
notebook/_version.py.Run this command:
python setup.py jsversion
It will modify (at least)
notebook/static/base/js/namespace.jswhich makes the notebook version available from within JavaScript.Commit and tag the release with the current version number:
git commit -am "release $VERSION" git tag $VERSION
You are now ready to build the
sdistandwheel:python setup.py sdist python setup.py bdist_wheel
You can now test the
wheeland thesdistlocally before uploading to PyPI. Make sure to use twine to upload the archives over SSL.twine upload dist/*If all went well, change the
notebook/_version.pyback adding the.devsuffix.Push directly on master, not forgetting to push
--tagstoo.