From 44d361ddfd72e5a3a9ac66197470ebfd79700fd6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Eric=20M=C3=BCller?= <mueller@kip.uni-heidelberg.de>
Date: Fri, 8 Sep 2023 09:25:56 +0200
Subject: [PATCH] fix(wf-brainscales2-demos): set type of deps

The deps shouldn't default to ("build", "link") as this is a workflow package
that shall provide a) a "realistic" test environment and b) a bundled set of
dependencies for typical use cases (at runtime).
---
 packages/wf-brainscales2-demos/package.py | 30 ++++++++++++-----------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/packages/wf-brainscales2-demos/package.py b/packages/wf-brainscales2-demos/package.py
index 473c75e6..74a3fcf7 100644
--- a/packages/wf-brainscales2-demos/package.py
+++ b/packages/wf-brainscales2-demos/package.py
@@ -19,20 +19,20 @@ class WfBrainscales2Demos(Package):
 
     depends_on('hxtorch', type=("run", "test"))
     depends_on('pynn-brainscales', type=("run", "test"))
-    depends_on('py-matplotlib@3.5.1:')
-    depends_on('py-ipywidgets@7.7.0:')
-    depends_on('py-ipycanvas@0.10.2:')
-    depends_on('py-numpy@1.21.6:')
-    depends_on('py-ipython@8.0.1:')
-    depends_on('py-quantities@0.13.0:')
-    depends_on('py-torch@1.11.0:')
-    depends_on('py-torchvision@0.12.0:')
-    depends_on('py-tqdm@4.62.3:')
-    depends_on('py-requests@2.26.0:')
-    depends_on('py-neo@0.11.1:')
-    depends_on('py-scipy@1.8.1:')
-    depends_on('py-deap@1.3:')
-    depends_on('py-pandas@1.4.2:')
+    depends_on('py-matplotlib@3.5.1:', type=("run", "test"))
+    depends_on('py-ipywidgets@7.7.0:', type=("run", "test"))
+    depends_on('py-ipycanvas@0.10.2:', type=("run", "test"))
+    depends_on('py-numpy@1.21.6:', type=("run", "test"))
+    depends_on('py-ipython@8.0.1:', type=("run", "test"))
+    depends_on('py-quantities@0.13.0:', type=("run", "test"))
+    depends_on('py-torch@1.11.0:', type=("run", "test"))
+    depends_on('py-torchvision@0.12.0:', type=("run", "test"))
+    depends_on('py-tqdm@4.62.3:', type=("run", "test"))
+    depends_on('py-requests@2.26.0:', type=("run", "test"))
+    depends_on('py-neo@0.11.1:', type=("run", "test"))
+    depends_on('py-scipy@1.8.1:', type=("run", "test"))
+    depends_on('py-deap@1.3:', type=("run", "test"))
+    depends_on('py-pandas@1.4.2:', type=("run", "test"))
 
     def install(self, spec, prefix):
         # sanity_check_prefix requires something in the install directory
@@ -41,6 +41,8 @@ class WfBrainscales2Demos(Package):
     @run_after("install")
     @on_package_attributes(run_tests=True)
     def installcheck(self):
+        cmd_env = which("env")
+        cmd_env()
         # execute notebook and save
         jupyter = Executable("jupyter")
         jupyter("nbconvert",
-- 
GitLab