Skip to content

Commit

Permalink
Move YAML templates dir into httomo/ subdir
Browse files Browse the repository at this point in the history
Fixes #335
  • Loading branch information
yousefmoazzam committed May 22, 2024
1 parent 7efb32b commit 4429711
Show file tree
Hide file tree
Showing 94 changed files with 9 additions and 27 deletions.
2 changes: 1 addition & 1 deletion httomo/yaml_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def _get_template_yaml(conf: PipelineConfig, packages: List) -> List:
Helper function that fetches template YAML file names associated with methods
passed.
"""
parent_dir = Path(__file__).parent.parent
parent_dir = Path(__file__).parent
templates_dir = os.path.join(parent_dir, "yaml_templates")
assert os.path.exists(
templates_dir
Expand Down
File renamed without changes.
34 changes: 8 additions & 26 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,14 @@ where = ["."]
include = ["httomo*"]

[tool.setuptools.package-data]
httomo = ["methods_database/packages/*.yaml",
"methods_database/packages/external/*.yaml",
"methods_database/packages/external/httomolibgpu/*.yaml",
"methods_database/packages/external/httomolib/*.yaml",
"methods_database/packages/external/tomopy/*.yaml",
"../yaml_templates/httomolib/*/httomolib.misc.corr/*.yaml",
"../yaml_templates/httomolib/*/httomolib.misc.images/*.yaml",
"../yaml_templates/httomolib/*/httomolib.misc.segm/*.yaml",
"../yaml_templates/httomolib/*/httomolib.prep.phase/*.yaml",
"../yaml_templates/httomolibgpu/*/httomolibgpu.misc.corr/*.yaml",
"../yaml_templates/httomolibgpu/*/httomolibgpu.misc.morph/*.yaml",
"../yaml_templates/httomolibgpu/*/httomolibgpu.prep.alignment/*.yaml",
"../yaml_templates/httomolibgpu/*/httomolibgpu.prep.normalize/*.yaml",
"../yaml_templates/httomolibgpu/*/httomolibgpu.prep.phase/*.yaml",
"../yaml_templates/httomolibgpu/*/httomolibgpu.prep.stripe/*.yaml",
"../yaml_templates/httomolibgpu/*/httomolibgpu.recon.algorithm/*.yaml",
"../yaml_templates/httomolibgpu/*/httomolibgpu.recon.rotation/*.yaml",
"../yaml_templates/tomopy/*/tomopy.misc.corr/*.yaml",
"../yaml_templates/tomopy/*/tomopy.misc.morph/*.yaml",
"../yaml_templates/tomopy/*/tomopy.prep.alignment/*.yaml",
"../yaml_templates/tomopy/*/tomopy.prep.normalize/*.yaml",
"../yaml_templates/tomopy/*/tomopy.prep.phase/*.yaml",
"../yaml_templates/tomopy/*/tomopy.prep.stripe/*.yaml",
"../yaml_templates/tomopy/*/tomopy.recon.algorithm/*.yaml",
"../yaml_templates/tomopy/*/tomopy.recon.rotation/*.yaml",
"../yaml_templates/tomopy/*/tomopy.sim.project/*.yaml"]
httomo = [
"methods_database/packages/*.yaml",
"methods_database/packages/external/*.yaml",
"methods_database/packages/external/httomolibgpu/*.yaml",
"methods_database/packages/external/httomolib/*.yaml",
"methods_database/packages/external/tomopy/*.yaml",
"yaml_templates/*/*/*.yaml",
]

[tool.setuptools-git-versioning]
enabled = true
Expand Down

0 comments on commit 4429711

Please sign in to comment.