diff options
author | Lehman Garrison <lgarrison@flatironinstitute.org> | 2023-05-12 15:35:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 15:35:22 -0400 |
commit | 4e5fb626792e2635d11a327af6cfee2fe3438eb8 (patch) | |
tree | e63395743dcf07d086ac3b641081d014667913cd /var/spack | |
parent | cafc21c43d6b88e327687b6f8b765d8370e58c81 (diff) | |
download | spack-4e5fb626792e2635d11a327af6cfee2fe3438eb8.tar.gz spack-4e5fb626792e2635d11a327af6cfee2fe3438eb8.tar.bz2 spack-4e5fb626792e2635d11a327af6cfee2fe3438eb8.tar.xz spack-4e5fb626792e2635d11a327af6cfee2fe3438eb8.zip |
py-asdf: add 2.15.0 and dependencies (#37642)
* py-asdf: add 2.15.0 and dependencies
* py-asdf: PR review
Diffstat (limited to 'var/spack')
4 files changed, 113 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/py-asdf-standard/package.py b/var/spack/repos/builtin/packages/py-asdf-standard/package.py new file mode 100644 index 0000000000..57bdaae367 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-asdf-standard/package.py @@ -0,0 +1,24 @@ +# 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 PyAsdfStandard(PythonPackage): + """Standards document describing ASDF, Advanced Scientific Data Format""" + + homepage = "https://asdf-standard.readthedocs.io/" + pypi = "asdf_standard/asdf_standard-1.0.3.tar.gz" + + maintainers("lgarrison") + + version("1.0.3", sha256="afd8ff9a70e7b17f6bcc64eb92a544867d5d4fe1f0076719142fdf62b96cfd44") + + depends_on("python@3.8:", type=("build", "run")) + + depends_on("py-setuptools@42:", type="build") + depends_on("py-setuptools-scm@3.4: +toml", type="build") + + depends_on("py-importlib-resources@3:", type=("build", "run"), when="^python@:3.8") diff --git a/var/spack/repos/builtin/packages/py-asdf-transform-schemas/package.py b/var/spack/repos/builtin/packages/py-asdf-transform-schemas/package.py new file mode 100644 index 0000000000..886da4d19e --- /dev/null +++ b/var/spack/repos/builtin/packages/py-asdf-transform-schemas/package.py @@ -0,0 +1,25 @@ +# 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 PyAsdfTransformSchemas(PythonPackage): + """ASDF schemas for transforms""" + + homepage = "asdf-transform-schemas.readthedocs.io" + pypi = "asdf_transform_schemas/asdf_transform_schemas-0.3.0.tar.gz" + + maintainers("lgarrison") + + version("0.3.0", sha256="0cf2ff7b22ccb408fe58ddd9b2441a59ba73fe323e416d59b9e0a4728a7d2dd6") + + depends_on("python@3.8:", type=("build", "run")) + + depends_on("py-setuptools@42:", type="build") + depends_on("py-setuptools-scm@3.4: +toml", type="build") + + depends_on("py-asdf-standard@1.0.1:", type=("build", "run")) + depends_on("py-importlib-resources@3:", type=("build", "run"), when="^python@:3.8") diff --git a/var/spack/repos/builtin/packages/py-asdf-unit-schemas/package.py b/var/spack/repos/builtin/packages/py-asdf-unit-schemas/package.py new file mode 100644 index 0000000000..df5076536a --- /dev/null +++ b/var/spack/repos/builtin/packages/py-asdf-unit-schemas/package.py @@ -0,0 +1,25 @@ +# 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 PyAsdfUnitSchemas(PythonPackage): + """ASDF schemas for units""" + + homepage = "https://asdf-unit-schemas.readthedocs.io" + pypi = "asdf_unit_schemas/asdf_unit_schemas-0.1.0.tar.gz" + + maintainers("lgarrison") + + version("0.1.0", sha256="42b78d67213efe4ffd4529fb0e58d9c7a0dab5cbf8839b230f1bc0a446bff999") + + depends_on("python@3.8:", type=("build", "run")) + + depends_on("py-setuptools@42:", type="build") + depends_on("py-setuptools-scm@3.4: +toml", type="build") + + depends_on("py-asdf-standard@1.0.1:", type=("build", "run")) + depends_on("py-importlib-resources@3:", type=("build", "run"), when="^python@:3.8") diff --git a/var/spack/repos/builtin/packages/py-asdf/package.py b/var/spack/repos/builtin/packages/py-asdf/package.py index 25bd6192ea..817918afc4 100644 --- a/var/spack/repos/builtin/packages/py-asdf/package.py +++ b/var/spack/repos/builtin/packages/py-asdf/package.py @@ -11,16 +11,45 @@ class PyAsdf(PythonPackage): interchange format for scientific data. This package contains the Python implementation of the ASDF Standard.""" - homepage = "https://github.com/spacetelescope/asdf" - pypi = "asdf/asdf-2.4.2.tar.gz" + homepage = "https://asdf.readthedocs.io/" + pypi = "asdf/asdf-2.15.0.tar.gz" + maintainers("lgarrison") + + version("2.15.0", sha256="686f1c91ebf987d41f915cfb6aa70940d7ad17f87ede0be70463147ad2314587") version("2.4.2", sha256="6ff3557190c6a33781dae3fd635a8edf0fa0c24c6aca27d8679af36408ea8ff2") - depends_on("python@3.3:", type=("build", "run")) - depends_on("py-setuptools", type="build") - depends_on("py-setuptools-scm", type="build") - depends_on("py-semantic-version@2.3.1:2.6.0", type=("build", "run")) - depends_on("py-pyyaml@3.10:", type=("build", "run")) - depends_on("py-jsonschema@2.3:3", type=("build", "run")) - depends_on("py-six@1.9.0:", type=("build", "run")) - depends_on("py-numpy@1.8:", type=("build", "run")) + variant("lz4", default=True, description="Enable lz4 compression") + + depends_on("py-lz4@0.10:", when="+lz4", type=("build", "run")) + + with when("@2.15:"): + depends_on("python@3.8:", type=("build", "run")) + + depends_on("py-setuptools@60:", type="build") + depends_on("py-setuptools-scm@3.4: +toml", type="build") + + depends_on("py-asdf-standard@1.0.1:", type=("build", "run")) + depends_on("py-asdf-transform-schemas@0.3:", type=("build", "run")) + depends_on("py-asdf-unit-schemas@0.1:", type=("build", "run")) + depends_on("py-importlib-metadata@4.11.4:", type=("build", "run")) + depends_on("py-importlib-resources@3:", type=("build", "run"), when="^python@:3.8") + depends_on("py-jmespath@0.6.2:", type=("build", "run")) + depends_on("py-jsonschema@4.0.1:4.17", type=("build", "run")) + depends_on("py-numpy@1.20:", type=("build", "run")) + depends_on("py-numpy@1.20:1.24", type=("build", "run"), when="^python@:3.8") + depends_on("py-packaging@19:", type=("build", "run")) + depends_on("py-pyyaml@5.4.1:", type=("build", "run")) + depends_on("py-semantic-version@2.8:", type=("build", "run")) + + with when("@2.4.2"): + depends_on("python@3.3:", type=("build", "run")) + + depends_on("py-setuptools@30.3.0:", type="build") + depends_on("py-setuptools-scm", type="build") + + depends_on("py-semantic-version@2.3.1:2.6.0", type=("build", "run")) + depends_on("py-pyyaml@3.10:", type=("build", "run")) + depends_on("py-jsonschema@2.3:3", type=("build", "run")) + depends_on("py-six@1.9.0:", type=("build", "run")) + depends_on("py-numpy@1.8:", type=("build", "run")) |