From abea18902257c0250fedb764edda462f9e5abc84 Mon Sep 17 00:00:00 2001 From: Ash Berlin-Taylor Date: Thu, 18 May 2023 21:40:49 +0100 Subject: [PATCH] Use `__version__` in providers not `version` (#31393) This is for consistency with what we do in `airflow` and is a common pattern in Python modules. --- airflow/providers/airbyte/__init__.py | 6 +++--- airflow/providers/alibaba/__init__.py | 6 +++--- airflow/providers/amazon/__init__.py | 6 +++--- airflow/providers/apache/beam/__init__.py | 6 +++--- airflow/providers/apache/cassandra/__init__.py | 6 +++--- airflow/providers/apache/drill/__init__.py | 6 +++--- airflow/providers/apache/druid/__init__.py | 6 +++--- airflow/providers/apache/flink/__init__.py | 6 +++--- airflow/providers/apache/hdfs/__init__.py | 6 +++--- airflow/providers/apache/hive/__init__.py | 6 +++--- airflow/providers/apache/impala/__init__.py | 6 +++--- airflow/providers/apache/kafka/__init__.py | 6 +++--- airflow/providers/apache/kylin/__init__.py | 6 +++--- airflow/providers/apache/livy/__init__.py | 6 +++--- airflow/providers/apache/pig/__init__.py | 6 +++--- airflow/providers/apache/pinot/__init__.py | 6 +++--- airflow/providers/apache/spark/__init__.py | 6 +++--- airflow/providers/apache/sqoop/__init__.py | 6 +++--- airflow/providers/arangodb/__init__.py | 6 +++--- airflow/providers/asana/__init__.py | 6 +++--- airflow/providers/atlassian/jira/__init__.py | 6 +++--- airflow/providers/celery/__init__.py | 6 +++--- airflow/providers/cloudant/__init__.py | 6 +++--- airflow/providers/cncf/kubernetes/__init__.py | 6 +++--- airflow/providers/common/sql/__init__.py | 6 +++--- airflow/providers/databricks/__init__.py | 6 +++--- airflow/providers/datadog/__init__.py | 6 +++--- airflow/providers/dbt/cloud/__init__.py | 6 +++--- airflow/providers/dingding/__init__.py | 6 +++--- airflow/providers/discord/__init__.py | 6 +++--- airflow/providers/docker/__init__.py | 6 +++--- airflow/providers/elasticsearch/__init__.py | 6 +++--- airflow/providers/exasol/__init__.py | 6 +++--- airflow/providers/facebook/__init__.py | 6 +++--- airflow/providers/ftp/__init__.py | 8 +++++--- airflow/providers/github/__init__.py | 6 +++--- airflow/providers/google/__init__.py | 6 +++--- airflow/providers/grpc/__init__.py | 6 +++--- airflow/providers/hashicorp/__init__.py | 6 +++--- airflow/providers/http/__init__.py | 6 +++--- airflow/providers/imap/__init__.py | 6 +++--- airflow/providers/influxdb/__init__.py | 6 +++--- airflow/providers/jdbc/__init__.py | 6 +++--- airflow/providers/jenkins/__init__.py | 6 +++--- airflow/providers/microsoft/azure/__init__.py | 6 +++--- airflow/providers/microsoft/mssql/__init__.py | 6 +++--- airflow/providers/microsoft/psrp/__init__.py | 6 +++--- airflow/providers/microsoft/winrm/__init__.py | 6 +++--- airflow/providers/mongo/__init__.py | 6 +++--- airflow/providers/mysql/__init__.py | 6 +++--- airflow/providers/neo4j/__init__.py | 6 +++--- airflow/providers/odbc/__init__.py | 6 +++--- airflow/providers/openfaas/__init__.py | 6 +++--- airflow/providers/openlineage/__init__.py | 6 +++--- airflow/providers/openlineage/plugins/adapter.py | 2 +- airflow/providers/opsgenie/__init__.py | 6 +++--- airflow/providers/oracle/__init__.py | 6 +++--- airflow/providers/pagerduty/__init__.py | 6 +++--- airflow/providers/papermill/__init__.py | 6 +++--- airflow/providers/plexus/__init__.py | 6 +++--- airflow/providers/postgres/__init__.py | 6 +++--- airflow/providers/presto/__init__.py | 6 +++--- airflow/providers/qubole/__init__.py | 6 +++--- airflow/providers/redis/__init__.py | 6 +++--- airflow/providers/salesforce/__init__.py | 6 +++--- airflow/providers/samba/__init__.py | 6 +++--- airflow/providers/segment/__init__.py | 6 +++--- airflow/providers/sendgrid/__init__.py | 6 +++--- airflow/providers/sftp/__init__.py | 6 +++--- airflow/providers/singularity/__init__.py | 6 +++--- airflow/providers/slack/__init__.py | 6 +++--- airflow/providers/smtp/__init__.py | 6 +++--- airflow/providers/snowflake/__init__.py | 6 +++--- airflow/providers/sqlite/__init__.py | 6 +++--- airflow/providers/ssh/__init__.py | 8 +++++--- airflow/providers/tableau/__init__.py | 6 +++--- airflow/providers/tabular/__init__.py | 6 +++--- airflow/providers/telegram/__init__.py | 6 +++--- airflow/providers/trino/__init__.py | 6 +++--- airflow/providers/vertica/__init__.py | 6 +++--- airflow/providers/yandex/__init__.py | 6 +++--- airflow/providers/zendesk/__init__.py | 6 +++--- .../PROVIDER__INIT__PY_TEMPLATE.py.jinja2 | 6 +++--- 83 files changed, 251 insertions(+), 247 deletions(-) diff --git a/airflow/providers/airbyte/__init__.py b/airflow/providers/airbyte/__init__.py index 1072a45208c8..f637ede5e7c3 100644 --- a/airflow/providers/airbyte/__init__.py +++ b/airflow/providers/airbyte/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.3.0" +__version__ = "3.3.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-airbyte:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-airbyte:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/alibaba/__init__.py b/airflow/providers/alibaba/__init__.py index 4752144ee9d6..fa513687bb55 100644 --- a/airflow/providers/alibaba/__init__.py +++ b/airflow/providers/alibaba/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "2.4.0" +__version__ = "2.4.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-alibaba:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-alibaba:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/amazon/__init__.py b/airflow/providers/amazon/__init__.py index ff53e4336810..16dea22d06d9 100644 --- a/airflow/providers/amazon/__init__.py +++ b/airflow/providers/amazon/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "8.1.0" +__version__ = "8.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-amazon:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-amazon:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/beam/__init__.py b/airflow/providers/apache/beam/__init__.py index a91a6815cedb..e62569be9c7d 100644 --- a/airflow/providers/apache/beam/__init__.py +++ b/airflow/providers/apache/beam/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "5.1.0" +__version__ = "5.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-beam:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-beam:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/cassandra/__init__.py b/airflow/providers/apache/cassandra/__init__.py index 2237117c7d67..2bf7644f1892 100644 --- a/airflow/providers/apache/cassandra/__init__.py +++ b/airflow/providers/apache/cassandra/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-cassandra:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-cassandra:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/drill/__init__.py b/airflow/providers/apache/drill/__init__.py index 4e06ff25ecae..5e5fc65b439d 100644 --- a/airflow/providers/apache/drill/__init__.py +++ b/airflow/providers/apache/drill/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "2.4.0" +__version__ = "2.4.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-drill:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-drill:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/druid/__init__.py b/airflow/providers/apache/druid/__init__.py index e6458f971bc6..fc6bce09bf6c 100644 --- a/airflow/providers/apache/druid/__init__.py +++ b/airflow/providers/apache/druid/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.4.0" +__version__ = "3.4.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-druid:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-druid:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/flink/__init__.py b/airflow/providers/apache/flink/__init__.py index bb06123e5847..72db28730a85 100644 --- a/airflow/providers/apache/flink/__init__.py +++ b/airflow/providers/apache/flink/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "1.1.0" +__version__ = "1.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-flink:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-flink:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/hdfs/__init__.py b/airflow/providers/apache/hdfs/__init__.py index dca999109747..d30915515a6d 100644 --- a/airflow/providers/apache/hdfs/__init__.py +++ b/airflow/providers/apache/hdfs/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.0.0" +__version__ = "4.0.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-hdfs:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-hdfs:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/hive/__init__.py b/airflow/providers/apache/hive/__init__.py index bb7c7cc72b16..a218653dbad8 100644 --- a/airflow/providers/apache/hive/__init__.py +++ b/airflow/providers/apache/hive/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "6.1.0" +__version__ = "6.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-hive:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-hive:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/impala/__init__.py b/airflow/providers/apache/impala/__init__.py index 646e9d749b10..c727aa1b3484 100644 --- a/airflow/providers/apache/impala/__init__.py +++ b/airflow/providers/apache/impala/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "1.1.0" +__version__ = "1.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-impala:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-impala:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/kafka/__init__.py b/airflow/providers/apache/kafka/__init__.py index ab5fbb76807d..ea3018def87c 100644 --- a/airflow/providers/apache/kafka/__init__.py +++ b/airflow/providers/apache/kafka/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "1.1.0" +__version__ = "1.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-kafka:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-kafka:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/kylin/__init__.py b/airflow/providers/apache/kylin/__init__.py index 377ed275ef2c..9f617a0345f5 100644 --- a/airflow/providers/apache/kylin/__init__.py +++ b/airflow/providers/apache/kylin/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-kylin:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-kylin:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/livy/__init__.py b/airflow/providers/apache/livy/__init__.py index 9044e2c5deaf..cb1040ffbeb6 100644 --- a/airflow/providers/apache/livy/__init__.py +++ b/airflow/providers/apache/livy/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.5.0" +__version__ = "3.5.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-livy:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-livy:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/pig/__init__.py b/airflow/providers/apache/pig/__init__.py index 78a805297024..59e180b4a653 100644 --- a/airflow/providers/apache/pig/__init__.py +++ b/airflow/providers/apache/pig/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.1.0" +__version__ = "4.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-pig:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-pig:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/pinot/__init__.py b/airflow/providers/apache/pinot/__init__.py index 352fd5b4683e..c80218fa8327 100644 --- a/airflow/providers/apache/pinot/__init__.py +++ b/airflow/providers/apache/pinot/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.1.0" +__version__ = "4.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-pinot:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-pinot:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/spark/__init__.py b/airflow/providers/apache/spark/__init__.py index b1f449d5aa86..26ee6aa9a640 100644 --- a/airflow/providers/apache/spark/__init__.py +++ b/airflow/providers/apache/spark/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.1.0" +__version__ = "4.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-spark:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-spark:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/apache/sqoop/__init__.py b/airflow/providers/apache/sqoop/__init__.py index 218759c3ac10..74c0da43df3a 100644 --- a/airflow/providers/apache/sqoop/__init__.py +++ b/airflow/providers/apache/sqoop/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-apache-sqoop:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-apache-sqoop:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/arangodb/__init__.py b/airflow/providers/arangodb/__init__.py index 82608b254145..a150c6b70e16 100644 --- a/airflow/providers/arangodb/__init__.py +++ b/airflow/providers/arangodb/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "2.2.0" +__version__ = "2.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-arangodb:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-arangodb:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/asana/__init__.py b/airflow/providers/asana/__init__.py index b16b8c2adbbb..207708e06990 100644 --- a/airflow/providers/asana/__init__.py +++ b/airflow/providers/asana/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "2.2.0" +__version__ = "2.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-asana:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-asana:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/atlassian/jira/__init__.py b/airflow/providers/atlassian/jira/__init__.py index 33a2d236a689..e746d27e134d 100644 --- a/airflow/providers/atlassian/jira/__init__.py +++ b/airflow/providers/atlassian/jira/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "2.1.0" +__version__ = "2.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-atlassian-jira:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-atlassian-jira:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/celery/__init__.py b/airflow/providers/celery/__init__.py index 5f91461ef8b7..a15672cf0586 100644 --- a/airflow/providers/celery/__init__.py +++ b/airflow/providers/celery/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-celery:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-celery:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/cloudant/__init__.py b/airflow/providers/cloudant/__init__.py index 0188ab0a1194..6a3d3df7fce3 100644 --- a/airflow/providers/cloudant/__init__.py +++ b/airflow/providers/cloudant/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-cloudant:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-cloudant:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/cncf/kubernetes/__init__.py b/airflow/providers/cncf/kubernetes/__init__.py index 59e2a3482cb3..61af47e43ca8 100644 --- a/airflow/providers/cncf/kubernetes/__init__.py +++ b/airflow/providers/cncf/kubernetes/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "6.2.0" +__version__ = "6.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-cncf-kubernetes:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-cncf-kubernetes:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/common/sql/__init__.py b/airflow/providers/common/sql/__init__.py index dc8269e196f0..6f0c89480a49 100644 --- a/airflow/providers/common/sql/__init__.py +++ b/airflow/providers/common/sql/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "1.5.0" +__version__ = "1.5.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-common-sql:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-common-sql:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/databricks/__init__.py b/airflow/providers/databricks/__init__.py index 095ec224b30a..8a6910cbab24 100644 --- a/airflow/providers/databricks/__init__.py +++ b/airflow/providers/databricks/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.2.0" +__version__ = "4.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-databricks:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-databricks:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/datadog/__init__.py b/airflow/providers/datadog/__init__.py index 2c6827623d7c..84a7243cf4c7 100644 --- a/airflow/providers/datadog/__init__.py +++ b/airflow/providers/datadog/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.3.0" +__version__ = "3.3.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-datadog:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-datadog:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/dbt/cloud/__init__.py b/airflow/providers/dbt/cloud/__init__.py index a74758806ee4..673b9fa9aa4d 100644 --- a/airflow/providers/dbt/cloud/__init__.py +++ b/airflow/providers/dbt/cloud/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-dbt-cloud:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-dbt-cloud:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/dingding/__init__.py b/airflow/providers/dingding/__init__.py index 6318676a5cb6..0b1a1776df97 100644 --- a/airflow/providers/dingding/__init__.py +++ b/airflow/providers/dingding/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-dingding:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-dingding:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/discord/__init__.py b/airflow/providers/discord/__init__.py index 32660cf8dc90..53e22dbdb673 100644 --- a/airflow/providers/discord/__init__.py +++ b/airflow/providers/discord/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-discord:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-discord:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/docker/__init__.py b/airflow/providers/docker/__init__.py index 46bc72ddd99c..4b1cc4852366 100644 --- a/airflow/providers/docker/__init__.py +++ b/airflow/providers/docker/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.7.0" +__version__ = "3.7.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-docker:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-docker:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/elasticsearch/__init__.py b/airflow/providers/elasticsearch/__init__.py index 2c1514faf182..98ea345577a5 100644 --- a/airflow/providers/elasticsearch/__init__.py +++ b/airflow/providers/elasticsearch/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.5.0" +__version__ = "4.5.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-elasticsearch:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-elasticsearch:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/exasol/__init__.py b/airflow/providers/exasol/__init__.py index 4d69ba697751..1ab4bb6a2c93 100644 --- a/airflow/providers/exasol/__init__.py +++ b/airflow/providers/exasol/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.2.0" +__version__ = "4.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-exasol:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-exasol:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/facebook/__init__.py b/airflow/providers/facebook/__init__.py index b9b29f7eb7d2..c54b0d23af9d 100644 --- a/airflow/providers/facebook/__init__.py +++ b/airflow/providers/facebook/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-facebook:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-facebook:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/ftp/__init__.py b/airflow/providers/ftp/__init__.py index 764ff70ba3a9..c63f515c75b0 100644 --- a/airflow/providers/ftp/__init__.py +++ b/airflow/providers/ftp/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.4.0" +__version__ = "3.4.0" try: from airflow import __version__ as airflow_version @@ -36,4 +36,6 @@ from airflow.version import version as airflow_version if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): - raise RuntimeError(f"The package `apache-airflow-providers-ftp:{version}` requires Apache Airflow 2.4.0+") + raise RuntimeError( + f"The package `apache-airflow-providers-ftp:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 + ) diff --git a/airflow/providers/github/__init__.py b/airflow/providers/github/__init__.py index f137c3f35f8f..346b8d3da53b 100644 --- a/airflow/providers/github/__init__.py +++ b/airflow/providers/github/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "2.3.0" +__version__ = "2.3.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-github:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-github:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/google/__init__.py b/airflow/providers/google/__init__.py index 3a3ad22d0cac..597db54d3591 100644 --- a/airflow/providers/google/__init__.py +++ b/airflow/providers/google/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "10.1.0" +__version__ = "10.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-google:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-google:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/grpc/__init__.py b/airflow/providers/grpc/__init__.py index 208ea14ace93..b4ae74002164 100644 --- a/airflow/providers/grpc/__init__.py +++ b/airflow/providers/grpc/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-grpc:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-grpc:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/hashicorp/__init__.py b/airflow/providers/hashicorp/__init__.py index 01b401a89d61..482a6b1f3a36 100644 --- a/airflow/providers/hashicorp/__init__.py +++ b/airflow/providers/hashicorp/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.4.0" +__version__ = "3.4.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-hashicorp:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-hashicorp:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/http/__init__.py b/airflow/providers/http/__init__.py index d0011d5e389d..6549f4348e21 100644 --- a/airflow/providers/http/__init__.py +++ b/airflow/providers/http/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.4.0" +__version__ = "4.4.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-http:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-http:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/imap/__init__.py b/airflow/providers/imap/__init__.py index 3ffe4c2b5eed..e8aa4fcd9987 100644 --- a/airflow/providers/imap/__init__.py +++ b/airflow/providers/imap/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-imap:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-imap:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/influxdb/__init__.py b/airflow/providers/influxdb/__init__.py index 42b8a829ae3c..dbefbceb5b4b 100644 --- a/airflow/providers/influxdb/__init__.py +++ b/airflow/providers/influxdb/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "2.2.0" +__version__ = "2.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-influxdb:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-influxdb:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/jdbc/__init__.py b/airflow/providers/jdbc/__init__.py index b6206c40f6a0..33f7c34eb318 100644 --- a/airflow/providers/jdbc/__init__.py +++ b/airflow/providers/jdbc/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.4.0" +__version__ = "3.4.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-jdbc:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-jdbc:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/jenkins/__init__.py b/airflow/providers/jenkins/__init__.py index 0c8f64e1f582..5e0f45466f69 100644 --- a/airflow/providers/jenkins/__init__.py +++ b/airflow/providers/jenkins/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.3.0" +__version__ = "3.3.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-jenkins:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-jenkins:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/microsoft/azure/__init__.py b/airflow/providers/microsoft/azure/__init__.py index a3470b425b54..e0376a99446e 100644 --- a/airflow/providers/microsoft/azure/__init__.py +++ b/airflow/providers/microsoft/azure/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "6.1.0" +__version__ = "6.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-microsoft-azure:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-microsoft-azure:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/microsoft/mssql/__init__.py b/airflow/providers/microsoft/mssql/__init__.py index 85239008ba58..133569875cce 100644 --- a/airflow/providers/microsoft/mssql/__init__.py +++ b/airflow/providers/microsoft/mssql/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.4.0" +__version__ = "3.4.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-microsoft-mssql:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-microsoft-mssql:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/microsoft/psrp/__init__.py b/airflow/providers/microsoft/psrp/__init__.py index 0811a2b6649c..ac9da20142d0 100644 --- a/airflow/providers/microsoft/psrp/__init__.py +++ b/airflow/providers/microsoft/psrp/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "2.3.0" +__version__ = "2.3.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-microsoft-psrp:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-microsoft-psrp:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/microsoft/winrm/__init__.py b/airflow/providers/microsoft/winrm/__init__.py index bbf225625474..a094f8c11aa8 100644 --- a/airflow/providers/microsoft/winrm/__init__.py +++ b/airflow/providers/microsoft/winrm/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-microsoft-winrm:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-microsoft-winrm:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/mongo/__init__.py b/airflow/providers/mongo/__init__.py index fb7736f7daee..b9f4033d348b 100644 --- a/airflow/providers/mongo/__init__.py +++ b/airflow/providers/mongo/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-mongo:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-mongo:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/mysql/__init__.py b/airflow/providers/mysql/__init__.py index 259f1ab04fdd..bffda813c932 100644 --- a/airflow/providers/mysql/__init__.py +++ b/airflow/providers/mysql/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "5.1.0" +__version__ = "5.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-mysql:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-mysql:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/neo4j/__init__.py b/airflow/providers/neo4j/__init__.py index 8d4696ae602c..611f7d582e34 100644 --- a/airflow/providers/neo4j/__init__.py +++ b/airflow/providers/neo4j/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.3.0" +__version__ = "3.3.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-neo4j:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-neo4j:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/odbc/__init__.py b/airflow/providers/odbc/__init__.py index b08f5ff9759d..515109ad2a8a 100644 --- a/airflow/providers/odbc/__init__.py +++ b/airflow/providers/odbc/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.3.0" +__version__ = "3.3.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-odbc:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-odbc:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/openfaas/__init__.py b/airflow/providers/openfaas/__init__.py index 3bbf08180127..33f0f6872850 100644 --- a/airflow/providers/openfaas/__init__.py +++ b/airflow/providers/openfaas/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-openfaas:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-openfaas:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/openlineage/__init__.py b/airflow/providers/openlineage/__init__.py index aef1aa31c70f..229077d2475f 100644 --- a/airflow/providers/openlineage/__init__.py +++ b/airflow/providers/openlineage/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "1.0.0" +__version__ = "1.0.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.6.0"): raise RuntimeError( - f"The package `apache-airflow-providers-openlineage:{version}` requires Apache Airflow 2.6.0+" + f"The package `apache-airflow-providers-openlineage:{__version__}` requires Apache Airflow 2.6.0+" ) diff --git a/airflow/providers/openlineage/plugins/adapter.py b/airflow/providers/openlineage/plugins/adapter.py index 1cb7ccf84bdf..c9ba0fc9a4d3 100644 --- a/airflow/providers/openlineage/plugins/adapter.py +++ b/airflow/providers/openlineage/plugins/adapter.py @@ -24,7 +24,7 @@ import yaml from airflow.configuration import conf -from airflow.providers.openlineage import version as OPENLINEAGE_PROVIDER_VERSION +from airflow.providers.openlineage import __version__ as OPENLINEAGE_PROVIDER_VERSION from airflow.providers.openlineage.extractors import OperatorLineage from airflow.providers.openlineage.utils.utils import OpenLineageRedactor from airflow.utils.log.logging_mixin import LoggingMixin diff --git a/airflow/providers/opsgenie/__init__.py b/airflow/providers/opsgenie/__init__.py index d3d9e174555a..93a8d2138721 100644 --- a/airflow/providers/opsgenie/__init__.py +++ b/airflow/providers/opsgenie/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "5.1.0" +__version__ = "5.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-opsgenie:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-opsgenie:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/oracle/__init__.py b/airflow/providers/oracle/__init__.py index c5c56b921a09..2fab5d17de7c 100644 --- a/airflow/providers/oracle/__init__.py +++ b/airflow/providers/oracle/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.7.0" +__version__ = "3.7.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-oracle:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-oracle:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/pagerduty/__init__.py b/airflow/providers/pagerduty/__init__.py index 4e5c1b956d0b..5db6f2515986 100644 --- a/airflow/providers/pagerduty/__init__.py +++ b/airflow/providers/pagerduty/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-pagerduty:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-pagerduty:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/papermill/__init__.py b/airflow/providers/papermill/__init__.py index c4badbb47819..f9a4f614a948 100644 --- a/airflow/providers/papermill/__init__.py +++ b/airflow/providers/papermill/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-papermill:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-papermill:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/plexus/__init__.py b/airflow/providers/plexus/__init__.py index 4dd8572a973b..2d872b97bc9d 100644 --- a/airflow/providers/plexus/__init__.py +++ b/airflow/providers/plexus/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-plexus:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-plexus:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/postgres/__init__.py b/airflow/providers/postgres/__init__.py index e3f6d04bf5ab..4c19a35e440c 100644 --- a/airflow/providers/postgres/__init__.py +++ b/airflow/providers/postgres/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "5.5.0" +__version__ = "5.5.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-postgres:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-postgres:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/presto/__init__.py b/airflow/providers/presto/__init__.py index 11cff4f404d3..f3bd179db985 100644 --- a/airflow/providers/presto/__init__.py +++ b/airflow/providers/presto/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "5.1.0" +__version__ = "5.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-presto:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-presto:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/qubole/__init__.py b/airflow/providers/qubole/__init__.py index bcc5f61000ce..edf58c2c787a 100644 --- a/airflow/providers/qubole/__init__.py +++ b/airflow/providers/qubole/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.4.0" +__version__ = "3.4.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-qubole:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-qubole:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/redis/__init__.py b/airflow/providers/redis/__init__.py index b7d2c168fde7..7d5d25e65081 100644 --- a/airflow/providers/redis/__init__.py +++ b/airflow/providers/redis/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-redis:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-redis:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/salesforce/__init__.py b/airflow/providers/salesforce/__init__.py index 43fc2f5950a3..aa84a1520423 100644 --- a/airflow/providers/salesforce/__init__.py +++ b/airflow/providers/salesforce/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "5.4.0" +__version__ = "5.4.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-salesforce:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-salesforce:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/samba/__init__.py b/airflow/providers/samba/__init__.py index 9701b0744dea..0f9095ecce0b 100644 --- a/airflow/providers/samba/__init__.py +++ b/airflow/providers/samba/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.2.0" +__version__ = "4.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-samba:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-samba:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/segment/__init__.py b/airflow/providers/segment/__init__.py index 68af23e1f5e1..9ab88645dee8 100644 --- a/airflow/providers/segment/__init__.py +++ b/airflow/providers/segment/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-segment:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-segment:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/sendgrid/__init__.py b/airflow/providers/sendgrid/__init__.py index fe7d471ab5a8..1b6cb78163ae 100644 --- a/airflow/providers/sendgrid/__init__.py +++ b/airflow/providers/sendgrid/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-sendgrid:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-sendgrid:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/sftp/__init__.py b/airflow/providers/sftp/__init__.py index 1d9a881f2d9b..b3cae1ac80fb 100644 --- a/airflow/providers/sftp/__init__.py +++ b/airflow/providers/sftp/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.3.0" +__version__ = "4.3.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-sftp:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-sftp:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/singularity/__init__.py b/airflow/providers/singularity/__init__.py index f9037ffe42d6..70382c33044f 100644 --- a/airflow/providers/singularity/__init__.py +++ b/airflow/providers/singularity/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.2.0" +__version__ = "3.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-singularity:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-singularity:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/slack/__init__.py b/airflow/providers/slack/__init__.py index 4572d9347fbb..22a00fe344d4 100644 --- a/airflow/providers/slack/__init__.py +++ b/airflow/providers/slack/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "7.3.0" +__version__ = "7.3.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-slack:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-slack:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/smtp/__init__.py b/airflow/providers/smtp/__init__.py index 0a0c449b4d31..6652e2bc12b4 100644 --- a/airflow/providers/smtp/__init__.py +++ b/airflow/providers/smtp/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "1.1.0" +__version__ = "1.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-smtp:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-smtp:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/snowflake/__init__.py b/airflow/providers/snowflake/__init__.py index 9b8ff10ab51a..2faa9ab07b30 100644 --- a/airflow/providers/snowflake/__init__.py +++ b/airflow/providers/snowflake/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.1.0" +__version__ = "4.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-snowflake:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-snowflake:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/sqlite/__init__.py b/airflow/providers/sqlite/__init__.py index 210d827aa493..3155b9c9fc2c 100644 --- a/airflow/providers/sqlite/__init__.py +++ b/airflow/providers/sqlite/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.4.0" +__version__ = "3.4.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-sqlite:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-sqlite:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/ssh/__init__.py b/airflow/providers/ssh/__init__.py index 935d3f8a7dee..9d4768a2fe43 100644 --- a/airflow/providers/ssh/__init__.py +++ b/airflow/providers/ssh/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.7.0" +__version__ = "3.7.0" try: from airflow import __version__ as airflow_version @@ -36,4 +36,6 @@ from airflow.version import version as airflow_version if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): - raise RuntimeError(f"The package `apache-airflow-providers-ssh:{version}` requires Apache Airflow 2.4.0+") + raise RuntimeError( + f"The package `apache-airflow-providers-ssh:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 + ) diff --git a/airflow/providers/tableau/__init__.py b/airflow/providers/tableau/__init__.py index 2a78e3ba1083..a46f65d354e1 100644 --- a/airflow/providers/tableau/__init__.py +++ b/airflow/providers/tableau/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.2.0" +__version__ = "4.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-tableau:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-tableau:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/tabular/__init__.py b/airflow/providers/tabular/__init__.py index 68dbe9cf8134..74351f80614f 100644 --- a/airflow/providers/tabular/__init__.py +++ b/airflow/providers/tabular/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "1.2.0" +__version__ = "1.2.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-tabular:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-tabular:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/telegram/__init__.py b/airflow/providers/telegram/__init__.py index ae65e6f1c49a..2c2a38de28c5 100644 --- a/airflow/providers/telegram/__init__.py +++ b/airflow/providers/telegram/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.1.0" +__version__ = "4.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-telegram:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-telegram:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/trino/__init__.py b/airflow/providers/trino/__init__.py index c06a33e3bfbf..14a4af30e1df 100644 --- a/airflow/providers/trino/__init__.py +++ b/airflow/providers/trino/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "5.1.0" +__version__ = "5.1.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-trino:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-trino:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/vertica/__init__.py b/airflow/providers/vertica/__init__.py index cc5016099def..60a9ec0b3b87 100644 --- a/airflow/providers/vertica/__init__.py +++ b/airflow/providers/vertica/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.4.0" +__version__ = "3.4.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-vertica:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-vertica:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/airflow/providers/yandex/__init__.py b/airflow/providers/yandex/__init__.py index 30355bdf5e5f..d0709aa51ffd 100644 --- a/airflow/providers/yandex/__init__.py +++ b/airflow/providers/yandex/__init__.py @@ -28,11 +28,11 @@ import airflow -__all__ = ["version"] +__all__ = ["__version__"] -version = "3.3.0" +__version__ = "3.3.0" if packaging.version.parse(airflow.version.version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-yandex:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-yandex:{__version__}` requires Apache Airflow 2.4.0+" ) diff --git a/airflow/providers/zendesk/__init__.py b/airflow/providers/zendesk/__init__.py index 34bd104b3e62..232d4c9b37a3 100644 --- a/airflow/providers/zendesk/__init__.py +++ b/airflow/providers/zendesk/__init__.py @@ -26,9 +26,9 @@ import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "4.3.0" +__version__ = "4.3.0" try: from airflow import __version__ as airflow_version @@ -37,5 +37,5 @@ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"): raise RuntimeError( - f"The package `apache-airflow-providers-zendesk:{version}` requires Apache Airflow 2.4.0+" + f"The package `apache-airflow-providers-zendesk:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501 ) diff --git a/dev/provider_packages/PROVIDER__INIT__PY_TEMPLATE.py.jinja2 b/dev/provider_packages/PROVIDER__INIT__PY_TEMPLATE.py.jinja2 index 56f66978c70d..c2abb903e08e 100644 --- a/dev/provider_packages/PROVIDER__INIT__PY_TEMPLATE.py.jinja2 +++ b/dev/provider_packages/PROVIDER__INIT__PY_TEMPLATE.py.jinja2 @@ -44,9 +44,9 @@ from __future__ import annotations import packaging.version -__all__ = ["version"] +__all__ = ["__version__"] -version = "{{ RELEASE }}{{ VERSION_SUFFIX }}" +__version__ = "{{ RELEASE }}{{ VERSION_SUFFIX }}" try: from airflow import __version__ as airflow_version @@ -55,5 +55,5 @@ except ImportError: if packaging.version.parse(airflow_version) < packaging.version.parse("{{ MIN_AIRFLOW_VERSION }}"): raise RuntimeError( - f"The package `{{ PACKAGE_PIP_NAME }}:{version}` requires Apache Airflow {{ MIN_AIRFLOW_VERSION }}+" + f"The package `{{ PACKAGE_PIP_NAME }}:{__version__}` requires Apache Airflow {{ MIN_AIRFLOW_VERSION }}+" # NOQA: E501 )