The recommended way to make a release is to use jupyter_releaser
.
export release_branch=master
git clone [email protected]:jupyter/notebook.git
cd notebook
git checkout ${release_banch}
conda create -n notebook-release -c conda-forge jupyter
conda activate notebook-release
pip install -ve .
conda install -c conda-forge nodejs babel
npm install -g po2json
pip install jupyter_releaser # used for build dependencies (build, twine, tbump)
tbump --only-patch <new_version> # set the new version
python setup.py jsversion
git commit -am "Release $(python setup.py --version)"
git tag $(python setup.py --version)
rm -rf dist
python -m build .
twine check dist/* && twine upload dist/*
tbump --only-patch <dev_version> # Add the .dev suffix
python setup.py jsversion
git commit -am "Back to dev version"
git push origin ${release_branch} --tags