o-nikolas commented on code in PR #46405:
URL: https://github.com/apache/airflow/pull/46405#discussion_r1940422268
##########
dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py:
##########
@@ -1222,6 +1222,13 @@ def _regenerate_pyproject_toml(context: dict[str, Any],
provider_details: Provid
context["EXTRAS_REQUIREMENTS"] = "\n".join(optional_dependencies)
context["DEPENDENCY_GROUPS"] = "\n".join(dependency_groups)
+ # Most providers require the same python versions, but some may have
exclusions
+ requires_python_version = "~=3.9"
+ for excluded_python_version in provider_details.excluded_python_versions:
+ requires_python_version += f", !={excluded_python_version}"
+
+ context["REQUIRES_PYTHON"] = requires_python_version
Review Comment:
Dynamically generate the requires-python toml field now that it can have
exclusions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]