From bcd761653f1492bff8d6c6faa6dc7742c80563d7 Mon Sep 17 00:00:00 2001 From: Marcel Nijenhof Date: Tue, 28 Dec 2021 22:27:42 +0100 Subject: [PATCH] Aanpassing precommit hoek op setup.cfg --- githooks/pre-commit | 2 +- lmwsip/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/githooks/pre-commit b/githooks/pre-commit index 8074f6c..9118022 100755 --- a/githooks/pre-commit +++ b/githooks/pre-commit @@ -2,7 +2,7 @@ set -e -VERSION=$(grep version setup.py | sed -e 's/.*="//' -e 's/",//') +VERSION=$(grep version setup.cfg | sed 's/.*= *//') sed -i "s/^__version__ = .*/__version__ = '${VERSION}'/" lmwsip/__init__.py git add lmwsip/__init__.py diff --git a/lmwsip/__init__.py b/lmwsip/__init__.py index 848b670..4d5b1fa 100644 --- a/lmwsip/__init__.py +++ b/lmwsip/__init__.py @@ -12,7 +12,7 @@ from datetime import datetime, timedelta from dateutil import tz """ Version info changed by git hook """ -__version__ = '' +__version__ = '0.9.0' class LmwSip: """Class to connect to the LMW Standard Interface prototcol (sip)