You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2025/05/17 12:22:00 UTC
(airflow) branch v3-0-test updated: [v3-0-test] Better description why excluding distributions for PyPI constraints (#50680) (#50724)
This is an automated email from the ASF dual-hosted git repository.
potiuk 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 d894f07da4f [v3-0-test] Better description why excluding distributions for PyPI constraints (#50680) (#50724)
d894f07da4f is described below
commit d894f07da4fd04e4d0d9bb7d95b1a7318e60bd3a
Author: github-actions[bot] <41...@users.noreply.github.com>
AuthorDate: Sat May 17 08:21:53 2025 -0400
[v3-0-test] Better description why excluding distributions for PyPI constraints (#50680) (#50724)
(cherry picked from commit 197a214611a8a7cdb40870fd2e644726d50790b6)
Co-authored-by: Jarek Potiuk <ja...@potiuk.com>
---
scripts/in_container/run_generate_constraints.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/in_container/run_generate_constraints.py b/scripts/in_container/run_generate_constraints.py
index 3aab2385160..8353595e1b4 100755
--- a/scripts/in_container/run_generate_constraints.py
+++ b/scripts/in_container/run_generate_constraints.py
@@ -364,6 +364,12 @@ def generate_constraints_pypi_providers(config_params: ConfigParams) -> None:
distributions_to_exclude_from_constraints = get_locally_build_distribution_specs()
with config_params.current_constraints_file.open("w") as constraints_file:
constraints_file.write(PYPI_PROVIDERS_CONSTRAINTS_PREFIX)
+ if distributions_to_exclude_from_constraints:
+ console.print(
+ "[yellow]Excluding some distributions because we install them locally from build .wheels"
+ "- those versions are missing from PyPI, so we need to exclude them from PyPI constraints."
+ )
+ # the command below prints detailed list of excluded distributions
freeze_distributions_to_file(
config_params, constraints_file, distributions_to_exclude_from_constraints
)