1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# 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 PyVersioneer(PythonPackage):
"""Versioneer is a tool to automatically update version strings by
asking your version-control system about the current tree."""
homepage = "https://github.com/python-versioneer/python-versioneer"
pypi = "versioneer/versioneer-0.26.tar.gz"
git = "https://github.com/python-versioneer/python-versioneer.git"
maintainers("scemama")
version("0.28", sha256="7175ca8e7bb4dd0e3c9779dd2745e5b4a6036304af3f5e50bd896f10196586d6")
version("0.27", sha256="452e0130658e9d3f0ba3e8a70cf34ef23c0ff6cbf743555b3e73a6c11d0161a3")
version("0.26", sha256="84fc729aa296d1d26645a8f62f178019885ff6f9a1073b29a4a228270ac5257b")
version("0.18", sha256="ead1f78168150011189521b479d3a0dd2f55c94f5b07747b484fd693c3fbf335")
variant("toml", default=True, description="Install TOML support", when="@0.26:")
depends_on("python@3.7:", when="@0.23:", type=("build", "run"))
depends_on("python@3.6:", when="@0.19:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-tomli", when="@0.28: ^python@:3.10", type="build")
depends_on("py-tomli", when="@0.27", type="build")
depends_on("py-tomli", when="@0.28: +toml ^python@:3.10", type=("build", "run"))
depends_on("py-tomli", when="@:0.27 +toml", type=("build", "run"))
|