Compare commits

...

10 Commits

Author SHA1 Message Date
Wouter Deconinck
12ec16a43b py-hist: ^py-numpy when @2.7.3: 2025-01-13 17:03:53 -06:00
Wouter Deconinck
89663c1fdb py-hist: ^py-boost-histogram@:1.5 when @2.8.0: 2025-01-13 17:03:53 -06:00
Wouter Deconinck
8b4be739af py-hist: ^python@3.8: when @2.8.0: 2025-01-13 17:03:53 -06:00
Wouter Deconinck
81e7601a79 py-hist: add v2.7.3, v2.8.0 2025-01-13 17:03:53 -06:00
Wouter Deconinck
f54055279b py-hist: dependencies 2025-01-13 17:03:53 -06:00
Wouter Deconinck
85378307f8 py-hist: dependencies when +plot 2025-01-13 17:03:53 -06:00
Wouter Deconinck
ec1016a0fc py-dask-histogram: @1.8.0: -> @1.8: 2025-01-13 17:03:53 -06:00
Wouter Deconinck
88b2db6f56 py-dask-histogram: add v2024.9.1 2025-01-13 17:03:53 -06:00
Wouter Deconinck
463a19eb5c py-dask-histogram: new package 2025-01-13 17:03:53 -06:00
Wouter Deconinck
db3bd7a053 py-hist: add v2.6.2 thru v2.7.1 2025-01-13 17:03:53 -06:00
2 changed files with 69 additions and 11 deletions

View File

@ -0,0 +1,26 @@
# Copyright 2013-2024 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 PyDaskHistogram(PythonPackage):
"""Histograms with task scheduling."""
homepage = "https://github.com/dask-contrib/dask-histogram"
pypi = "dask_histogram/dask_histogram-2024.3.0.tar.gz"
maintainers("wdconinc")
license("BSD-3-Clause", checked_by="wdconinc")
version("2024.9.1", sha256="a3e778b606db4affcc4fc8b6d34f5d99e165ea1691da57f40659032cd79f03e8")
version("2024.3.0", sha256="834d4d25f5e2c417f5e792fafaa55484c20c9f3812d175125de7ac34f994ef7b")
depends_on("py-hatchling@1.8:", type="build")
depends_on("py-hatch-vcs", type="build")
depends_on("py-boost-histogram@1.3.2:", type=("build", "run"))
depends_on("py-dask@2021.03.0:", type=("build", "run"))

View File

@ -13,21 +13,53 @@ class PyHist(PythonPackage):
license("BSD-3-Clause") license("BSD-3-Clause")
version("2.8.0", sha256="0a3e602dd1d2721bd7f2229f456709dde323f6f74952f13ba4e5986c3275f77b")
version("2.7.3", sha256="f9f9b56809b190bb546698789cc0d7d040934fc5141d2763c6e49d65e81dbc0b")
version("2.7.2", sha256="26b1ab810d8b10222db5d161d4acaf64aaa04fe6baaed2966d41c1dac5601d06")
version("2.7.1", sha256="ffbe314c2bd03c342b9f168dce715ad8f36281eb23172a00970882a9344fe988")
version("2.7.0", sha256="0ce40fd898ded8ef23d97c77cf1da9caf47b3caaef5fde190055d4d679a2d7a4")
version("2.6.3", sha256="dede097733d50b273af9f67386e6dcccaab77e900ae702e1a9408a856e217ce9")
version("2.6.2", sha256="55bb6366728ee48cb3fe48f20f92f0dbc560837a95961c39651699bb63af720a")
version("2.6.1", sha256="ee9034795fd2feefed923461aaccaf76f87c1f8d5414b1e704faa293ceb4fc27") version("2.6.1", sha256="ee9034795fd2feefed923461aaccaf76f87c1f8d5414b1e704faa293ceb4fc27")
version("2.5.2", sha256="0bafb8b956cc041f1b26e8f5663fb8d3b8f7673f56336facb84d8cfdc30ae2cf") version("2.5.2", sha256="0bafb8b956cc041f1b26e8f5663fb8d3b8f7673f56336facb84d8cfdc30ae2cf")
variant("plot", default=False, description="Add support for drawing histograms") variant("plot", default=False, description="Add support for drawing histograms")
variant("dask", default=False, description="Add support for dask histograms", when="@2.6.3:")
variant("fit", default=False, description="Add support for fitting histograms", when="@2.7.1:")
depends_on("python@3.7:", type=("build", "run")) depends_on("python@3.7:", type=("build", "run"))
depends_on("py-setuptools@45:", type="build") depends_on("python@3.8:", type=("build", "run"), when="@2.8.0:")
depends_on("py-setuptools-scm@3.4:+toml", type="build") with when("@:2.6.1"):
depends_on("py-boost-histogram@1.2.0:1.2", when="@2.5.2", type=("build", "run")) depends_on("py-setuptools@45:", type="build")
depends_on("py-boost-histogram@1.3.1:1.3", when="@2.6.1", type=("build", "run")) depends_on("py-setuptools-scm@3.4:+toml", type="build")
depends_on("py-histoprint@2.2.0:", type=("build", "run")) with when("@2.6.2:"):
depends_on("py-numpy@1.14.5:", type=("build", "run")) depends_on("py-hatchling", type="build")
depends_on("py-typing-extensions@3.7:", when="^python@:3.7", type=("build", "run")) depends_on("py-hatch-vcs", type="build")
depends_on("py-matplotlib@3.0:", when="+plot", type=("build", "run")) depends_on("py-boost-histogram@1.2.0:1.2", when="@2.5.2", type=("build", "run"))
depends_on("py-scipy@1.4:", when="+plot", type=("build", "run")) depends_on("py-boost-histogram@1.3.1:1.3", when="@2.6.1:2.7.1", type=("build", "run"))
depends_on("py-iminuit@2:", when="+plot", type=("build", "run")) depends_on("py-boost-histogram@1.3.1:1.4", when="@2.7.2:", type=("build", "run"))
depends_on("py-mplhep@0.2.16:", when="+plot", type=("build", "run")) depends_on("py-boost-histogram@1.3.1:1.5", when="@2.8.0:", type=("build", "run"))
depends_on("py-histoprint@2.2.0:", type=("build", "run"))
depends_on("py-numpy@1.14.5:", type=("build", "run"), when="@:2.7.1,2.7.3:")
depends_on("py-numpy@1.14.5:", type=("build", "run"), when="@2.7.2 ^python@:3.11")
depends_on("py-numpy@1.26:", type=("build", "run"), when="@2.7.2 ^python@3.12:")
depends_on("py-typing-extensions@3.7:", when="@:2.6 ^python@:3.7", type=("build", "run"))
depends_on("py-typing-extensions@4:", when="@2.7: ^python@:3.11", type=("build", "run"))
with when("+plot"):
depends_on("py-matplotlib@3.0:", type=("build", "run"))
depends_on("py-mplhep@0.2.16:", type=("build", "run"))
with when("@:2.7.0"):
depends_on("py-scipy@1.4:", type=("build", "run"), when="@:2.6.1,2.7.0")
depends_on("py-iminuit@2:", type=("build", "run"), when="@:2.6.1,2.7.0")
depends_on("py-scipy@1.4:", type=("build", "run"), when="@2.6.2:2.6.3 ^python@:3.10")
depends_on("py-iminuit@2:", type=("build", "run"), when="@2.6.2:2.6.3 ^python@:3.10")
with when("+dask"):
depends_on("py-dask@2022: +dataframe", type=("build", "run"), when="^python@3.8:")
depends_on("py-dask-histogram@2023.1:", type=("build", "run"), when="^python@3.8:")
with when("+fit"):
depends_on("py-scipy@1.4:", type=("build", "run"))
depends_on("py-iminuit@2:", type=("build", "run"))