[med-svn] [Git][med-team/seqmagick][master] 3 commits: d/rules: workaround upstream __version__ setting.

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Tue Aug 6 21:06:30 BST 2024



Étienne Mollier pushed to branch master at Debian Med / seqmagick


Commits:
923a4a52 by Étienne Mollier at 2024-08-06T22:04:08+02:00
d/rules: workaround upstream __version__ setting.

The original setup.py code uses git, but this is not available in the
build environment.

Closes: #1077409

- - - - -
4b65e649 by Étienne Mollier at 2024-08-06T22:05:18+02:00
d/control: declare compliance to standards version 4.7.0.

- - - - -
63fc3a6b by Étienne Mollier at 2024-08-06T22:05:49+02:00
ready to upload to unstable.

- - - - -


3 changed files:

- debian/changelog
- debian/control
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+seqmagick (0.8.6-3) unstable; urgency=medium
+
+  * d/rules: workaround upstream __version__ setting.
+    The original setup.py code uses git, but this is not available in the
+    build environment. (Closes: #1077409)
+  * d/control: declare compliance to standards version 4.7.0.
+
+ -- Étienne Mollier <emollier at debian.org>  Tue, 06 Aug 2024 22:05:39 +0200
+
 seqmagick (0.8.6-2) unstable; urgency=medium
 
   * replace-ungap.patch: new: fix test failure. (Closes: #1066772)


=====================================
debian/control
=====================================
@@ -11,7 +11,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-pytest <!nocheck>,
                python3-biopython,
                python3-pygtrie
-Standards-Version: 4.6.2
+Standards-Version: 4.7.0
 Vcs-Browser: https://salsa.debian.org/med-team/seqmagick
 Vcs-Git: https://salsa.debian.org/med-team/seqmagick.git
 Homepage: https://github.com/fhcrc/seqmagick/


=====================================
debian/rules
=====================================
@@ -1,13 +1,22 @@
 #!/usr/bin/make -f
-
-# DH_VERBOSE := 1
+include /usr/share/dpkg/pkg-info.mk
 export LC_ALL=C.UTF-8
 
 %:
 	dh $@ --with python3 --buildsystem=pybuild
 
-override_dh_auto_clean:
-	dh_auto_clean
+# Workaround the missing version file caused by missing the git command
+# inside the build environment.  Technically this needs to be executed
+# before setup.py calls.  Don't hesitate to split the two Makefile
+# targets if some changes are needed in only one of dh_auto_clean or
+# dh_auto_configure, or if one thinks this is more readable.  This was
+# needed to address Debian bug #1077409.
+execute_before_dh_auto_clean execute_before_dh_auto_configure:
+	mkdir -p seqmagick/data
+	echo $(DEB_VERSION_UPSTREAM) > seqmagick/data/ver
+
+execute_after_dh_auto_clean:
+	mkdir -p seqmagick/data
 	rm -rf seqmagick/data
 	rm -rf seqmagick.egg-info
 



View it on GitLab: https://salsa.debian.org/med-team/seqmagick/-/compare/276b39582de02130980fc604299ff0899379e68e...63fc3a6bb234c48e2bd19cd1eb3ebd8ba00c777f

-- 
View it on GitLab: https://salsa.debian.org/med-team/seqmagick/-/compare/276b39582de02130980fc604299ff0899379e68e...63fc3a6bb234c48e2bd19cd1eb3ebd8ba00c777f
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240806/e93a5646/attachment-0001.htm>


More information about the debian-med-commit mailing list