This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new fad5e5e9d4 Limit incremental library (dependency of towncrier) (#41065)
fad5e5e9d4 is described below
commit fad5e5e9d494f0cf81f35993f5fd0f6f047a3b75
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Jul 27 19:31:16 2024 +0200
Limit incremental library (dependency of towncrier) (#41065)
The incremental library 24.7.0 and 24.7.1 have been broken
(the 24.7.0 has been yanked already but 24.7.1 has still a
breaking change - it plugs in setuptools/distutils in the way that
when virtualenv is invoked incremental will scan pyproject.toml
in the current directory and fails if it finds something that
it see as inconsistency (where it apparently is not). Unfortunately
it happens when just `python -m virtualenv` is invoked so generally
it breaks all our tests that are creating a virtualenv using it.
This is tracked in https://github.com/twisted/incremental/issues/106
---
hatch_build.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hatch_build.py b/hatch_build.py
index 2ecd4e0aa8..34066ecc6d 100644
--- a/hatch_build.py
+++ b/hatch_build.py
@@ -201,6 +201,9 @@ DEVEL_EXTRAS: dict[str, list[str]] = {
"click>=8.0",
"gitpython>=3.1.40",
"hatch>=1.9.1",
+ # Incremental 24.7.0 has broken `python -m virtualenv` command when
run in /opt/airflow directory
+ # This limit should be removed after fixing
https://github.com/twisted/incremental/issues/106
+ "incremental<=22.10.0",
"pipdeptree>=2.13.1",
"pygithub>=2.1.1",
"restructuredtext-lint>=1.4.0",