From a8c400bae091fb56f6f1ba85e78c4586e975b9fa Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Mon, 3 Apr 2023 20:12:48 -0500 Subject: py-pandas: add v2.0.0 (#36617) --- .../repos/builtin/packages/py-pandas/package.py | 67 +++++++++++++--------- .../repos/builtin/packages/py-tzdata/package.py | 17 ++++++ .../builtin/packages/py-versioneer/package.py | 6 ++ 3 files changed, 62 insertions(+), 28 deletions(-) create mode 100644 var/spack/repos/builtin/packages/py-tzdata/package.py diff --git a/var/spack/repos/builtin/packages/py-pandas/package.py b/var/spack/repos/builtin/packages/py-pandas/package.py index 4aff5aea45..9df80ceaa3 100644 --- a/var/spack/repos/builtin/packages/py-pandas/package.py +++ b/var/spack/repos/builtin/packages/py-pandas/package.py @@ -17,6 +17,7 @@ class PyPandas(PythonPackage): maintainers("adamjstewart") + version("2.0.0", sha256="cda9789e61b44463c1c4fe17ef755de77bcd13b09ba31c940d20f193d63a5dc8") version("1.5.3", sha256="74a3fd7e5a7ec052f183273dc7b0acd3a863edf7520f5d3a1765c04ffdb3b0b1") version("1.5.2", sha256="220b98d15cee0b2cd839a6358bd1f273d0356bf964c1a1aeb32d47db0215488b") version("1.5.1", sha256="249cec5f2a5b22096440bd85c33106b6102e0672204abd2d5c014106459804ee") @@ -66,49 +67,59 @@ class PyPandas(PythonPackage): version("0.16.0", sha256="4013de6f8796ca9d2871218861823bd9878a8dfacd26e08ccf9afdd01bbad9f1") # Required dependencies - # https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html#dependencies + # https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html#python-version-support depends_on("python@3.8:", type=("build", "run"), when="@1.4:") depends_on("python@3.7.1:", type=("build", "run"), when="@1.2:") depends_on("python@3.6.1:", type=("build", "run"), when="@1:") depends_on("python@3.5.3:", type=("build", "run"), when="@0.25:") - depends_on("py-cython@0.29.13:2", type="build", when="@1:") - depends_on("py-cython@0.29.16:2", type="build", when="@1.1:") - depends_on("py-cython@0.29.21:2", type="build", when="@1.1.3:") - depends_on("py-cython@0.29.24:2", type="build", when="@1.3.4:") - depends_on("py-cython@0.29.30:2", type="build", when="@1.4.3:") + + # pyproject.toml + depends_on("py-setuptools@61:", type="build", when="@2:") + depends_on("py-setuptools@51:", type="build", when="@1.3.2:") + depends_on("py-setuptools@38.6:", type="build", when="@1.3:") + depends_on("py-setuptools@24.2:", type="build") + depends_on("py-cython@0.29.33:2", type="build", when="@2:") depends_on("py-cython@0.29.32:2", type="build", when="@1.4.4:") - depends_on("py-setuptools@24.2.0:", type="build") - depends_on("py-setuptools@38.6.0:", type="build", when="@1.3:") - depends_on("py-setuptools@51.0.0:", type="build", when="@1.3.2:") + depends_on("py-cython@0.29.30:2", type="build", when="@1.4.3:") + depends_on("py-cython@0.29.24:2", type="build", when="@1.3.4:") + depends_on("py-cython@0.29.21:2", type="build", when="@1.1.3:") + depends_on("py-cython@0.29.16:2", type="build", when="@1.1:") + depends_on("py-cython@0.29.13:2", type="build", when="@1:") + depends_on("py-versioneer+toml", type="build", when="@2:") + + # https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html#dependencies + depends_on("py-numpy@1.20.3:", type=("build", "run"), when="@1.5:") + depends_on("py-numpy@1.18.5:", type=("build", "run"), when="@1.4:") + depends_on("py-numpy@1.17.3:", type=("build", "run"), when="@1.3:") + depends_on("py-numpy@1.16.5:", type=("build", "run"), when="@1.2:") + depends_on("py-numpy@1.15.4:", type=("build", "run"), when="@1.1:") + depends_on("py-numpy@1.13.3:", type=("build", "run"), when="@0.25:") depends_on("py-numpy", type=("build", "run")) # 'NUMPY_IMPORT_ARRAY_RETVAL' was removed in numpy@1.19 depends_on("py-numpy@:1.18", type=("build", "run"), when="@:0.25") - depends_on("py-numpy@1.13.3:", type=("build", "run"), when="@0.25:") - depends_on("py-numpy@1.15.4:", type=("build", "run"), when="@1.1:") - depends_on("py-numpy@1.16.5:", type=("build", "run"), when="@1.2:") - depends_on("py-numpy@1.17.3:", type=("build", "run"), when="@1.3:") - depends_on("py-numpy@1.18.5:", type=("build", "run"), when="@1.4:") - depends_on("py-numpy@1.20.3:", type=("build", "run"), when="@1.5:") - depends_on("py-python-dateutil", type=("build", "run")) - depends_on("py-python-dateutil@2.6.1:", type=("build", "run"), when="@0.25:") - depends_on("py-python-dateutil@2.7.3:", type=("build", "run"), when="@1.1:") + depends_on("py-python-dateutil@2.8.2:", type=("build", "run"), when="@2:") depends_on("py-python-dateutil@2.8.1:", type=("build", "run"), when="@1.4:") - depends_on("py-pytz@2017.2:", type=("build", "run")) - depends_on("py-pytz@2017.3:", type=("build", "run"), when="@1.2:") + depends_on("py-python-dateutil@2.7.3:", type=("build", "run"), when="@1.1:") + depends_on("py-python-dateutil@2.6.1:", type=("build", "run"), when="@0.25:") + depends_on("py-python-dateutil", type=("build", "run")) depends_on("py-pytz@2020.1:", type=("build", "run"), when="@1.4:") + depends_on("py-pytz@2017.3:", type=("build", "run"), when="@1.2:") + depends_on("py-pytz@2017.2:", type=("build", "run")) + depends_on("py-tzdata@2022.1:", type=("build", "run"), when="@2:") # Recommended dependencies # https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html#recommended-dependencies - depends_on("py-numexpr", type=("build", "run")) - depends_on("py-numexpr@2.6.2:", type=("build", "run"), when="@0.25:") - depends_on("py-numexpr@2.6.8:", type=("build", "run"), when="@1.2:") - depends_on("py-numexpr@2.7.0:", type=("build", "run"), when="@1.3:") - depends_on("py-numexpr@2.7.1:", type=("build", "run"), when="@1.4:") depends_on("py-numexpr@2.7.3:", type=("build", "run"), when="@1.5:") - depends_on("py-bottleneck", type=("build", "run")) - depends_on("py-bottleneck@1.2.1:", type=("build", "run"), when="@0.25:") - depends_on("py-bottleneck@1.3.1:", type=("build", "run"), when="@1.4:") + depends_on("py-numexpr@2.7.1:", type=("build", "run"), when="@1.4:") + depends_on("py-numexpr@2.7.0:", type=("build", "run"), when="@1.3:") + depends_on("py-numexpr@2.6.8:", type=("build", "run"), when="@1.2:") + depends_on("py-numexpr@2.6.2:", type=("build", "run"), when="@0.25:") + depends_on("py-numexpr", type=("build", "run")) depends_on("py-bottleneck@1.3.2:", type=("build", "run"), when="@1.5:") + depends_on("py-bottleneck@1.3.1:", type=("build", "run"), when="@1.4:") + depends_on("py-bottleneck@1.2.1:", type=("build", "run"), when="@0.25:") + depends_on("py-bottleneck", type=("build", "run")) + depends_on("py-numba@0.53.1:", type=("build", "run"), when="@2:") # Optional dependencies # https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html#optional-dependencies diff --git a/var/spack/repos/builtin/packages/py-tzdata/package.py b/var/spack/repos/builtin/packages/py-tzdata/package.py new file mode 100644 index 0000000000..b571a56f11 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-tzdata/package.py @@ -0,0 +1,17 @@ +# 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 PyTzdata(PythonPackage): + """Provider of IANA time zone data.""" + + homepage = "https://github.com/python/tzdata" + pypi = "tzdata/tzdata-2023.3.tar.gz" + + version("2023.3", sha256="11ef1e08e54acb0d4f95bdb1be05da659673de4acbd21bf9c69e94cc5e907a3a") + + depends_on("py-setuptools@40.8:", type="build") diff --git a/var/spack/repos/builtin/packages/py-versioneer/package.py b/var/spack/repos/builtin/packages/py-versioneer/package.py index f9e31cde1d..123d984f71 100644 --- a/var/spack/repos/builtin/packages/py-versioneer/package.py +++ b/var/spack/repos/builtin/packages/py-versioneer/package.py @@ -21,7 +21,13 @@ class PyVersioneer(PythonPackage): version("0.26", sha256="84fc729aa296d1d26645a8f62f178019885ff6f9a1073b29a4a228270ac5257b") version("0.18", sha256="ead1f78168150011189521b479d3a0dd2f55c94f5b07747b484fd693c3fbf335") + variant("toml", default=True, description="Install TOML support", when="@0.26:") + depends_on("python@3.7:", when="@0.23:", type=("build", "run")) depends_on("python@3.6:", when="@0.19:", type=("build", "run")) depends_on("py-setuptools", type="build") depends_on("py-tomli", when="@0.28: ^python@:3.10", type="build") + depends_on("py-tomli", when="@0.27", type="build") + + depends_on("py-tomli", when="@0.28: +toml ^python@:3.10", type=("build", "run")) + depends_on("py-tomli", when="@:0.27 +toml", type=("build", "run")) -- cgit v1.2.3-70-g09d2