diff options
author | Angus Gibson <github@angus.agibson.me> | 2023-03-20 11:02:14 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-19 20:02:14 -0400 |
commit | b8b6ae42a0be24287ab98f5984f078b3e4767867 (patch) | |
tree | c33b34b400c26818858beb6e6f94c8545889ecc2 | |
parent | 5532350d4bee279f62d3101d1b481af1cad5efb1 (diff) | |
download | spack-b8b6ae42a0be24287ab98f5984f078b3e4767867.tar.gz spack-b8b6ae42a0be24287ab98f5984f078b3e4767867.tar.bz2 spack-b8b6ae42a0be24287ab98f5984f078b3e4767867.tar.xz spack-b8b6ae42a0be24287ab98f5984f078b3e4767867.zip |
py-setuptools-git-versioning: new package (#36123)
* py-setuptools-git-versioning: new package
* Apply suggestions from code review
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
---------
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/py-setuptools-git-versioning/package.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-setuptools-git-versioning/package.py b/var/spack/repos/builtin/packages/py-setuptools-git-versioning/package.py new file mode 100644 index 0000000000..7e463b510e --- /dev/null +++ b/var/spack/repos/builtin/packages/py-setuptools-git-versioning/package.py @@ -0,0 +1,22 @@ +# 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 PySetuptoolsGitVersioning(PythonPackage): + """Use git repo data for building a version number according PEP-440""" + + homepage = "https://setuptools-git-versioning.readthedocs.io/" + pypi = "setuptools-git-versioning/setuptools-git-versioning-1.13.3.tar.gz" + + maintainers("angus-g") + + version("1.13.3", sha256="9dfc59a31dcadcae04bcddc50534ccfc07a25a3180ab5cc1b1e3730217971c63") + + depends_on("py-setuptools", type=("build", "run")) + depends_on("git") + depends_on("py-toml@0.10.2:", when="^python@:3.10", type=("build", "run")) + depends_on("py-packaging", type=("build", "run")) |