Skip to content

Latest commit

 

History

History
50 lines (46 loc) · 1.82 KB

RELEASE.md

File metadata and controls

50 lines (46 loc) · 1.82 KB

RELEASE NOTES

Quick notes about releasing a new version of this package. For more information, visit the cookiecutter page.

Releasing your initial packages:

  1. git checkout develop
  2. Make sure all changes are pushed to remote and CI is OK.
  3. Make sure examples work in Jupyter Lab.
  4. Make sure examples work in Jupyter Notebook. For each notebook, follow this procedure:
    • Widgets > Clear widget states
    • Run notebook entirely
    • Setup widgets on a nice view
    • Widgets > Save widget states
    • Save and Close notebook
  5. Create documentation and check everything looks fine locally.
  6. Check linting for JS code: yarn run lint.
  7. Change versions in _version.py, package.json and pyproject.toml. Make sure you input exactly the same numbers !
  8. Commit version changes on both develop and master:
    git add -u
    git commit -m 'Bumped version to X.Y.Z'
    git checkout master
    git merge --ff-only develop
    git checkout develop
    
  9. yarn build (do not forget to activate the correct python environment)
  10. Relase the npm packages:
    npm login    # Optional, if not already done
    npm publish
  11. Release python packages:
    pip install build twine   # Optional, if not already done
    rm -rf dist/*
    
    python -m build .
    twine check dist/*
    twine upload dist/*
  12. Tag the release commit: git tag vX.Y.Z.
  13. Update the version in _version.py, package.json and pyproject.toml (back to 'dev' versions).
  14. Commit the changes in develop.
  15. Push online git push --all && git push --tags.
  16. Verify PyPi, NPM and readthedocs. Note that some may take a while to show the changes.