summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2023-04-12 11:52:10 -0500
committerGitHub <noreply@github.com>2023-04-12 12:52:10 -0400
commite08c02c471bfe1442a1b655effcf70fa3349f97d (patch)
tree4868d63e3b9339e370252829c1a1f5a8924a7388 /var
parent385834bd43e1958667b7f75074e07f412d6f58ab (diff)
downloadspack-e08c02c471bfe1442a1b655effcf70fa3349f97d.tar.gz
spack-e08c02c471bfe1442a1b655effcf70fa3349f97d.tar.bz2
spack-e08c02c471bfe1442a1b655effcf70fa3349f97d.tar.xz
spack-e08c02c471bfe1442a1b655effcf70fa3349f97d.zip
py-hatchling: new version 1.14.0; new pkgs py-calver, py-trove-classifiers (#36796)
* py-hatchling: new version 1.14.0; new pkgs py-calver, py-trove-classifiers Hatchling 1.14.0 adds a new dependency on trove-classifiers, which in turn depends on calver. So, those two packages needed to be added as well. - https://github.com/pypa/hatch/commit/f8915309d31c418c62cf6aa57436fe2e8a83e25c - https://github.com/pypa/trove-classifiers/blob/2023.3.9/pyproject.toml - https://github.com/di/calver/blob/2022.06.26/pyproject.toml * Apply suggestions from code review Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> --------- Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-calver/package.py18
-rw-r--r--var/spack/repos/builtin/packages/py-hatchling/package.py2
-rw-r--r--var/spack/repos/builtin/packages/py-trove-classifiers/package.py19
3 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-calver/package.py b/var/spack/repos/builtin/packages/py-calver/package.py
new file mode 100644
index 0000000000..c8d669a056
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-calver/package.py
@@ -0,0 +1,18 @@
+# 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 PyCalver(PythonPackage):
+ """The calver package is a setuptools extension for automatically
+ defining your Python package version as a calendar version."""
+
+ homepage = "https://github.com/di/calver"
+ pypi = "calver/calver-2022.6.26.tar.gz"
+
+ version("2022.6.26", sha256="e05493a3b17517ef1748fbe610da11f10485faa7c416b9d33fd4a52d74894f8b")
+
+ depends_on("py-setuptools", type="build")
diff --git a/var/spack/repos/builtin/packages/py-hatchling/package.py b/var/spack/repos/builtin/packages/py-hatchling/package.py
index 9a8dce07c8..b8b95e4bba 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.14.0", sha256="462ea91df03ff5d52813b5613fec1313a1a2059d2e37343e572b3f979867c5da")
version("1.13.0", sha256="f8d275a2cc720735286b7c2e2bc35da05761e6d3695c2fa416550395f10c53c7")
version("1.10.0", sha256="5d31f43dffaf6265c808e1b5353662ffa5146d844278b55caa6c7f74f427ec50")
version("1.8.1", sha256="448b04b23faed669b2b565b998ac955af4feea66c5deed3a1212ac9399d2e1cd")
@@ -25,3 +26,4 @@ class PyHatchling(PythonPackage):
depends_on("py-pathspec@0.9:", type=("build", "run"))
depends_on("py-pluggy@1:", type=("build", "run"))
depends_on("py-tomli@1.2.2:", when="^python@:3.10", type=("build", "run"))
+ depends_on("py-trove-classifiers", when="@1.14:", type=("build", "run"))
diff --git a/var/spack/repos/builtin/packages/py-trove-classifiers/package.py b/var/spack/repos/builtin/packages/py-trove-classifiers/package.py
new file mode 100644
index 0000000000..b7f22692dc
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-trove-classifiers/package.py
@@ -0,0 +1,19 @@
+# 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 PyTroveClassifiers(PythonPackage):
+ """The trove-classifiers pacakge is the canonical source for classifiers
+ on PyPI. Classifiers categorize projects per PEP 301."""
+
+ homepage = "https://github.com/pypa/trove-classifiers"
+ pypi = "trove-classifiers/trove-classifiers-2023.3.9.tar.gz"
+
+ version("2023.3.9", sha256="ee42f2f8c1d4bcfe35f746e472f07633570d485fab45407effc0379270a3bb03")
+
+ depends_on("py-setuptools", type="build")
+ depends_on("py-calver", type="build")