Versie nummer in de module

This commit is contained in:
Marcel Nijenhof
2021-02-16 16:16:42 +01:00
parent 830aebdfa4
commit 00d9d64f50
5 changed files with 23 additions and 1 deletions

7
githooks/pre-commit Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
VERSION=$(grep version setup.py | sed -e 's/.*="//' -e 's/",//')
sed -i "s/^__version__ = .*/__version__ = '${VERSION}'/" lmwsip/__init__.py
git add lmwsip/__init__.py
python setup.py test