[med-svn] [Git][med-team/camitk][master] 2 commits: Disable python binding library test
Manik Bhattacharjee (@manik.bhattacharjee)
gitlab at salsa.debian.org
Tue Jan 6 18:26:22 GMT 2026
Manik Bhattacharjee pushed to branch master at Debian Med / camitk
Commits:
15723764 by Manik Bhattacharjee at 2026-01-06T17:29:18+01:00
Disable python binding library test
- - - - -
8b8b6ae5 by Manik Bhattacharjee at 2026-01-06T18:27:19+01:00
Disabling all python tests (as numpy is installed by all tests which requires internet)
- - - - -
5 changed files:
- debian/changelog
- debian/patches/0001-disable-graph-generation-in-api.patch
- + debian/patches/0002-disable-python-binding-library-test.patch
- debian/patches/series
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,6 +1,6 @@
camitk (6.0.0-1) unstable; urgency=medium
- * New upstream version 6.0.0
+ * New upstream version 6.0.0 (Closes: #1117520)
-- Manik Bhattacharjee <manik.bhattacharjee at univ-grenoble-alpes.fr> Sat, 20 Dec 2025 00:45:42 +0100
=====================================
debian/patches/0001-disable-graph-generation-in-api.patch
=====================================
@@ -1,31 +1,14 @@
-Description: <short summary of the patch>
- TODO: Put a short summary on the line above and replace this paragraph
- with a longer explanation of this change. Complete the meta-information
- with other relevant fields (see below for details). To make it easier, the
- information below has been extracted from the changelog. Adjust it or drop
- it.
- .
- camitk (6.0.0-1) UNRELEASED; urgency=medium
- .
- * New upstream version 6.0.0
+Description: Disable graph generation in apidoc
+ Generating graphs in apidoc takes a lot of resources.
+ It is not particularly needed as it is available
+ online and can be generated from the sources if
+ needed.
Author: Manik Bhattacharjee <manik.bhattacharjee at univ-grenoble-alpes.fr>
-
----
-The information above should follow the Patch Tagging Guidelines, please
-checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
-are templates for supplementary fields that you might want to add:
-
-Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
-Bug: <upstream-bugtracker-url>
-Bug-Debian: https://bugs.debian.org/<bugnumber>
-Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
-Forwarded: (no|not-needed|<patch-forwarded-url>)
-Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
-Reviewed-By: <name and email of someone who approved/reviewed the patch>
+Forwarded: not-needed
Last-Update: 2025-12-10
---- camitk-6.0.0.orig/sdk/doc/doxygen.conf.in
-+++ camitk-6.0.0/sdk/doc/doxygen.conf.in
+--- a/sdk/doc/doxygen.conf.in
++++ b/sdk/doc/doxygen.conf.in
@@ -2516,7 +2516,7 @@ DOT_FONTPATH =
# Possible values are: NO, YES, TEXT, GRAPH and BUILTIN.
# The default value is: YES.
=====================================
debian/patches/0002-disable-python-binding-library-test.patch
=====================================
@@ -0,0 +1,44 @@
+Description: Disable python binding library tests
+ Python binding library tests require a virtual environment which needs
+ internet connection to install python requirements which is forbidden
+ during package building on salsa.
+
+Forwarded: no
+Author: Manik Bhattacharjee <manik.bhattacharjee at univ-grenoble-alpes.fr>
+
+--- a/sdk/libraries/python/CMakeLists.txt
++++ b/sdk/libraries/python/CMakeLists.txt
+@@ -102,6 +102,8 @@ endif()
+ camitk_register_subproject(CORELIB ${PYCAMITK_TARGET_LIB_NAME})
+
+ # -- unit testing
+-camitk_add_subdirectory(testing)
++if(NOT PYTHON_BINDING_TEST_DISABLE)
++ camitk_add_subdirectory(testing)
++endif()
+
+-endif() # PYTHON_BINDING
+\ No newline at end of file
++endif() # PYTHON_BINDING
+--- a/sdk/applications/config/CMakeLists.txt
++++ b/sdk/applications/config/CMakeLists.txt
+@@ -36,7 +36,7 @@ camitk_add_test(EXECUTABLE_ARGS "-e badfile"
+ PASS_REGULAR_EXPRESSION "Error opening .camitk JSON file badfile"
+ PROJECT_NAME ${TEST_BASENAME} TEST_SUFFIX "-")
+
+-if(PYTHON_BINDING)
++if(PYTHON_BINDING AND NOT PYTHON_BINDING_TEST_DISABLE)
+ # Test missing python script.
+ # The following test must fails as the python scripts are not available in the directory
+ # Copy a known camitk extension file
+--- a/sdk/applications/extensiongenerator/CMakeLists.txt
++++ b/sdk/applications/extensiongenerator/CMakeLists.txt
+@@ -163,7 +163,7 @@ camitk_add_test(EXECUTABLE_ARGS "-f ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp -d ${CM
+ find_program(BASH_PROGRAM bash)
+ if(BASH_PROGRAM)
+ set(${APPLICATION_TARGET_NAME}_TEST_PYTHON "")
+- if(PYTHON_BINDING)
++ if(PYTHON_BINDING AND NOT PYTHON_BINDING_TEST_DISABLE)
+ set(${APPLICATION_TARGET_NAME}_TEST_PYTHON "-python")
+ endif()
+
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
0001-disable-graph-generation-in-api.patch
+0002-disable-python-binding-library-test.patch
=====================================
debian/rules
=====================================
@@ -27,7 +27,7 @@ PRIVATE_LIB_BUILD_DIR := $(LIB_BUILD_DIR)/camitk-$(VER_SHORT)
# List of python tests that require to install some PyPI packages, they should be not run during packaging
# (no execution of code outside the source package)
-EXCLUDED_PYTHON_TESTS := "'(test-pythonhotplug-image|test-pythonhotplug-mesh|test-pythonhotplug-state|test-pythonhotplug-qt|test-pythonhotplug-meshPoints|test-pythonhotplug-transformationManager)'"
+EXCLUDED_PYTHON_TESTS := "'(test-pythonhotplug-image|test-pythonhotplug-mesh|test-pythonhotplug-state|test-pythonhotplug-qt|test-pythonhotplug-meshPoints|test-pythonhotplug-transformationManager|test-pythonhotplug-userScriptValidity|test-pythonhotplug-actionPipeline|test-pythonscript-scriptVariable|test-pythonscript-numpyImageComponent|test-pythonscript-core|test-pythonscript-vtk)'"
# multi-arch support
include /usr/share/dpkg/architecture.mk
@@ -49,6 +49,7 @@ CMAKE_EXTRA_FLAGS = \
-DCEP_TUTORIALS:BOOL=TRUE \
\
-DPYTHON_BINDING:BOOL=TRUE \
+ -DPYTHON_BINDING_TEST_DISABLE:BOOL=TRUE \
\
-DAPIDOC_SDK:BOOL=TRUE
View it on GitLab: https://salsa.debian.org/med-team/camitk/-/compare/b4db2d03295b731d644375c75d3e20044b1e5edf...8b8b6ae5955e57d88f32f8bb742ed3f45b489683
--
View it on GitLab: https://salsa.debian.org/med-team/camitk/-/compare/b4db2d03295b731d644375c75d3e20044b1e5edf...8b8b6ae5955e57d88f32f8bb742ed3f45b489683
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/20260106/ca3dba77/attachment-0001.htm>
More information about the debian-med-commit
mailing list