Skip to content
Snippets Groups Projects

Add py-jupyter-server-proxy to spack.yaml

Compare and
2 files
+ 7
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -46,11 +46,15 @@ class PySnudda(PythonPackage):
@@ -46,11 +46,15 @@ class PySnudda(PythonPackage):
depends_on("open3d+python@0.18:", type=("build","run"), when="@2:")
depends_on("open3d+python@0.18:", type=("build","run"), when="@2:")
depends_on("py-quantities@0.16.2:", type=("build","run"), when="@2.1.14:")
depends_on("py-quantities@0.16.2:", type=("build","run"), when="@2.1.14:")
# snudda tarballs in pypi do not include the tests/ dir: just use default spack tests for now
# @run_after('install')
# @run_after('install')
# @on_package_attributes(run_tests=True)
# @on_package_attributes(run_tests=True)
# def install_test(self):
# def install_test(self):
# python('-m', 'unittest', 'discover', '-v', '-s' './tests')
# with working_dir("tests"):
 
# from pathlib import Path
 
# excluded_tests = ['test_sonata.py', 'test_snudda_path.py', 'test_frequency']
 
# test_files = [str(p) for p in Path(".").rglob('test_*.py') if p.name not in excluded_tests]
 
# if test_files:
 
# python('-m', 'unittest', '-v', *test_files)
# blender is for now an optional dependency: leave out of import_modules to avoid errors in tests
# blender is for now an optional dependency: leave out of import_modules to avoid errors in tests
skip_modules = ['snudda.plotting.Blender', 'snudda.plotting.Blender.io_mesh_swc', 'snudda.plotting.Blender.visualisation']
skip_modules = ['snudda.plotting.Blender', 'snudda.plotting.Blender.io_mesh_swc', 'snudda.plotting.Blender.visualisation']