summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-12 09:14:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-12 09:15:03 +0000
commit886ade79e36de334ee83795e17b79693d4c22d50 (patch)
tree3b3728bb22c310dc2c88478ab33512d82d2a3784
parentAdding hatch build-depends for new usptream version. (diff)
downloadgitlint-886ade79e36de334ee83795e17b79693d4c22d50.tar.xz
gitlint-886ade79e36de334ee83795e17b79693d4c22d50.zip
Workarounding hatch-vcs as debian upstream tarball doesn't contain upstreams git vcs files.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xdebian/rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index eb07b9d..3df7be3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,16 @@
#!/usr/bin/make -f
+VERSION := $(shell dpkg-parsechangelog -SVersion)
+
%:
dh ${@} --buildsystem=pybuild --sourcedir=$(CURDIR)/gitlint-core
+execute_after_dh_auto_clean:
+ rm -f gitlint-core/_version.py
+
+execute_before_dh_auto_build:
+ echo "__version__ = version = '$(VERSION)'" > gitlint-core/_version.py
+
override_dh_auto_test:
# disabled