This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push:
new aa95a37a3ee [v3-0-test] Exclude libcst 1.8.1 for Python 3.9 (#51606)
(#51609)
aa95a37a3ee is described below
commit aa95a37a3ee4cd5fb1154382516fc2eb5677f83a
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Jun 11 21:23:58 2025 +0200
[v3-0-test] Exclude libcst 1.8.1 for Python 3.9 (#51606) (#51609)
* build(pre-commit): ignore 1.8.1 as it misses typing-extensions which is
needed in Python 3.9
* build(pyproject.toml): include libcst==1.8.1 for python 3.9 as it misses
typing-extentions
(cherry picked from commit 2bd4c1707633d602c8d2ebc95212aeab0727748c)
Co-authored-by: Wei Lee <[email protected]>
---
.pre-commit-config.yaml | 3 ++-
airflow-core/pyproject.toml | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 01a585c19c4..e5c88598f17 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -226,7 +226,8 @@ repos:
entry: ./scripts/ci/pre_commit/check_deferrable_default.py
pass_filenames: false
# libcst doesn't have source wheels for all PY except PY3.12,
excluding it
- additional_dependencies: ['libcst>=1.1.0,!=1.8.0']
+ # libcst 1.8.1 doesn't include typing-extensions which is needed for
Python 3.9
+ additional_dependencies: ['libcst>=1.1.0,!=1.8.0,!=1.8.1']
files: ^(providers/.*/)?airflow/.*/(sensors|operators)/.*\.py$
- repo: https://github.com/asottile/blacken-docs
rev: 1.19.1
diff --git a/airflow-core/pyproject.toml b/airflow-core/pyproject.toml
index e29f1589cde..f42fad6dc76 100644
--- a/airflow-core/pyproject.toml
+++ b/airflow-core/pyproject.toml
@@ -95,7 +95,8 @@ dependencies = [
"jinja2>=3.1.5",
"jsonschema>=4.19.1",
"lazy-object-proxy>=1.2.0",
- "libcst >=1.1.0",
+ 'libcst >=1.1.0,!=1.8.1;python_version<"3.10"',
+ 'libcst >=1.1.0;python_version>="3.10"',
"linkify-it-py>=2.0.0",
"lockfile>=0.12.2",
"methodtools>=0.4.7",