From f92b5d586ff7c97f461214d4bb4db5ea4783ddeb Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Wed, 10 May 2023 09:57:59 +0200 Subject: py-datalad: add 0.18.3 (#37411) * py-datalad: add 0.18.3 * [@spackbot] updating style on behalf of manuelakuhn * Remove metadata variant * Fix dependencies * Remove redundant version restriction --- .../repos/builtin/packages/py-datalad/package.py | 46 +++++++++++++++------- 1 file changed, 31 insertions(+), 15 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-datalad/package.py b/var/spack/repos/builtin/packages/py-datalad/package.py index 417f9fb7b5..83afeb5174 100644 --- a/var/spack/repos/builtin/packages/py-datalad/package.py +++ b/var/spack/repos/builtin/packages/py-datalad/package.py @@ -21,6 +21,7 @@ class PyDatalad(PythonPackage): pypi = "datalad/datalad-0.14.6.tar.gz" git = "https://github.com/datalad/datalad" + version("0.18.3", sha256="2da57df609f62a52a6652ade802e8ce0f229d498a5b93b15df2b8c69f8875b6e") version("0.17.5", sha256="a221312c58b0b9b57605cc1a2288838f24932491b2e50475dd7a940151cafccd") version("0.15.5", sha256="e569494a5bd4e0f100013ec30529d5ac02e78ba476a75fc533c0d89c0e5473bc") version("0.15.3", sha256="44f8c5b3960c6d9848aeecd868c82330c49689a21e975597df5b112dc2e5c9f0") @@ -31,31 +32,39 @@ class PyDatalad(PythonPackage): variant("downloaders-extra", default=False, description="Enable extra downloaders support") variant("misc", default=False, description="Enable misc") variant("tests", default=False, description="Enable tests") - variant("metadata-extra", default=False, description="Enable extra metadata support") variant("duecredit", default=False, description="Enable duecredit support") variant("full", default=False, description="Enable support for all available variants") - depends_on("python@3.7:", when="@0.16:", type=("build", "run")) - depends_on("python@3.6:", type=("build", "run")) + variant( + "metadata-extra", when="@:0.17", default=False, description="Enable extra metadata support" + ) + depends_on("py-setuptools@40.8.0:", type="build") + # upper bound needed because otherwise the following error occurs: + # 'extras_require' must be a dictionary whose values are strings or lists + # of strings containing valid project/version requirement specifiers. + depends_on("py-setuptools@40.8.0:66", when="@:17", type="build") depends_on("git", type=("build", "run")) depends_on("git-annex", type=("build", "run")) # core depends_on("py-platformdirs", when="@0.16:", type=("build", "run")) - depends_on("py-chardet@3.0.4:4", type=("build", "run")) + depends_on("py-chardet@3.0.4:", when="@0.18.2:", type=("build", "run")) + depends_on("py-chardet@3.0.4:4", when="@:0.18.1", type=("build", "run")) + depends_on("py-colorama", when="platform=windows", type=("build", "run")) depends_on("py-distro", when="^python@3.8:", type=("build", "run")) depends_on("py-importlib-metadata@3.6:", when="@0.16: ^python@:3.9", type=("build", "run")) depends_on("py-importlib-metadata", when="@:0.15 ^python@:3.7", type=("build", "run")) depends_on("py-iso8601", type=("build", "run")) depends_on("py-humanize", type=("build", "run")) depends_on("py-fasteners@0.14:", type=("build", "run")) - depends_on("py-packaging", type=("build", "run"), when="@0.15.4:") + depends_on("py-packaging", when="@0.15.4:", type=("build", "run")) depends_on("py-patool@1.7:", type=("build", "run")) depends_on("py-tqdm", type=("build", "run")) + depends_on("py-typing-extensions", when="@0.18.3: ^python@:3.9", type=("build", "run")) depends_on("py-annexremote", type=("build", "run")) - depends_on("py-colorama", when="platform=windows", type=("build", "run")) + depends_on("py-looseversion", when="@0.18:", type=("build", "run")) depends_on("py-appdirs", when="@:0.15", type=("build", "run")) depends_on("py-wrapt", when="@:0.15", type=("build", "run")) @@ -73,8 +82,9 @@ class PyDatalad(PythonPackage): depends_on("py-jsmin", when="@:0.14", type=("build", "run")) # metadata - depends_on("py-simplejson", type=("build", "run")) - depends_on("py-whoosh", type=("build", "run")) + with when("@:0.17"): + depends_on("py-simplejson", type=("build", "run")) + depends_on("py-whoosh", type=("build", "run")) with when("+downloaders-extra"): depends_on("py-requests-ftp", type=("build", "run")) @@ -88,15 +98,22 @@ class PyDatalad(PythonPackage): with when("+tests"): depends_on("py-beautifulsoup4", type=("build", "run")) depends_on("py-httpretty@0.9.4:", type=("build", "run")) - depends_on("py-mypy@0.900:0", when="@0.17.4:", type=("build", "run")) - depends_on("py-pytest@7", when="@0.17:", type=("build", "run")) - depends_on("py-pytest-cov@3", when="@0.17:", type=("build", "run")) + depends_on("py-mypy", when="@0.18.3:", type=("build", "run")) + depends_on("py-mypy@0.900:0", when="@0.17.4:0.18.2", type=("build", "run")) + depends_on("py-pytest", when="@0.17.9:", type=("build", "run")) + depends_on("py-pytest@7", when="@0.17.0:0.17.8", type=("build", "run")) + depends_on("py-pytest-cov", when="@0.17.9:", type=("build", "run")) + depends_on("py-pytest-cov@3", when="@0.17.0:0.17.8", type=("build", "run")) depends_on("py-pytest-fail-slow@0.2:0", when="@0.17:", type=("build", "run")) depends_on("py-types-python-dateutil", when="@0.17.4:", type=("build", "run")) depends_on("py-types-requests", when="@0.17.4:", type=("build", "run")) depends_on("py-vcrpy", type=("build", "run")) depends_on("py-nose@1.3.4:", when="@:0.16", type=("build", "run")) + with when("+duecredit"): + depends_on("py-duecredit", type=("build", "run")) + + # for version @:0.17 with when("+metadata-extra"): depends_on("py-pyyaml", type=("build", "run")) depends_on("py-mutagen@1.36:", type=("build", "run")) @@ -104,17 +121,16 @@ class PyDatalad(PythonPackage): depends_on("py-python-xmp-toolkit", type=("build", "run")) depends_on("pil", type=("build", "run")) - with when("+duecredit"): - depends_on("py-duecredit", type=("build", "run")) - # full # use conflict to avoid to have to maintain the dependencies twice conflicts("~downloaders-extra", when="+full") conflicts("~misc", when="+full") conflicts("~tests", when="+full") - conflicts("~metadata-extra", when="+full") conflicts("~duecredit", when="+full") + # for version @:0.17 + conflicts("~metadata-extra", when="+full") + install_time_test_callbacks = ["test", "installtest"] def installtest(self): -- cgit v1.2.3-60-g2f50