py-asdf: add 2.15.0 and dependencies (#37642)

* py-asdf: add 2.15.0 and dependencies

* py-asdf: PR review
This commit is contained in:
Lehman Garrison 2023-05-12 15:35:22 -04:00 committed by GitHub
parent cafc21c43d
commit 4e5fb62679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 113 additions and 10 deletions

View File

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

View File

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

View File

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

View File

@ -11,14 +11,43 @@ 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")
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", type="build")
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"))