The recommended way to make a release is to use jupyter_releaser
.
To create a manual release, perform the following steps:
pip install pipx
git pull origin $(git branch --show-current)
git clean -dffx
echo "Enter new version"
read script_version
pipx run hatch version ${script_version}
git tag -a ${script_version} -m "${script_version}"
rm -rf dist
pipx run build .
echo "Enter dev version"
read dev_version
pipx run hatch version ${dev_version}
git push origin $(git branch --show-current)
pipx run twine check dist/*
pipx run twine upload dist/*