Skip to content
42 changes: 42 additions & 0 deletions repos/spack_repo/builtin/packages/py_plaid/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack_repo.builtin.build_systems.python import PythonPackage

from spack.package import *


class PyPlaid(PythonPackage):
"""A package that implements a data model tailored for AI and ML
in the context of physics problems
"""

homepage = "https://github.com/PLAID-lib/plaid"
pypi = "pyplaid/pyplaid-0.1.15.tar.gz"

maintainers("williampiat3", "casenave", "bstaber")

license("MIT", checked_by="casenave")
Comment thread
williampiat3 marked this conversation as resolved.
Outdated

version("0.1.15", sha256="e596ee155804da31793af0ee8f0e93c5fe629e246cbdca87dcae741a1e1f1205")

# Build deps
with default_args(type="build"):
depends_on("py-setuptools@60:76.1.0")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there an upper bounds restriction?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the current pyproject.toml is not compatible with setuptools >=77, I have a PR for the next plaid release to fix this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

depends_on("py-setuptools-scm@8:")

# Build and run deps
with default_args(type=("build", "run")):
depends_on("python@:3.13")
Comment thread
williampiat3 marked this conversation as resolved.
Outdated

# Run deps
with default_args(type=("run")):
Comment thread
williampiat3 marked this conversation as resolved.
depends_on("py-pyyaml@6:")
depends_on("py-pycgns@6:") # only 6.3 is available on spack
depends_on("[email protected]:")
depends_on("[email protected]:")
Comment thread
williampiat3 marked this conversation as resolved.
Outdated
depends_on("[email protected]:4")
depends_on("[email protected]:2")
depends_on("[email protected]:")
depends_on("[email protected]:")
Comment thread
williampiat3 marked this conversation as resolved.
Outdated
Loading