[med-svn] [Git][med-team/atropos][master] 5 commits: Add patch to fix setup.py to not include tests dir as a module
Stuart Prescott (@stuart)
gitlab at salsa.debian.org
Tue Nov 10 02:54:01 GMT 2026
Stuart Prescott pushed to branch master at Debian Med / atropos
Commits:
f2e8be56 by Stuart Prescott at 2026-11-10T13:34:26+11:00
Add patch to fix setup.py to not include tests dir as a module
- - - - -
c2174637 by Stuart Prescott at 2026-11-10T13:35:07+11:00
Use d/clean to clean up after build
- - - - -
1e3ac383 by Stuart Prescott at 2026-11-10T13:35:35+11:00
Let pybuild automatically copy and remove tests
- - - - -
26f2ee04 by Stuart Prescott at 2026-11-10T13:36:08+11:00
Drop unneeded staging tree cleanup
- - - - -
89443eab by Stuart Prescott at 2026-11-10T13:37:19+11:00
Add changelog for upload
- - - - -
5 changed files:
- debian/changelog
- + debian/clean
- + debian/patches/0003-Fix-setup.py-to-not-include-tests-directory-as-a-mod.patch
- debian/patches/series
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+atropos (1.1.32+dfsg-3) unstable; urgency=medium
+
+ * Team upload.
+ * At patch to stop setup.py from installing tests directory as a module.
+ * Let pybuild handle test files automatically.
+ * Remove no-longer-needed cleanup code.
+
+ -- Stuart Prescott <stuart at debian.org> Tue, 10 Nov 2026 13:37:07 +1100
+
atropos (1.1.32+dfsg-2) unstable; urgency=medium
* Team upload.
=====================================
debian/clean
=====================================
@@ -0,0 +1,3 @@
+.pytest_cache/
+atropos.egg-info/
+atropos/align/_align.c atropos/commands/trim/_qualtrim.c atropos/io/_seqio.c
=====================================
debian/patches/0003-Fix-setup.py-to-not-include-tests-directory-as-a-mod.patch
=====================================
@@ -0,0 +1,21 @@
+From: Stuart Prescott <stuart at debian.org>
+Date: Tue, 10 Nov 2026 12:24:05 +1100
+Subject: Fix setup.py to not include tests directory as a module
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 420bf4b..0b96f6e 100644
+--- a/setup.py
++++ b/setup.py
+@@ -152,7 +152,7 @@ setup(
+ long_description_content_type="text/markdown",
+ license="MIT",
+ ext_modules=extensions,
+- packages=find_packages(),
++ packages=find_packages(include=["atropos*"]),
+ scripts=["bin/atropos"],
+ package_data={"atropos": ["adapters/*.fa", "commands/**/templates/*"]},
+ tests_require=["pytest", "pytest-timeout"], # , "jinja2", "pysam"],
=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
no_install_depends_cython.patch
cy3
+0003-Fix-setup.py-to-not-include-tests-directory-as-a-mod.patch
=====================================
debian/rules
=====================================
@@ -7,21 +7,3 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
dh $@ --buildsystem=pybuild
-
-override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- \
- dh_auto_test -- --before-test="ln -s $(CURDIR)/tests/cut {build_dir}/tests && ln -s $(CURDIR)/tests/data {build_dir}/tests"
-endif
-
-override_dh_install:
- dh_install
- find debian -type d -name __pycache__ | xargs rm -rf
- find debian -type d -name tests | xargs rm -rf
- find debian -type f -name .adapters -delete
-
-override_dh_auto_clean:
- dh_auto_clean
- rm -rf .pytest_cache
- rm -rf atropos.egg-info
- rm -f atropos/align/_align.c atropos/commands/trim/_qualtrim.c atropos/io/_seqio.c
View it on GitLab: https://salsa.debian.org/med-team/atropos/-/compare/ced5fca4c69604858033861d7e1fe49e356e6ac3...89443eab8d7b0ce610b650eab61ab551ea32c473
--
View it on GitLab: https://salsa.debian.org/med-team/atropos/-/compare/ced5fca4c69604858033861d7e1fe49e356e6ac3...89443eab8d7b0ce610b650eab61ab551ea32c473
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/20261110/c9aec055/attachment-0001.htm>
More information about the debian-med-commit
mailing list