From 27775163cad58a730260bcce8053bcb216231ffd Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Skutnik Date: Fri, 27 Jan 2023 12:02:39 -0600 Subject: Added e4s-cl package (#35117) * Added e4s-cl package * Version order change * Added e4s-cl dependencies * Added python-sotools dependency * [@spackbot] updating style on behalf of spoutn1k * Add missing versions to py- packages * Fix style * [@spackbot] updating style on behalf of spoutn1k * Update var/spack/repos/builtin/packages/e4s-cl/package.py Co-authored-by: Adam J. Stewart * Update var/spack/repos/builtin/packages/e4s-cl/package.py Co-authored-by: Adam J. Stewart * Update var/spack/repos/builtin/packages/py-python-sotools/package.py Co-authored-by: Adam J. Stewart * Add docker removing patch for e4s-cl Co-authored-by: spoutn1k Co-authored-by: Adam J. Stewart --- .../builtin/packages/e4s-cl/drop-docker.patch | 9 ++++++ var/spack/repos/builtin/packages/e4s-cl/package.py | 36 ++++++++++++++++++++++ .../builtin/packages/py-pyelftools/package.py | 6 ++++ .../builtin/packages/py-python-ptrace/package.py | 17 ++++++++++ .../builtin/packages/py-python-sotools/package.py | 17 ++++++++++ .../repos/builtin/packages/py-texttable/package.py | 6 ++++ .../repos/builtin/packages/py-tinydb/package.py | 5 ++- 7 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 var/spack/repos/builtin/packages/e4s-cl/drop-docker.patch create mode 100644 var/spack/repos/builtin/packages/e4s-cl/package.py create mode 100644 var/spack/repos/builtin/packages/py-python-ptrace/package.py create mode 100644 var/spack/repos/builtin/packages/py-python-sotools/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/e4s-cl/drop-docker.patch b/var/spack/repos/builtin/packages/e4s-cl/drop-docker.patch new file mode 100644 index 0000000000..e7e7a714d8 --- /dev/null +++ b/var/spack/repos/builtin/packages/e4s-cl/drop-docker.patch @@ -0,0 +1,9 @@ +diff --git a/requirements/core.txt b/requirements/core.txt +index 0c0d3de..17c10f4 100644 +--- a/requirements/core.txt ++++ b/requirements/core.txt +@@ -6,4 +6,3 @@ pyelftools==0.27 + requests>=2.26.0 + tinydb==4.5.2 + python-sotools==0.1.0 +-docker==5.0.3 diff --git a/var/spack/repos/builtin/packages/e4s-cl/package.py b/var/spack/repos/builtin/packages/e4s-cl/package.py new file mode 100644 index 0000000000..a1bc5aef64 --- /dev/null +++ b/var/spack/repos/builtin/packages/e4s-cl/package.py @@ -0,0 +1,36 @@ +# 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 E4sCl(PythonPackage): + """Container Launcher for E4S containers, facilitating MPI library + translations""" + + maintainers = ["spoutn1k", "FrederickDeny"] + homepage = "https://e4s-cl.readthedocs.io" + url = "https://oaciss.uoregon.edu/e4s/e4s-cl/releases" + git = "https://github.com/E4S-Project/e4s-cl" + + tags = ["e4s"] + + patch("drop-docker.patch", when="@:1.0.1") + + version("master", branch="master") + version("1.0.1", commit="b2c92993e0c7cb42de07f0f7cc02da3a06816192") + version("1.0.0", commit="410bb2e6601d9b90243a487ad7f7d2dabd8ba04c") + + depends_on("python@3.7:", type=("build", "run")) + depends_on("py-setuptools", type="build") + + depends_on("py-termcolor@1.1.0:", type=("build", "run")) + depends_on("py-pyyaml@6.0:", type=("build", "run")) + depends_on("py-texttable@1.6.2:", type=("build", "run")) + depends_on("py-python-ptrace@0.9.7:", type=("build", "run")) + depends_on("py-pyelftools@0.27", type=("build", "run")) + depends_on("py-requests@2.26.0:", type=("build", "run")) + depends_on("py-tinydb@4.5.2", type=("build", "run")) + depends_on("py-python-sotools@0.1.0", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-pyelftools/package.py b/var/spack/repos/builtin/packages/py-pyelftools/package.py index 880757a5b0..6e8a02581a 100644 --- a/var/spack/repos/builtin/packages/py-pyelftools/package.py +++ b/var/spack/repos/builtin/packages/py-pyelftools/package.py @@ -10,9 +10,15 @@ class PyPyelftools(PythonPackage): """A pure-Python library for parsing and analyzing ELF files and DWARF debugging information""" + homepage = "https://github.com/eliben/pyelftools" pypi = "pyelftools/pyelftools-0.26.tar.gz" + version("0.29", sha256="ec761596aafa16e282a31de188737e5485552469ac63b60cfcccf22263fd24ff") + version("0.28", sha256="53e5609cac016471d40bd88dc410cd90755942c25e58a61021cfdf7abdfeacff") + version("0.27", sha256="cde854e662774c5457d688ca41615f6594187ba7067af101232df889a6b7a66b") version("0.26", sha256="86ac6cee19f6c945e8dedf78c6ee74f1112bd14da5a658d8c9d4103aed5756a2") + version("0.25", sha256="89c6da6f56280c37a5ff33468591ba9a124e17d71fe42de971818cbff46c1b24") + version("0.24", sha256="e9dd97d685a5b96b88a988dabadb88e5a539b64cd7d7927fac9a7368dc4c459c") version("0.23", sha256="fc57aadd096e8f9b9b03f1a9578f673ee645e1513a5ff0192ef439e77eab21de") depends_on("py-setuptools", type="build") diff --git a/var/spack/repos/builtin/packages/py-python-ptrace/package.py b/var/spack/repos/builtin/packages/py-python-ptrace/package.py new file mode 100644 index 0000000000..5f7311fce6 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-python-ptrace/package.py @@ -0,0 +1,17 @@ +# Copyright 2013-2023 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 PyPythonPtrace(PythonPackage): + """python-ptrace is a debugger using ptrace (Linux, BSD and Darwin system + call to trace processes) written in Python.""" + + pypi = "python-ptrace/python-ptrace-0.9.8.tar.gz" + + version("0.9.8", sha256="1e3bc6223f626aaacde8a7979732691c11b13012e702fee9ae16c87f71633eaa") + + depends_on("py-setuptools", type="build") diff --git a/var/spack/repos/builtin/packages/py-python-sotools/package.py b/var/spack/repos/builtin/packages/py-python-sotools/package.py new file mode 100644 index 0000000000..3dac633aff --- /dev/null +++ b/var/spack/repos/builtin/packages/py-python-sotools/package.py @@ -0,0 +1,17 @@ +# Copyright 2013-2023 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 PyPythonSotools(PythonPackage): + """python-sotools is a collection of tools to work with ELF shared objects""" + + pypi = "python-sotools/python-sotools-0.1.0.tar.gz" + + version("0.1.0", sha256="39a088f2ca384294e19a96a82d883feb729f0f2e5ae21d9785be357124ec61f2") + + depends_on("py-setuptools", type="build") + depends_on("py-pyelftools", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-texttable/package.py b/var/spack/repos/builtin/packages/py-texttable/package.py index 0e6f32c148..ae3a7fe540 100644 --- a/var/spack/repos/builtin/packages/py-texttable/package.py +++ b/var/spack/repos/builtin/packages/py-texttable/package.py @@ -13,6 +13,12 @@ class PyTexttable(PythonPackage): homepage = "https://github.com/foutaise/texttable/" pypi = "texttable/texttable-1.6.1.tar.gz" + version("1.6.7", sha256="290348fb67f7746931bcdfd55ac7584ecd4e5b0846ab164333f0794b121760f2") + version("1.6.6", sha256="e106b1204b788663283784fd6e5dfc23f1574b84e518e5d286c1a1e66dabd42c") + version("1.6.5", sha256="fc3f763a89796ae03789a02343bd4e8fed9735935123b1bfb9537a5935852315") + version("1.6.4", sha256="42ee7b9e15f7b225747c3fa08f43c5d6c83bc899f80ff9bae9319334824076e9") + version("1.6.3", sha256="ce0faf21aa77d806bbff22b107cc22cce68dc9438f97a2df32c93e9afa4ce436") + version("1.6.2", sha256="eff3703781fbc7750125f50e10f001195174f13825a92a45e9403037d539b4f4") version("1.6.1", sha256="2b60a5304ccfbeac80ffae7350d7c2f5d7a24e9aab5036d0f82489746419d9b2") depends_on("py-setuptools", type="build") diff --git a/var/spack/repos/builtin/packages/py-tinydb/package.py b/var/spack/repos/builtin/packages/py-tinydb/package.py index e5f9bc9128..b9239e33a8 100644 --- a/var/spack/repos/builtin/packages/py-tinydb/package.py +++ b/var/spack/repos/builtin/packages/py-tinydb/package.py @@ -3,7 +3,6 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) - from spack.package import * @@ -13,7 +12,11 @@ class PyTinydb(PythonPackage): homepage = "https://tinydb.readthedocs.io" pypi = "tinydb/tinydb-4.7.0.tar.gz" + version("4.7.1", sha256="8955c239a79b8a6c8f637900152e2de38690848199d71d870c33c16405433ca5") version("4.7.0", sha256="357eb7383dee6915f17b00596ec6dd2a890f3117bf52be28a4c516aeee581100") + version("4.6.1", sha256="0d5400f5e5ae368a84d57cb234456f1cf70430fd39bcd77ccd568fea91ff2a4e") + version("4.6.0", sha256="f25b0debbec555226c43d67e2a80bdf273ccfde4aa6b1b8d2049b7c648312b40") + version("4.5.2", sha256="7d18b2d0217827c188f177cd23df60e5cd5316a717e836a8e21c8c2488262cf5") depends_on("python@3.6:3", type=("build", "run")) depends_on("py-poetry-core", type="build") -- cgit v1.2.3-70-g09d2