From 270b1fea8517c6a2f09733d5be45f14dc36b2da7 Mon Sep 17 00:00:00 2001 From: Will Graham <32364977+willGraham01@users.noreply.github.com> Date: Fri, 14 Jun 2024 14:57:12 +0100 Subject: [PATCH] Move `pymcubes` to an optional dependency. (#310) * Create atlasgen optional dependency package * Update pyproject.toml --- pyproject.toml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5cc4c90a..4bb956ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,21 +21,14 @@ requires-python = ">=3.10" dependencies = [ "brainglobe-space >= 1.0.0", "click", - "loguru", "meshio", "numpy", "pandas", "pyarrow", - "PyMCubes", "requests", "rich >= 9.0.0", - "SimpleITK", "tifffile", - "tqdm>=4.46.1", "treelib", - "vedo", - "xmltodict", - "scikit-image", ] dynamic = ["version"] @@ -59,9 +52,15 @@ dev = [ "setuptools_scm", "tox", ] - allenmouse = ["allensdk"] - +atlasgen = [ + "loguru", + "PyMCubes", + "SimpleITK", + "tqdm>=4.46.1", + "vedo", + "xmltodict", +] [project.scripts] brainglobe = "brainglobe_atlasapi.cli:bg_cli" @@ -88,7 +87,7 @@ filterwarnings = [ markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"] [tool.black] -target-version = ['py310','py311', 'py312'] +target-version = ['py310', 'py311', 'py312'] skip-string-normalization = false line-length = 79 @@ -116,5 +115,6 @@ python = [testenv] extras = dev + atlasgen commands = pytest -v --color=yes --cov=brainglobe_atlasapi --cov-report=xml """