The GitHub Actions job "Tests" on airflow.git has succeeded. Run started by GitHub user dstandish (triggered by dstandish).
Head commit for run: d0d0e31c7f3edd7c9542db7ba1b2e73b6afa576e / Daniel Standish <[email protected]> Add get_airflow_version helper The point of this helper is to make it simpler to figure out what airflow version is installed, in particular to implement conditional logic in providers. Currently the logic is too complicated and this has resulted in the proliferation of sort of redundant constants. Here's an example: ``` from airflow import __version__ as AIRFLOW_VERSION AIRFLOW_V_3_0_PLUS = Version(Version(AIRFLOW_VERSION).base_version) >= Version("3.0.0") if AIRFLOW_V_3_0_PLUS: from airflow.sdk.definitions.asset import Asset ``` With this helper, we can do this instead: ``` from airflow import get_airflow_version if get_airflow_version() > Version("3.0.0"): from airflow.sdk.definitions.asset import Asset ``` Report URL: https://github.com/apache/airflow/actions/runs/12141022902 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
