[med-svn] [Git][med-team/python-pbcore][master] 3 commits: Enable nocheck build profile job in Salsa CI.

Santiago Vila (@sanvila) gitlab at salsa.debian.org
Tue Sep 30 02:04:14 BST 2025



Santiago Vila pushed to branch master at Debian Med / python-pbcore


Commits:
f4bd70f7 by Santiago Vila at 2025-09-30T02:20:00+02:00
Enable nocheck build profile job in Salsa CI.

- - - - -
6d52364f by Santiago Vila at 2025-09-30T02:25:00+02:00
d/rules: Refactor the way tests are ignored and excluded from the package. Closes: #1103324.

Note that in debhelper compat >= 13, dh_auto_test is automatically
skipped when DEB_BUILD_OPTIONS contains "nocheck".

- - - - -
03865f3b by Santiago Vila at 2025-09-30T02:30:00+02:00
Upload for unstable as 2.1.2+dfsg-13

- - - - -


3 changed files:

- debian/changelog
- debian/rules
- debian/salsa-ci.yml


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+python-pbcore (2.1.2+dfsg-13) unstable; urgency=medium
+
+  * Team upload.
+  * Enable nocheck build profile job in Salsa CI.
+  * d/rules: Refactor the way tests are ignored and excluded from the package.
+    Fixes FTBFS issue when using the nocheck build profile. Closes: #1103324.
+
+ -- Santiago Vila <sanvila at debian.org>  Tue, 30 Sep 2025 02:30:00 +0200
+
 python-pbcore (2.1.2+dfsg-12) unstable; urgency=medium
 
   * Team Upload


=====================================
debian/rules
=====================================
@@ -4,6 +4,11 @@ DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/default.mk
 
 export PYBUILD_NAME = pbcore
+export PYBUILD_TEST_ARGS = --ignore=test_pbdataset.py \
+                           --ignore=test_pbdataset_filters.py \
+                           --ignore=test_pbdataset_metadata.py \
+                           --ignore=test_pbdataset_subtypes.py
+
 export PYBUILD_AFTER_INSTALL = \
   chmod -x {destdir}/{install_dir}/pbcore/data/datasets/*.xml
 export PYBUILD_AFTER_TEST = rm -rfv {build_dir}/coverage.xml {build_dir}/nosetests.xml
@@ -16,10 +21,18 @@ export LC_ALL=C.UTF-8
 execute_after_dh_auto_build:
 	PYTHONPATH=$(shell pybuild --print build_dir --interpreter python3) $(MAKE) doc
 
-override_dh_install:
-	dh_install
+execute_before_dh_install:
+	mkdir -p _tmp/usr/share/doc/python3-$(PYBUILD_NAME)
+	cp -a tests _tmp/usr/share/doc/python3-$(PYBUILD_NAME)
+
+execute_after_dh_install:
 	mv $(DESTDIR)/usr/bin/.open $(DESTDIR)/usr/bin/pbopen
 	rmdir $(DOCDIR)/usr/share/doc/python3-pbcore/html/_images/
+	cd debian/python-pbcore-doc/usr/share/doc/python3-pbcore/tests && \
+	rm -f test_pbdataset.py \
+	      test_pbdataset_filters.py \
+	      test_pbdataset_metadata.py \
+	      test_pbdataset_subtypes.py
 
 execute_after_dh_python3:
 	find $(DESTDIR)/usr/lib/python3* -type d -name dist-packages -empty | xargs rm -rf
@@ -29,22 +42,6 @@ override_dh_installdocs:
 	dh_installdocs -X _source
 
 override_dh_auto_test: export PYTHONPATH=$(CURDIR)
-override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-	# we need to exclude tests requiring pbtestdata which is not packaged
-	mkdir -p /tmp/tests_avoid
-	mv `grep -l pbtestdata tests/*.py` /tmp/tests_avoid
-	# for whatever reason this test is failing as well - just skip it for the moment
-	mv tests/test_pbdataset_filters.py /tmp/tests_avoid
-	dh_auto_test
-	# copy working test data into doc dir as user examples
-	mkdir -p _tmp/usr/share/doc/python3-$(PYBUILD_NAME)
-	cp -a tests _tmp/usr/share/doc/python3-$(PYBUILD_NAME)
-	find _tmp -type d -name __pycache__ | xargs rm -rf
-	# move back ignored tests
-	mv /tmp/tests_avoid/* tests
-	rmdir /tmp/tests_avoid
-endif
 
 override_dh_installchangelogs:
 	dh_installchangelogs CHANGELOG.org


=====================================
debian/salsa-ci.yml
=====================================
@@ -5,3 +5,5 @@ include:
 
 variables:
   SALSA_CI_DISABLE_BUILD_PACKAGE_I386: "true"
+  SALSA_CI_ENABLE_BUILD_PACKAGE_PROFILES: 1
+  BUILD_PROFILES: nocheck



View it on GitLab: https://salsa.debian.org/med-team/python-pbcore/-/compare/3225245924c364d04c03aa5ec157e8b39ba2cdae...03865f3b742918f8f1ef49a417dbc5e1552c2327

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-pbcore/-/compare/3225245924c364d04c03aa5ec157e8b39ba2cdae...03865f3b742918f8f1ef49a417dbc5e1552c2327
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/20250930/6a6de02d/attachment-0001.htm>


More information about the debian-med-commit mailing list