From dd790cf5779d51e657966b914987be3afa846eaf Mon Sep 17 00:00:00 2001 From: sapetnioc Date: Thu, 6 Jun 2024 16:15:12 +0200 Subject: [PATCH] #7 Make a package for soma-forge --- {soma-forge => recipes/soma-forge}/README.md | 0 .../soma-forge}/bin/soma-forge | 0 recipes/soma-forge/pyproject.toml | 30 ++++++++++++++ recipes/soma-forge/recipe.yaml | 40 +++++++++++++++++++ .../soma-forge/src}/activate.sh | 0 .../soma-forge/src}/recipes/anatomist.yaml | 0 .../src}/recipes/bioprocessing.yaml | 0 .../soma-forge/src}/recipes/brainrat.yaml | 0 .../soma-forge/src}/recipes/brainvisa.yaml | 0 .../soma-forge/src}/recipes/capsul.yaml | 0 .../src}/recipes/cati-deidentification.yaml | 0 .../src}/recipes/cati-longitudinal.yaml | 0 .../soma-forge/src}/recipes/cati-rsfmri.yaml | 0 .../soma-forge/src}/recipes/cati-sacha.yaml | 0 .../soma-forge/src}/recipes/cati-whasa.yaml | 0 .../soma-forge/src}/recipes/cati.yaml | 0 .../soma-forge/src}/recipes/catidb.yaml | 0 .../src}/recipes/constellation.yaml | 0 .../src}/recipes/cortical-surface.yaml | 0 .../soma-forge/src}/recipes/disco.yaml | 0 .../src}/recipes/highres-cortex.yaml | 0 .../src}/recipes/morphologist-baby.yaml | 0 .../soma-forge/src}/recipes/morphologist.yaml | 0 .../src}/recipes/nuclear-imaging.yaml | 0 .../soma-forge/src}/recipes/populse-db.yaml | 0 .../src}/recipes/primatologist.yaml | 0 .../soma-forge/src}/recipes/qualicati.yaml | 0 .../src}/recipes/soma-freesurfer.yaml | 0 .../soma-forge/src}/recipes/soma-python.yaml | 0 .../soma-forge/src}/recipes/soma-spm.yaml | 0 .../soma-forge/src}/recipes/soma.yaml | 0 .../soma-forge/src}/soma_forge.py | 0 32 files changed, 70 insertions(+) rename {soma-forge => recipes/soma-forge}/README.md (100%) rename {soma-forge => recipes/soma-forge}/bin/soma-forge (100%) create mode 100644 recipes/soma-forge/pyproject.toml create mode 100644 recipes/soma-forge/recipe.yaml rename {soma-forge => recipes/soma-forge/src}/activate.sh (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/anatomist.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/bioprocessing.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/brainrat.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/brainvisa.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/capsul.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/cati-deidentification.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/cati-longitudinal.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/cati-rsfmri.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/cati-sacha.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/cati-whasa.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/cati.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/catidb.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/constellation.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/cortical-surface.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/disco.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/highres-cortex.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/morphologist-baby.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/morphologist.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/nuclear-imaging.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/populse-db.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/primatologist.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/qualicati.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/soma-freesurfer.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/soma-python.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/soma-spm.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/recipes/soma.yaml (100%) rename {soma-forge => recipes/soma-forge/src}/soma_forge.py (100%) diff --git a/soma-forge/README.md b/recipes/soma-forge/README.md similarity index 100% rename from soma-forge/README.md rename to recipes/soma-forge/README.md diff --git a/soma-forge/bin/soma-forge b/recipes/soma-forge/bin/soma-forge similarity index 100% rename from soma-forge/bin/soma-forge rename to recipes/soma-forge/bin/soma-forge diff --git a/recipes/soma-forge/pyproject.toml b/recipes/soma-forge/pyproject.toml new file mode 100644 index 0000000..6a0bdd3 --- /dev/null +++ b/recipes/soma-forge/pyproject.toml @@ -0,0 +1,30 @@ +[project] +name = "soma-forge" +version = "0.0.1" +readme = "README.md" +requires-python = ">=3.9" +license = {text = "CeCILL-B"} +classifiers = [ + "Intended Audience :: Developers", + "License :: OSI Approved", + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Natural Language :: English", +] +dependencies = ["click", "rich", "toml", "pyaml", "gitpython"] + +[project.urls] +repository = "https://github.com/neurospin/neuro-forge" + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project.scripts] +soma-forge = "soma_forge:cli" diff --git a/recipes/soma-forge/recipe.yaml b/recipes/soma-forge/recipe.yaml new file mode 100644 index 0000000..5922c1b --- /dev/null +++ b/recipes/soma-forge/recipe.yaml @@ -0,0 +1,40 @@ +package: + name: soma-forge + version: "0.0.1" + +source: + path: . + +build: + noarch: python + + python: + entry_points: + - soma-forge = soma_forge:cli + + script: python -m pip install --no-deps --ignore-installed . + +requirements: + host: + - python >=3.10 + - pip + run: + - python >=3.10 + - click + - rich + - toml + - pyaml + - gitpython + + +tests: + - python: + imports: + - soma_forge + + + +about: + homepage: https://github.com/neurospin/neuro-forge + license: BSD-3-Clause + summary: Tool to create development environment and Conda packages for BrainVISA platform. diff --git a/soma-forge/activate.sh b/recipes/soma-forge/src/activate.sh similarity index 100% rename from soma-forge/activate.sh rename to recipes/soma-forge/src/activate.sh diff --git a/soma-forge/recipes/anatomist.yaml b/recipes/soma-forge/src/recipes/anatomist.yaml similarity index 100% rename from soma-forge/recipes/anatomist.yaml rename to recipes/soma-forge/src/recipes/anatomist.yaml diff --git a/soma-forge/recipes/bioprocessing.yaml b/recipes/soma-forge/src/recipes/bioprocessing.yaml similarity index 100% rename from soma-forge/recipes/bioprocessing.yaml rename to recipes/soma-forge/src/recipes/bioprocessing.yaml diff --git a/soma-forge/recipes/brainrat.yaml b/recipes/soma-forge/src/recipes/brainrat.yaml similarity index 100% rename from soma-forge/recipes/brainrat.yaml rename to recipes/soma-forge/src/recipes/brainrat.yaml diff --git a/soma-forge/recipes/brainvisa.yaml b/recipes/soma-forge/src/recipes/brainvisa.yaml similarity index 100% rename from soma-forge/recipes/brainvisa.yaml rename to recipes/soma-forge/src/recipes/brainvisa.yaml diff --git a/soma-forge/recipes/capsul.yaml b/recipes/soma-forge/src/recipes/capsul.yaml similarity index 100% rename from soma-forge/recipes/capsul.yaml rename to recipes/soma-forge/src/recipes/capsul.yaml diff --git a/soma-forge/recipes/cati-deidentification.yaml b/recipes/soma-forge/src/recipes/cati-deidentification.yaml similarity index 100% rename from soma-forge/recipes/cati-deidentification.yaml rename to recipes/soma-forge/src/recipes/cati-deidentification.yaml diff --git a/soma-forge/recipes/cati-longitudinal.yaml b/recipes/soma-forge/src/recipes/cati-longitudinal.yaml similarity index 100% rename from soma-forge/recipes/cati-longitudinal.yaml rename to recipes/soma-forge/src/recipes/cati-longitudinal.yaml diff --git a/soma-forge/recipes/cati-rsfmri.yaml b/recipes/soma-forge/src/recipes/cati-rsfmri.yaml similarity index 100% rename from soma-forge/recipes/cati-rsfmri.yaml rename to recipes/soma-forge/src/recipes/cati-rsfmri.yaml diff --git a/soma-forge/recipes/cati-sacha.yaml b/recipes/soma-forge/src/recipes/cati-sacha.yaml similarity index 100% rename from soma-forge/recipes/cati-sacha.yaml rename to recipes/soma-forge/src/recipes/cati-sacha.yaml diff --git a/soma-forge/recipes/cati-whasa.yaml b/recipes/soma-forge/src/recipes/cati-whasa.yaml similarity index 100% rename from soma-forge/recipes/cati-whasa.yaml rename to recipes/soma-forge/src/recipes/cati-whasa.yaml diff --git a/soma-forge/recipes/cati.yaml b/recipes/soma-forge/src/recipes/cati.yaml similarity index 100% rename from soma-forge/recipes/cati.yaml rename to recipes/soma-forge/src/recipes/cati.yaml diff --git a/soma-forge/recipes/catidb.yaml b/recipes/soma-forge/src/recipes/catidb.yaml similarity index 100% rename from soma-forge/recipes/catidb.yaml rename to recipes/soma-forge/src/recipes/catidb.yaml diff --git a/soma-forge/recipes/constellation.yaml b/recipes/soma-forge/src/recipes/constellation.yaml similarity index 100% rename from soma-forge/recipes/constellation.yaml rename to recipes/soma-forge/src/recipes/constellation.yaml diff --git a/soma-forge/recipes/cortical-surface.yaml b/recipes/soma-forge/src/recipes/cortical-surface.yaml similarity index 100% rename from soma-forge/recipes/cortical-surface.yaml rename to recipes/soma-forge/src/recipes/cortical-surface.yaml diff --git a/soma-forge/recipes/disco.yaml b/recipes/soma-forge/src/recipes/disco.yaml similarity index 100% rename from soma-forge/recipes/disco.yaml rename to recipes/soma-forge/src/recipes/disco.yaml diff --git a/soma-forge/recipes/highres-cortex.yaml b/recipes/soma-forge/src/recipes/highres-cortex.yaml similarity index 100% rename from soma-forge/recipes/highres-cortex.yaml rename to recipes/soma-forge/src/recipes/highres-cortex.yaml diff --git a/soma-forge/recipes/morphologist-baby.yaml b/recipes/soma-forge/src/recipes/morphologist-baby.yaml similarity index 100% rename from soma-forge/recipes/morphologist-baby.yaml rename to recipes/soma-forge/src/recipes/morphologist-baby.yaml diff --git a/soma-forge/recipes/morphologist.yaml b/recipes/soma-forge/src/recipes/morphologist.yaml similarity index 100% rename from soma-forge/recipes/morphologist.yaml rename to recipes/soma-forge/src/recipes/morphologist.yaml diff --git a/soma-forge/recipes/nuclear-imaging.yaml b/recipes/soma-forge/src/recipes/nuclear-imaging.yaml similarity index 100% rename from soma-forge/recipes/nuclear-imaging.yaml rename to recipes/soma-forge/src/recipes/nuclear-imaging.yaml diff --git a/soma-forge/recipes/populse-db.yaml b/recipes/soma-forge/src/recipes/populse-db.yaml similarity index 100% rename from soma-forge/recipes/populse-db.yaml rename to recipes/soma-forge/src/recipes/populse-db.yaml diff --git a/soma-forge/recipes/primatologist.yaml b/recipes/soma-forge/src/recipes/primatologist.yaml similarity index 100% rename from soma-forge/recipes/primatologist.yaml rename to recipes/soma-forge/src/recipes/primatologist.yaml diff --git a/soma-forge/recipes/qualicati.yaml b/recipes/soma-forge/src/recipes/qualicati.yaml similarity index 100% rename from soma-forge/recipes/qualicati.yaml rename to recipes/soma-forge/src/recipes/qualicati.yaml diff --git a/soma-forge/recipes/soma-freesurfer.yaml b/recipes/soma-forge/src/recipes/soma-freesurfer.yaml similarity index 100% rename from soma-forge/recipes/soma-freesurfer.yaml rename to recipes/soma-forge/src/recipes/soma-freesurfer.yaml diff --git a/soma-forge/recipes/soma-python.yaml b/recipes/soma-forge/src/recipes/soma-python.yaml similarity index 100% rename from soma-forge/recipes/soma-python.yaml rename to recipes/soma-forge/src/recipes/soma-python.yaml diff --git a/soma-forge/recipes/soma-spm.yaml b/recipes/soma-forge/src/recipes/soma-spm.yaml similarity index 100% rename from soma-forge/recipes/soma-spm.yaml rename to recipes/soma-forge/src/recipes/soma-spm.yaml diff --git a/soma-forge/recipes/soma.yaml b/recipes/soma-forge/src/recipes/soma.yaml similarity index 100% rename from soma-forge/recipes/soma.yaml rename to recipes/soma-forge/src/recipes/soma.yaml diff --git a/soma-forge/soma_forge.py b/recipes/soma-forge/src/soma_forge.py similarity index 100% rename from soma-forge/soma_forge.py rename to recipes/soma-forge/src/soma_forge.py