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>
This commit is contained in:
Angus Gibson 2023-03-20 11:02:14 +11:00 committed by GitHub
parent 5532350d4b
commit b8b6ae42a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"))