summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-archspec/package.py48
1 files changed, 34 insertions, 14 deletions
diff --git a/var/spack/repos/builtin/packages/py-archspec/package.py b/var/spack/repos/builtin/packages/py-archspec/package.py
index da32bee2d3..c40accad57 100644
--- a/var/spack/repos/builtin/packages/py-archspec/package.py
+++ b/var/spack/repos/builtin/packages/py-archspec/package.py
@@ -11,26 +11,46 @@ class PyArchspec(PythonPackage):
"""
homepage = "https://archspec.readthedocs.io/en/latest/"
- pypi = "archspec/archspec-0.1.1.tar.gz"
+ pypi = "archspec/archspec-0.2.0.tar.gz"
maintainers("alalazo")
- version("0.1.3", sha256="a1aa7abde4d4ce38d115dfd572584906fa8e192e3272b8897e7b4fa1213ec27c")
- version("0.1.2", sha256="8bb998370f0dc3e509d57c13724ab4109d761fd74af20da26fbe513b0fe01c46")
- version("0.1.1", sha256="34bafad493b41208857232e21776216d716de37ab051a6a4a1cc1653f7e26423")
- version("0.1.0", sha256="a4431d0bbe9c9dd7b293c39d8e7590034d512ce5f5a1278a6cbdf61b33f7202d")
-
- depends_on("python@2.7:2.8,3.5:", type=("build", "run"))
-
- depends_on("py-click@7.1.2:7", type=("build", "run"))
- depends_on("py-six@1.13.0:1", type=("build", "run"))
-
- depends_on("py-setuptools", type="build")
+ version("0.2.0", sha256="6aaba5ebdb5c3633c400d8c221a6a18716da0c64b367a8509f4217b22e91a5f5")
+ version(
+ "0.1.3",
+ sha256="a1aa7abde4d4ce38d115dfd572584906fa8e192e3272b8897e7b4fa1213ec27c",
+ deprecated=True,
+ )
+ version(
+ "0.1.2",
+ sha256="8bb998370f0dc3e509d57c13724ab4109d761fd74af20da26fbe513b0fe01c46",
+ deprecated=True,
+ )
+ version(
+ "0.1.1",
+ sha256="34bafad493b41208857232e21776216d716de37ab051a6a4a1cc1653f7e26423",
+ deprecated=True,
+ )
+ version(
+ "0.1.0",
+ sha256="a4431d0bbe9c9dd7b293c39d8e7590034d512ce5f5a1278a6cbdf61b33f7202d",
+ deprecated=True,
+ )
+
+ with when("@0.1"):
+ depends_on("python@2.7:2.8,3.5:", type=("build", "run"))
+ depends_on("py-click@7.1.2:7", type=("build", "run"))
+ depends_on("py-six@1.13.0:1", type=("build", "run"))
+
+ with when("@0.2.0"):
+ depends_on("py-click@8", type=("build", "run"))
+
+ depends_on("python@3.6:", when="@0.2:", type=("build", "run"))
depends_on("py-poetry-core@1.0.0:", type="build")
def patch(self):
# See https://python-poetry.org/docs/pyproject/#poetry-and-pep-517
- with working_dir(self.stage.source_path):
- if self.spec.satisfies("@:0.1.3"):
+ if self.spec.satisfies("@:0.1.3"):
+ with working_dir(self.stage.source_path):
filter_file("poetry>=0.12", "poetry_core>=1.0.0", "pyproject.toml")
filter_file("poetry.masonry.api", "poetry.core.masonry.api", "pyproject.toml")