The recommended way to make a release is to use jupyter_releaser
.
Note that we must use manual versions since Jupyter Releaser does not yet support "next" or "patch" when dev versions are used.
To create a manual release, perform the following steps:
pip install hatchling twine build
git pull origin $(git branch --show-current)
git clean -dffx
npm install
npm run build
echo "Enter new version"
read new_version
hatchling version ${new_version}
git tag -a ${new_version} -m "Release ${new_version}"
rm -rf dist
python -m build .
echo "Enter dev version"
read dev_version
hatchling version ${dev_version}
git push origin $(git branch --show-current)
twine check dist/*
twine upload dist/*