[med-svn] [Git][med-team/qiime][master] 2 commits: Generate the version module from debian/changelog

Andreas Tille (@tille) gitlab at salsa.debian.org
Wed Nov 11 12:45:23 GMT 2026



Andreas Tille pushed to branch master at Debian Med / qiime


Commits:
782c07d8 by Andreas Tille at 2026-11-11T13:36:57+01:00
Generate the version module from debian/changelog

The patch makes setuptools read the version from qiime2._version, but
nothing created that module, so the build failed with
ModuleNotFoundError: No module named 'qiime2'.

Write it in dh_auto_configure from DEB_VERSION_UPSTREAM and remove it
again in dh_auto_clean.  The path is already covered by .gitignore, so
the generated file never leaks into the source package.

- - - - -
2f8df9a4 by Andreas Tille at 2026-11-11T13:44:59+01:00
Upload to experimental

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,4 +1,4 @@
-qiime (2026.10.0-1) UNRELEASED; urgency=medium
+qiime (2026.10.0-1) experimental; urgency=medium
 
   * Upstream was renamed to rachis but the qiime module is provided in
     the q2 repository.  This is continued here.


=====================================
debian/rules
=====================================
@@ -13,6 +13,10 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 %:
 	dh $@ --buildsystem=pybuild
 
+override_dh_auto_configure:
+	printf '__version__ = "%s"\n' '$(DEB_VERSION_UPSTREAM)' > src/qiime2/_version.py
+	dh_auto_configure
+
 override_dh_auto_install:
 	dh_auto_install --destdir=debian/qiime
 	# The generated entry point imports rachis_cli, which is not packaged yet;
@@ -21,4 +25,5 @@ override_dh_auto_install:
 
 override_dh_auto_clean:
 	dh_auto_clean
+	rm -f src/qiime2/_version.py
 	rm -rf qiime2.egg-info



View it on GitLab: https://salsa.debian.org/med-team/qiime/-/compare/2d0da867eae336685194cfaf7653685797a7a2cb...2f8df9a48bbf3985798fb2124e4c8bfc949f93fd

-- 
View it on GitLab: https://salsa.debian.org/med-team/qiime/-/compare/2d0da867eae336685194cfaf7653685797a7a2cb...2f8df9a48bbf3985798fb2124e4c8bfc949f93fd
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


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


More information about the debian-med-commit mailing list