Release v0.8.0 (QAE-369)
Checklist for a new release
-
Review CHANGELOG.rstandAUTHORS.rsthave been updated. -
Review deprecation warnings that can be cleaned up now. -
CI pipeline:
-
Automated pipeline passes. -
test-win-3.8.9-manualpasses (trigger manually!).
-
-
Bump version and commit & push: VERSION_PART=patch # or minor, or major bump2version $VERSION_PART --config-file setup.cfg NEW_VERSION=$(python setup.py --version) echo $NEW_VERSION git add setup.py setup.cfg quantify_scheduler/__init__.py git commit -m "Bump to version $NEW_VERSION" git push -
Commit pip frozen requirements for future reference: -
Go to the
test-unix-3.8pipeline job and download theartifacts(right side "Job artifacts"-->"Download"). -
Unzip, get the
frozen-requirements.txt. -
Paste it in
frozen-requirementsdirectory. -
Rename it, commit & push:
NEW_VERSION=$(python setup.py --version) echo $NEW_VERSION mv frozen-requirements.txt frozen-requirements-$NEW_VERSION.txt git add ./frozen_requirements/frozen-requirements-$NEW_VERSION.txt git commit -m "Add pip frozen requirements for $NEW_VERSION" git push
-
-
Create tag for bumped version: - Merge this MR into
main. - Create tag via GitLab from
mainusing the bumped version number (https://gitlab.com/quantify-os/quantify-scheduler/-/tags/new).
- Merge this MR into
-
Read-the-Docs setup:
-
Create new release on GitLab. - Meaningful title
- List of highlights followed by changelog.
- Add a few images or animated GIFs showcasing the new exciting features.
-
Do TestPyPi release (also see https://adriaanrol.com/posts/pypi/):
-
Checkout the tag you just created: git fetch && git checkout $NEW_VERSION -
Build package and upload to TestPyPi: # Always update first pip install --user --upgrade setuptools wheel # Clear dist/ directory rm dist/* # This creates several files in the dist/ directory python setup.py sdist bdist_wheel # If ^ runs without warnings you can upload to test.pypi.org python -m twine upload --repository testpypi dist/* -
Install package in (test) env and validate (e.g., run a quick notebook). pip install quantify-scheduler==x.x.x --extra-index-url=https://test.pypi.org/simple/-
(For creating test env)
ENV_NAME=qtest # Adjust PY_VER=3.8 DISPLAY_NAME="Python $PY_VER Quantify Test Env" && echo $DISPLAY_NAME # Adjust conda create --name $ENV_NAME python=$PY_VER conda activate $ENV_NAME conda install -c conda-forge jupyterlab python -m ipykernel install --user --name=$ENV_NAME --display-name="$DISPLAY_NAME"
-
(For creating test env)
-
-
Release on PyPi and wait for it to become available (also see https://adriaanrol.com/posts/pypi/). twine upload dist/* -
Post the new release in Slack ( #software-for-usersand#software-for-developers).- PS Rockets are a must!
🚀 🚀 🚀
- PS Rockets are a must!
-
Inform the Quantify Marketing Team.