This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v2-8-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit e0192f5168fff98af95cfcda3a21224f321d3b27 Author: Jarek Potiuk <[email protected]> AuthorDate: Wed Mar 13 09:05:24 2024 +0100 Limit importlib_resources as it breaks pytest_rewrites (#38095) New version of importlib_resources released today - 6.2.0 but also 6.3.0 released few hours later, break pytest_rewrite feature in rather unexpected ways. Until the problem is diagnosed and solved we should limit it. The issue is tracked in https://github.com/python/importlib_resources/issues/299 (cherry picked from commit 7ec2407e7f50251fff4359ffe7109dd8dc360f24) --- dev/breeze/README.md | 2 +- dev/breeze/pyproject.toml | 3 +++ pyproject.toml | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dev/breeze/README.md b/dev/breeze/README.md index a6e6419c36..ae93bd0f90 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: e2db123fd25e40b515520fb9f6ed32a601fe85e6a22b9845343bc5c81e5785b472527ed3bf6d07521c512d2222f99877a1ce1911ac504a3a6af7b7866aa674cc +Package config hash: eef72be47311fa0b1f3d73e41696365989da51a76db970c2dd012f50f1ad04f1ec97e7c9679b682159aab7fc48785ca8df9422cc57620963f246f6c9d0701f1a --------------------------------------------------------------------------------------------------------- diff --git a/dev/breeze/pyproject.toml b/dev/breeze/pyproject.toml index 5a43c3b560..b585a92a13 100644 --- a/dev/breeze/pyproject.toml +++ b/dev/breeze/pyproject.toml @@ -51,6 +51,9 @@ dependencies = [ "flit>=3.5.0", "gitpython>=3.1.40", "hatch==1.9.1", + # Importib_resources 6.2.0 break pytest_rewrite + # see https://github.com/python/importlib_resources/issues/299 + "importlib_resources>=5.2,<6.2.0;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 d673d7b613..88742db9fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,7 +107,9 @@ dependencies = [ "gunicorn>=20.1.0", "httpx", "importlib_metadata>=1.7;python_version<\"3.9\"", - "importlib_resources>=5.2;python_version<\"3.9\"", + # Importib_resources 6.2.0 break pytest_rewrite + # see https://github.com/python/importlib_resources/issues/299 + "importlib_resources>=5.2,<6.2.0;python_version<\"3.9\"", "itsdangerous>=2.0", "jinja2>=3.0.0", "jsonschema>=4.18.0",
