Skip to content

Commit

Permalink
add py-cwl-registry and py-cwl-luigi (#1795)
Browse files Browse the repository at this point in the history
* add py-cwl-registry and py-cwl-luigi
* add bba_data_push on behalf of DKE
  • Loading branch information
mgeplf committed Jan 16, 2023
1 parent 142c64b commit c368fa4
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 0 deletions.
30 changes: 30 additions & 0 deletions bluebrain/repo-bluebrain/packages/py-bba-data-push/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class PyBbaDataPush(PythonPackage):
"""CLIs that take in input atlas pipeline datasets and push them into Nexus
"""
homepage = "https://bbpgitlab.epfl.ch/dke/apps/blue_brain_atlas_nexus_push"
git = "ssh:https://[email protected]/dke/apps/blue_brain_atlas_nexus_push.git"

version('1.0.3', tag='v1.0.3')

depends_on('py-setuptools', type=('build', 'run'))

depends_on('py-nexusforge', type=('build', 'run'))
depends_on('py-click', type=('build', 'run'))
depends_on('py-numpy', type=('build', 'run'))
depends_on('py-h5py', type=('build', 'run'))
depends_on('py-pynrrd', type=('build', 'run'))
depends_on('py-pyyaml', type=('build', 'run'))
depends_on('py-pyjwt', type=('build', 'run'))

depends_on('py-pytest', type=('test', 'build', 'run'))
depends_on('py-pytest-cov', type=('test', 'build', 'run'))

@run_after('install')
@on_package_attributes(run_tests=True)
def test_install(self):
python("-m", "pytest", "tests")
28 changes: 28 additions & 0 deletions bluebrain/repo-bluebrain/packages/py-cwl-luigi/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class PyCwlLuigi(PythonPackage):
"""Luigi wrapper for CWL workflows
"""
homepage = "https://bbpgitlab.epfl.ch/nse/cwl-luigi"
git = "ssh:https://[email protected]/nse/cwl-luigi.git"

version('develop', branch='main')
version('0.3.0', tag='cwl-luigi-v0.3.0')

depends_on('[email protected]:', type=('build', 'run'))

depends_on('py-setuptools', type=('build', 'run'))

depends_on("[email protected]:", type=('build', 'run'))
depends_on('[email protected]:', type=('build', 'run'))
depends_on('py-luigi', type=('build', 'run'))
depends_on('py-pyyaml', type=('build', 'run'))
depends_on('py-cwl-registry', type=('build', 'run'))

@run_after('install')
@on_package_attributes(run_tests=True)
def test_install(self):
python("-m", "pytest", "tests")
30 changes: 30 additions & 0 deletions bluebrain/repo-bluebrain/packages/py-cwl-registry/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class PyCwlRegistry(PythonPackage):
"""Workflows registered in CWL format
"""
homepage = "https://bbpgitlab.epfl.ch/nse/cwl-registry"
git = "ssh:https://[email protected]/nse/cwl-registry.git"

version('develop', branch='main')
version('0.3.0', tag='cwl-registry-v0.3.0')

depends_on('[email protected]:', type=('build', 'run'))

depends_on('py-setuptools', type=('build', 'run'))

depends_on("[email protected]:", type=('build', 'run'))
depends_on('py-voxcell', type=('build', 'run'))
depends_on('py-numpy', type=('build', 'run'))
depends_on('py-pandas', type=('build', 'run'))
depends_on('py-libsonata', type=('build', 'run'))
depends_on('py-nexusforge', type=('build', 'run'))
depends_on('py-bba-data-push', type=('build', 'run'))

@run_after('install')
@on_package_attributes(run_tests=True)
def test_install(self):
python("-m", "pytest", "tests")

0 comments on commit c368fa4

Please sign in to comment.