Skip to content

[ARCHIVE] Release MOP Hatch

Joris Roovers edited this page Mar 7, 2023 · 1 revision

Pre-release checks

IMPORTANT: Ensure the versions in gitlint-core/gitlint/__init__.py and the dependency specified in the top-level gitlint pyproject.toml dependency match!

dependencies = [
    "gitlint-core[trusted-deps]==0.19.0dev2",
]

Release

export HATCH_INDEX_USER=<username>
export HATCH_INDEX_AUTH=<password>
cd gitlint-core
hatch clean
hatch build
hatch publish -r test

cd .. # gitlint
hatch clean
hatch build
hatch publish -r test

Published at: https://test.pypi.org/project/gitlint/#history

Published at: https://test.pypi.org/project/gitlint-core/#history

TODO

  • Docker
  • Checkout existing MOP, not fully reviewed

Post-release Testing

Trying it out:

export GITLINT_RELEASE_VERSION=$(hatch version); echo $GITLINT_RELEASE_VERSION
pip install --no-cache -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple gitlint==$GITLINT_RELEASE_VERSION
hatch env remove qa
hatch run qa:integration-tests # This must fail since no gitlint installed
hatch run qa:pip install --no-cache -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple gitlint==$GITLINT_RELEASE_VERSION
hatch run qa:integration-tests

Post Release Actions

Version bump

hatch version minor,dev