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 55b251f849 Replace also "-" in providers compatibility check
specification (#38936)
55b251f849 is described below
commit 55b251f84936f3f893fc01224ea8d718b72cfd0f
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Apr 11 19:02:06 2024 +0200
Replace also "-" in providers compatibility check specification (#38936)
Just be a little more resilient and also accept "-" in the short name
---
dev/breeze/src/airflow_breeze/global_constants.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dev/breeze/src/airflow_breeze/global_constants.py
b/dev/breeze/src/airflow_breeze/global_constants.py
index e17c60ad0d..b527cafe3c 100644
--- a/dev/breeze/src/airflow_breeze/global_constants.py
+++ b/dev/breeze/src/airflow_breeze/global_constants.py
@@ -464,7 +464,9 @@ CHICKEN_EGG_PROVIDERS = " ".join([])
def _exclusion(providers: Iterable[str]) -> str:
- return " ".join([f"apache_airflow_providers_{provider.replace('.', '_')}*"
for provider in providers])
+ return " ".join(
+ [f"apache_airflow_providers_{provider.replace('.',
'_').replace('-','_')}*" for provider in providers]
+ )
BASE_PROVIDERS_COMPATIBILITY_CHECKS: list[dict[str, str]] = [