summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Leute <36964815+alex391@users.noreply.github.com>2024-01-29 09:14:03 -0500
committerGitHub <noreply@github.com>2024-01-29 08:14:03 -0600
commitd6ff81ab4d22aa333c6bf1ac0fab18b4ada6abc8 (patch)
tree3a3a3c3d80371df71456da442d4ec9b6003d5026
parent6dfc2e7075b537d922af53175e6b58897365418b (diff)
downloadspack-d6ff81ab4d22aa333c6bf1ac0fab18b4ada6abc8.tar.gz
spack-d6ff81ab4d22aa333c6bf1ac0fab18b4ada6abc8.tar.bz2
spack-d6ff81ab4d22aa333c6bf1ac0fab18b4ada6abc8.tar.xz
spack-d6ff81ab4d22aa333c6bf1ac0fab18b4ada6abc8.zip
py-metrics: Adding package py-metrics (#42220)
* New package: py-metrics * [py-metrics] cleaned up extra comment * Updated copyright and ran black * py-pathspec: Added version 0.5.5 --------- Co-authored-by: vehrc <vehrc@rit.edu> Co-authored-by: Jen Herting <jen@herting.cc> Co-authored-by: Alex C Leute <aclrc@rit.edu>
-rw-r--r--var/spack/repos/builtin/packages/py-metrics/package.py20
-rw-r--r--var/spack/repos/builtin/packages/py-pathspec/package.py1
2 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-metrics/package.py b/var/spack/repos/builtin/packages/py-metrics/package.py
new file mode 100644
index 0000000000..71ae1d32f4
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-metrics/package.py
@@ -0,0 +1,20 @@
+# Copyright 2013-2024 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 PyMetrics(PythonPackage):
+ """metrics for Python, C, C++, Go and Javascript code"""
+
+ homepage = "https://github.com/finklabs/metrics/"
+ pypi = "metrics/metrics-0.3.3.tar.gz"
+
+ version("0.3.3", sha256="60a2bceea8b56f3c408c4ea5d2e9891f5ddb17e4754f7ebc3feb8844faef9ecf")
+
+ depends_on("py-setuptools", type="build")
+ depends_on("py-pygments@2.2.0", type=("build", "run"))
+ depends_on("py-pathspec@0.5.5", type=("build", "run"))
+ depends_on("py-pathlib2@2.3.0:", type=("build", "run"))
diff --git a/var/spack/repos/builtin/packages/py-pathspec/package.py b/var/spack/repos/builtin/packages/py-pathspec/package.py
index 3921b4770f..ce6044f647 100644
--- a/var/spack/repos/builtin/packages/py-pathspec/package.py
+++ b/var/spack/repos/builtin/packages/py-pathspec/package.py
@@ -22,6 +22,7 @@ class PyPathspec(PythonPackage):
version("0.10.1", sha256="7ace6161b621d31e7902eb6b5ae148d12cfd23f4a249b9ffb6b9fee12084323d")
version("0.9.0", sha256="e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1")
version("0.8.1", sha256="86379d6b86d75816baba717e64b1a3a3469deb93bb76d613c9ce79edc5cb68fd")
+ version("0.5.5", sha256="72c495d1bbe76674219e307f6d1c6062f2e1b0b483a5e4886435127d0df3d0d3")
version("0.3.4", sha256="7605ca5c26f554766afe1d177164a2275a85bb803b76eba3428f422972f66728")
depends_on("python@3.7:", when="@0.10:", type=("build", "run"))