potiuk commented on PR #41047:
URL: https://github.com/apache/airflow/pull/41047#issuecomment-2253005692
Yes. You cannot have a warning for 2.7-2.9 and do not have an option to
remove the warning other than upgrading.
Yes the idea is simple. Check airlfow version and do it conditionally. Every
provider already does it in `__init__.py`
```
from airflow import __version__ as airflow_version
__all__ = ["__version__"]
__version__ = "1.3.2"
if
packaging.version.parse(packaging.version.parse(airflow_version).base_version)
< packaging.version.parse(
"2.8.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-common-io:{__version__}`
needs Apache Airflow 2.8.0+"
)
```
--
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]