Coverage for providers/src/airflow/providers/teradata/__init__.py: 78%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2024-12-27 08:27 +0000

1# Licensed to the Apache Software Foundation (ASF) under one 

2# or more contributor license agreements. See the NOTICE file 

3# distributed with this work for additional information 

4# regarding copyright ownership. The ASF licenses this file 

5# to you under the Apache License, Version 2.0 (the 

6# "License"); you may not use this file except in compliance 

7# with the License. You may obtain a copy of the License at 

8# 

9# http://www.apache.org/licenses/LICENSE-2.0 

10# 

11# Unless required by applicable law or agreed to in writing, 

12# software distributed under the License is distributed on an 

13# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 

14# KIND, either express or implied. See the License for the 

15# specific language governing permissions and limitations 

16# under the License. 

17# 

18# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE 

19# OVERWRITTEN WHEN PREPARING DOCUMENTATION FOR THE PACKAGES. 

20# 

21# IF YOU WANT TO MODIFY THIS FILE, YOU SHOULD MODIFY THE TEMPLATE 

22# `PROVIDER__INIT__PY_TEMPLATE.py.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY 

23# 

24from __future__ import annotations 

25 

26import packaging.version 

27 

28from airflow import __version__ as airflow_version 

29 

30__all__ = ["__version__"] 

31 

32__version__ = "3.0.0" 

33 

34if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse( 34 ↛ 37line 34 didn't jump to line 37 because the condition on line 34 was never true

35 "2.9.0" 

36): 

37 raise RuntimeError( 

38 f"The package `apache-airflow-providers-teradata:{__version__}` needs Apache Airflow 2.9.0+" 

39 )