summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLydéric Debusschère <lyderic.de@gmail.com>2023-10-18 13:04:21 +0200
committerGitHub <noreply@github.com>2023-10-18 13:04:21 +0200
commitdb5d0ac6ac592073f21095c26d031e17cdeabc76 (patch)
tree1e2665e702c83dcc8ad0bf9158c4067b6058d3a9
parent2802013dc669c503041931f3f9d8a5a251d5e12e (diff)
downloadspack-db5d0ac6ac592073f21095c26d031e17cdeabc76.tar.gz
spack-db5d0ac6ac592073f21095c26d031e17cdeabc76.tar.bz2
spack-db5d0ac6ac592073f21095c26d031e17cdeabc76.tar.xz
spack-db5d0ac6ac592073f21095c26d031e17cdeabc76.zip
[fix] py-werkzeug: add constraint in python dependence (#40590)
py-werkzeug@:0.12 does not work with python@3.10: Test with py-werkzeug 0.12.2 and python 3.10: ``` $ python3.10 -c 'import werkzeug' py-werkzeug-0.12.2/lib/python3.11/site-packages/werkzeug/datastructures.py", line 16, in <module> from collections import Container, Iterable, MutableSet ImportError: cannot import name 'Container' from 'collections' ``` Test with py-werkzeug 0.12.2 and python 3.9: ``` python3.9 -c "from collections import Container" <string>:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working ```
-rw-r--r--var/spack/repos/builtin/packages/py-werkzeug/package.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-werkzeug/package.py b/var/spack/repos/builtin/packages/py-werkzeug/package.py
index f0e7ca3f55..e4099e0151 100644
--- a/var/spack/repos/builtin/packages/py-werkzeug/package.py
+++ b/var/spack/repos/builtin/packages/py-werkzeug/package.py
@@ -31,6 +31,7 @@ class PyWerkzeug(PythonPackage):
version("0.11.11", sha256="e72c46bc14405cba7a26bd2ce28df734471bc9016bc8b4cb69466c2c14c2f7e5")
depends_on("python@3.8:", when="@2.3:", type=("build", "run"))
+ depends_on("python@:3.9", when="@:0.12", type=("build", "run"))
depends_on("py-flit-core@:3", when="@2.3.7:", type="build")
depends_on("py-markupsafe@2.1.1:", when="@2.2:", type=("build", "run"))