[med-svn] [Git][med-team/emperor][master] 4 commits: Reenable testing with Python 3.15
Stuart Prescott (@stuart)
gitlab at salsa.debian.org
Tue Nov 10 06:47:31 GMT 2026
Stuart Prescott pushed to branch master at Debian Med / emperor
Commits:
987d6978 by Stuart Prescott at 2026-11-10T17:38:20+11:00
Reenable testing with Python 3.15
- - - - -
8af89ba1 by Stuart Prescott at 2026-11-10T17:38:45+11:00
Let pybuild automatically manage test data files
- - - - -
4b3f73a5 by Stuart Prescott at 2026-11-10T17:39:23+11:00
Add patch to setup.py to not pick up tests as a module to install
- - - - -
d1385948 by Stuart Prescott at 2026-11-10T17:39:54+11:00
Add changelog for upload
- - - - -
5 changed files:
- debian/changelog
- + debian/patches/0009-Fix-setup.py-to-not-pick-up-tests-as-a-module.patch
- debian/patches/series
- debian/rules
- debian/tests/run-unit-test
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+emperor (1.0.5+ds1-4) unstable; urgency=medium
+
+ * Team upload.
+ * Add patch to stop setup.py adding 'tests' directory to list of modules
+ installed.
+ * Drop manual handling of test data and let pybuild do it automatically.
+ * Re-enable tests for Python 3.15.
+
+ -- Stuart Prescott <stuart at debian.org> Tue, 10 Nov 2026 17:39:43 +1100
+
emperor (1.0.5+ds1-3) unstable; urgency=medium
* Team upload.
=====================================
debian/patches/0009-Fix-setup.py-to-not-pick-up-tests-as-a-module.patch
=====================================
@@ -0,0 +1,21 @@
+From: Stuart Prescott <stuart at debian.org>
+Date: Tue, 10 Nov 2026 17:28:21 +1100
+Subject: Fix setup.py to not pick up tests as a module
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 2a8d132..e083730 100644
+--- a/setup.py
++++ b/setup.py
+@@ -50,7 +50,7 @@ setup(
+ maintainer=__maintainer__,
+ maintainer_email=__email__,
+ url='http://github.com/biocore/emperor',
+- packages=find_packages(),
++ packages=find_packages(include=["emperor*"]),
+ package_data={
+ 'emperor': ['support_files/vendor/js/three.js-plugins/*.js',
+ 'support_files/vendor/js/*.js',
=====================================
debian/patches/series
=====================================
@@ -6,3 +6,4 @@ replace_deprecated_assertRaisesRegexp.patch
sphinx9.patch
importlib-metadata-fallback.patch
notebook7_compatibility.patch
+0009-Fix-setup.py-to-not-pick-up-tests-as-a-module.patch
=====================================
debian/rules
=====================================
@@ -1,13 +1,8 @@
#!/usr/bin/make -f
-# At the time of this upload numpy is not yet build for python3.15 so the test will fail ... thus ignoring
-export PYBUILD_DISABLE=test/python3.15
-
export DH_VERBOSE = 1
export PYBUILD_NAME=emperor
-export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/tests'
-export PYBUILD_BEFORE_TEST=cp -rv {dir}/tests/test_data {build_dir}/tests
%:
dh $@ --buildsystem=pybuild
=====================================
debian/tests/run-unit-test
=====================================
@@ -20,10 +20,6 @@ echo "Running Tests"
for py in $(py3versions -s 2> /dev/null)
do
- # Skip Python 3.15 since NumPy extensions are missing
- if [ "$py" = "python3.15" ]; then
- continue
- fi
echo "Testing with $py in $(pwd):"
$py -m pytest
View it on GitLab: https://salsa.debian.org/med-team/emperor/-/compare/f6a755ec9d4b77d6de4acba9f4b2488d2d10d56a...d13859488a2dda78fd3f1f9517faaa9657b9f42c
--
View it on GitLab: https://salsa.debian.org/med-team/emperor/-/compare/f6a755ec9d4b77d6de4acba9f4b2488d2d10d56a...d13859488a2dda78fd3f1f9517faaa9657b9f42c
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/2c0eba9e/attachment-0001.htm>
More information about the debian-med-commit
mailing list