eladkal commented on code in PR #44011:
URL: https://github.com/apache/airflow/pull/44011#discussion_r1841786333
##########
providers/src/airflow/providers/standard/__init__.py:
##########
@@ -15,12 +14,26 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
+#
+# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE
+# OVERWRITTEN WHEN PREPARING DOCUMENTATION FOR THE PACKAGES.
+#
+# IF YOU WANT TO MODIFY THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
+# `PROVIDER__INIT__PY_TEMPLATE.py.jinja2` IN the
`dev/breeze/src/airflow_breeze/templates` DIRECTORY
+#
from __future__ import annotations
-from packaging.version import Version
+import packaging.version
from airflow import __version__ as airflow_version
-AIRFLOW_VERSION = Version(airflow_version)
-AIRFLOW_V_2_10_PLUS = Version(AIRFLOW_VERSION.base_version) >=
Version("2.10.0")
-AIRFLOW_V_3_0_PLUS = Version(AIRFLOW_VERSION.base_version) >= Version("3.0.0")
+__all__ = ["__version__"]
+
+__version__ = "0.0.1"
+
+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-standard:{__version__}` needs
Apache Airflow 2.8.0+"
+ )
Review Comment:
Failing tests for the release are due to init being overriden from template.
We probably need to move the stuff here else where. Commented on the
original issue https://github.com/apache/airflow/pull/43556/files#r1841784583
cc @potiuk
--
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]