Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 1.66 KB

RELEASE.md

File metadata and controls

42 lines (35 loc) · 1.66 KB

Release

PyMeasure package

  1. Pull the latest master branch
  2. git checkout -b v<version>_release
  3. Update CHANGES.txt with the changelog
  4. Push the changes up as a PR
  5. Verify that the builds complete
  6. Merge the PR
  7. Fetch master, build and check the source packages
    • python -m pip install --upgrade build twine
    • python -m build
    • Check the distributions (twine check dist/*, version will not yet be correct)
  8. Create a git tag in the format "vX.Y.Z"
  9. Build final packages and confirm the correct version number is being used
    • python -m build
    • Check the distributions (twine check dist/*)
  10. Create a tagged release on GitHub

PyPI release

Official guide here.

  1. Upload the wheel and source distributions to the test server
    • python -m twine upload --repository testpypi dist/*
  2. Verify the test repository: https://test.pypi.org/project/PyMeasure
  3. Confirm that the installation works (best in a separate environment)
    • python -m pip install --index-url https://test.pypi.org/simple/ --no-deps pymeasure
  4. Upload to the real repository (twine upload dist/PyMeasure-<version>*)
  5. Verify that the package is updated: https://pypi.org/project/PyMeasure

conda-forge feedstock

  1. Release to PyPI first (the feedstock pulls from there)
  2. Pull the latest master branch
  3. git checkout -b v<version>_release
  4. Get the SHA256 hash of the PyPI package at https://pypi.org/project/PyMeasure/#files
  5. Update recipe/meta.yml with the checksum and version number
  6. Push the changes up as a PR
  7. Verify that the builds complete
  8. Merge the PR