From d8b3e1fa7e9af82efb929475e084f91e82c3d73c Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Tue, 19 Mar 2024 20:06:49 +0100 Subject: [PATCH] Lift the limit on importlib_resources library The problem with importlib_resources interacting badly with pytest_rewrite has been solved in 6.3.2 version today and we can simply skip over the bad versions. See https://github.com/python/importlib_resources/issues/298 --- dev/breeze/README.md | 2 +- dev/breeze/pyproject.toml | 4 ++-- pyproject.toml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dev/breeze/README.md b/dev/breeze/README.md index e95e62cd4c04f..981a7bb85901d 100644 --- a/dev/breeze/README.md +++ b/dev/breeze/README.md @@ -66,6 +66,6 @@ PLEASE DO NOT MODIFY THE HASH BELOW! IT IS AUTOMATICALLY UPDATED BY PRE-COMMIT. --------------------------------------------------------------------------------------------------------- -Package config hash: dc6668558ff6f7334e9f9a7ff9073caccd790d4ff4aab0e1228b3363677b53714310d4a2b9b43ff3e089c34fb3cdc9861350d1a495299feb3bb12c7506574c77 +Package config hash: fb5183650b0efb5ec8241fcd53b6e5cc26c21c8d273fff91d0e8a3716f37703c44c7ae189653dd3fd52624d89c97635e0a7fc09104138ba35cb3ccf45f8efd4b --------------------------------------------------------------------------------------------------------- diff --git a/dev/breeze/pyproject.toml b/dev/breeze/pyproject.toml index 9d915ae9e1ebd..b2f24f2c376e3 100644 --- a/dev/breeze/pyproject.toml +++ b/dev/breeze/pyproject.toml @@ -51,9 +51,9 @@ dependencies = [ "flit>=3.5.0", "gitpython>=3.1.40", "hatch==1.9.1", - # Importib_resources 6.2.0 break pytest_rewrite + # Importib_resources 6.2.0-6.3.1 break pytest_rewrite # see https://github.com/python/importlib_resources/issues/299 - "importlib_resources>=5.2,<6.2.0;python_version<\"3.9\"", + "importlib_resources>=5.2,!=6.2.0,!=6.3.0,!=6.3.1;python_version<\"3.9\"", "inputimeout>=1.0.4", "jinja2>=3.1.0", "jsonschema>=4.19.1", diff --git a/pyproject.toml b/pyproject.toml index d2d72a5fa0c4f..46a9d81e14df9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,9 +104,9 @@ dependencies = [ "gunicorn>=20.1.0", "httpx", "importlib_metadata>=1.7;python_version<\"3.9\"", - # Importib_resources 6.2.0 break pytest_rewrite + # Importib_resources 6.2.0-6.3.1 break pytest_rewrite # see https://github.com/python/importlib_resources/issues/299 - "importlib_resources>=5.2,<6.2.0;python_version<\"3.9\"", + "importlib_resources>=5.2,!=6.2.0,!=6.3.0,!=6.3.1;python_version<\"3.9\"", "itsdangerous>=2.0", "jinja2>=3.0.0", "jsonschema>=4.18.0",