From f116e6762a136df0681a60dc5f495721d4949a26 Mon Sep 17 00:00:00 2001 From: Andre Merzky Date: Thu, 22 Dec 2022 04:07:35 +0100 Subject: add py-psij-python and py-pystache packages (#34357) * add psij package and deps * update hashes, URLs * linting * Update var/spack/repos/builtin/packages/py-psij-python/package.py Co-authored-by: Adam J. Stewart * Update var/spack/repos/builtin/packages/py-pystache/package.py Co-authored-by: Adam J. Stewart * Update var/spack/repos/builtin/packages/py-pystache/package.py Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> * Update package.py apply suggested change * Update package.py apply suggested change * Update package.py ensure maintainer inheritance * add psij to exaworks meta-package Co-authored-by: Adam J. Stewart Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> --- .../repos/builtin/packages/exaworks/package.py | 2 ++ .../builtin/packages/py-psij-python/package.py | 27 ++++++++++++++++++++++ .../repos/builtin/packages/py-pystache/package.py | 20 ++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-psij-python/package.py create mode 100644 var/spack/repos/builtin/packages/py-pystache/package.py diff --git a/var/spack/repos/builtin/packages/exaworks/package.py b/var/spack/repos/builtin/packages/exaworks/package.py index d10f3f987e..2c2485f3ce 100644 --- a/var/spack/repos/builtin/packages/exaworks/package.py +++ b/var/spack/repos/builtin/packages/exaworks/package.py @@ -28,3 +28,5 @@ class Exaworks(BundlePackage): depends_on("py-radical-saga", type=("build", "run")) depends_on("py-radical-pilot", type=("build", "run")) depends_on("py-radical-entk", type=("build", "run")) + + depends_on("py-psij-python", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-psij-python/package.py b/var/spack/repos/builtin/packages/py-psij-python/package.py new file mode 100644 index 0000000000..7fc82ed24a --- /dev/null +++ b/var/spack/repos/builtin/packages/py-psij-python/package.py @@ -0,0 +1,27 @@ +# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class PyPsijPython(PythonPackage): + """PSI/J is an abstraction layer over cluster schedulers to write scheduler + agnostic HPC applications.""" + + homepage = "https://www.exaworks.org/" + git = "https://github.com/exaworks/psij-python.git" + pypi = "psij-python/psij-python-0.1.0.post2.tar.gz" + + maintainers = ["andre-merzky"] + + version( + "0.1.0.post2", sha256="78f4fb147248be479aa6128b583dff9052698c49f36c6e9811b4c3f9db326043" + ) + + depends_on("python@3.7:", type=("build", "run")) + depends_on("py-filelock", type=("build", "run")) + depends_on("py-psutil", type=("build", "run")) + depends_on("py-pystache", type=("build", "run")) + depends_on("py-setuptools", type="build") diff --git a/var/spack/repos/builtin/packages/py-pystache/package.py b/var/spack/repos/builtin/packages/py-pystache/package.py new file mode 100644 index 0000000000..ac790cdd57 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pystache/package.py @@ -0,0 +1,20 @@ +# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class PyPystache(PythonPackage): + """Pystache is a Python implementation of Mustache. Mustache is a + framework-agnostic, logic-free templating system inspired by ctemplate and + et.""" + + homepage = "https://github.com/sarnold/pystache" + git = "https://github.com/sarnold/pystache" + pypi = "pystache/pystache-0.6.0.tar.gz" + + version("0.6.0", sha256="93bf92b2149a4c4b58d12142e2c4c6dd5c08d89e4c95afccd4b6efe2ee1d470d") + + depends_on("py-setuptools@40.8:", type="build") -- cgit v1.2.3-60-g2f50