File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2727 hooks :
2828 - id : isort
2929 name : isort (python)
30+ - repo : local
31+ hooks :
32+ - id : verify-setup
33+ name : verify versions in setup
34+ entry : scripts/verify_setup.sh
35+ language : script
Original file line number Diff line number Diff line change 66# Verify versions matches the git tag
77SETUP_VERSION=$( grep -oP ' (?<=version=")[^"]+' setup.py)
88PKGBUILD_VERSION=$( grep -oP ' (?<=pkgver=)[^ ]+' PKGBUILD)
9- PYPROJECT_VERSION=$( grep -oP ' (?<=version = )[^ ]+' pyproject.toml)
9+ PYPROJECT_VERSION=$( grep -oP ' (?<=version = " )[^" ]+' pyproject.toml)
1010GIT_TAG=$( git describe --tags --abbrev=0)
1111test " $SETUP_VERSION " == " $GIT_TAG " || (echo " setup.py is version ${SETUP_VERSION} but should be ${GIT_TAG} " && exit 1)
1212test " $PKGBUILD_VERSION " == " $GIT_TAG " || (echo " PKGBUILD is version ${PKGBUILD_VERSION} but should be ${GIT_TAG} " && exit 1)
You can’t perform that action at this time.
0 commit comments