From e797a89fe118bac468a149789032835f6f9ea87b Mon Sep 17 00:00:00 2001 From: Fábio de Andrade Barboza <69045579+Barbozafab@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:14:33 -0300 Subject: py-pipdeptree: add new package; py-hatchling: add 1.18.0 (#39697) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * py-hatchling: add 1.18.0 * py-pipdeptree: add new package * py-hatchling: add Python 3.8 dependency * Apply suggestion from code review Co-authored-by: Adam J. Stewart --------- Co-authored-by: Fábio de Andrade Barboza Co-authored-by: Adam J. Stewart --- .../repos/builtin/packages/py-hatchling/package.py | 2 ++ .../repos/builtin/packages/py-pipdeptree/package.py | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-pipdeptree/package.py diff --git a/var/spack/repos/builtin/packages/py-hatchling/package.py b/var/spack/repos/builtin/packages/py-hatchling/package.py index 5ff8287412..29fcce5df9 100644 --- a/var/spack/repos/builtin/packages/py-hatchling/package.py +++ b/var/spack/repos/builtin/packages/py-hatchling/package.py @@ -13,6 +13,7 @@ class PyHatchling(PythonPackage): pypi = "hatchling/hatchling-1.4.1.tar.gz" git = "https://github.com/pypa/hatch" + version("1.18.0", sha256="50e99c3110ce0afc3f7bdbadff1c71c17758e476731c27607940cfa6686489ca") version("1.17.0", sha256="b1244db3f45b4ef5a00106a46612da107cdfaf85f1580b8e1c059fefc98b0930") version("1.14.0", sha256="462ea91df03ff5d52813b5613fec1313a1a2059d2e37343e572b3f979867c5da") version("1.13.0", sha256="f8d275a2cc720735286b7c2e2bc35da05761e6d3695c2fa416550395f10c53c7") @@ -20,6 +21,7 @@ class PyHatchling(PythonPackage): version("1.8.1", sha256="448b04b23faed669b2b565b998ac955af4feea66c5deed3a1212ac9399d2e1cd") version("1.4.1", sha256="13461b42876ade4f75ee5d2a2c656b288ca0aab7f048ef66657ef166996b2118") + depends_on("python@3.8:", when="@1.18:", type=("build", "run")) depends_on("py-editables@0.3:", type=("build", "run")) depends_on("py-importlib-metadata", when="^python@:3.7", type=("build", "run")) depends_on("py-packaging@21.3:", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-pipdeptree/package.py b/var/spack/repos/builtin/packages/py-pipdeptree/package.py new file mode 100644 index 0000000000..92600763ed --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pipdeptree/package.py @@ -0,0 +1,20 @@ +# 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 PyPipdeptree(PythonPackage): + """Command line utility to show dependency tree of packages.""" + + homepage = "https://github.com/tox-dev/pipdeptree" + pypi = "pipdeptree/pipdeptree-2.13.0.tar.gz" + + version("2.13.0", sha256="ff71a48abd0b1ab810c23734b47de6ebd93270857d6665e21ed5ef6136fcba6e") + + depends_on("python@3.8:", type=("build", "run")) + depends_on("py-hatch-vcs@0.3:", type="build") + depends_on("py-hatchling@1.18:", type="build") -- cgit v1.2.3-70-g09d2