apache-airflow-providers-mysql 6.3.1__py3-none-any.whl → 6.3.2rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- airflow/providers/mysql/__init__.py +1 -1
- airflow/providers/mysql/hooks/mysql.py +2 -2
- airflow/providers/mysql/transfers/presto_to_mysql.py +1 -1
- airflow/providers/mysql/transfers/s3_to_mysql.py +1 -1
- airflow/providers/mysql/transfers/trino_to_mysql.py +1 -1
- airflow/providers/mysql/transfers/vertica_to_mysql.py +1 -1
- airflow/providers/mysql/version_compat.py +40 -0
- {apache_airflow_providers_mysql-6.3.1.dist-info → apache_airflow_providers_mysql-6.3.2rc1.dist-info}/METADATA +10 -11
- apache_airflow_providers_mysql-6.3.2rc1.dist-info/RECORD +17 -0
- apache_airflow_providers_mysql-6.3.1.dist-info/RECORD +0 -16
- {apache_airflow_providers_mysql-6.3.1.dist-info → apache_airflow_providers_mysql-6.3.2rc1.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_mysql-6.3.1.dist-info → apache_airflow_providers_mysql-6.3.2rc1.dist-info}/entry_points.txt +0 -0
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
|
|
29
29
|
|
30
30
|
__all__ = ["__version__"]
|
31
31
|
|
32
|
-
__version__ = "6.3.
|
32
|
+
__version__ = "6.3.2"
|
33
33
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
35
35
|
"2.10.0"
|
@@ -220,7 +220,7 @@ class MySqlHook(DbApiHook):
|
|
220
220
|
"installed in case you see compilation error during installation."
|
221
221
|
)
|
222
222
|
|
223
|
-
conn_config = self._get_conn_config_mysql_client(conn)
|
223
|
+
conn_config = self._get_conn_config_mysql_client(conn) # type: ignore[arg-type]
|
224
224
|
return MySQLdb.connect(**conn_config)
|
225
225
|
|
226
226
|
if client_name == "mysql-connector-python":
|
@@ -233,7 +233,7 @@ class MySqlHook(DbApiHook):
|
|
233
233
|
"'mysql-connector-python'. Warning! It might cause dependency conflicts."
|
234
234
|
)
|
235
235
|
|
236
|
-
conn_config = self._get_conn_config_mysql_connector_python(conn)
|
236
|
+
conn_config = self._get_conn_config_mysql_connector_python(conn) # type: ignore[arg-type]
|
237
237
|
return mysql.connector.connect(**conn_config)
|
238
238
|
|
239
239
|
raise ValueError("Unknown MySQL client name provided!")
|
@@ -20,8 +20,8 @@ from __future__ import annotations
|
|
20
20
|
from collections.abc import Sequence
|
21
21
|
from typing import TYPE_CHECKING
|
22
22
|
|
23
|
-
from airflow.models import BaseOperator
|
24
23
|
from airflow.providers.mysql.hooks.mysql import MySqlHook
|
24
|
+
from airflow.providers.mysql.version_compat import BaseOperator
|
25
25
|
from airflow.providers.presto.hooks.presto import PrestoHook
|
26
26
|
|
27
27
|
if TYPE_CHECKING:
|
@@ -20,9 +20,9 @@ import os
|
|
20
20
|
from collections.abc import Sequence
|
21
21
|
from typing import TYPE_CHECKING
|
22
22
|
|
23
|
-
from airflow.models import BaseOperator
|
24
23
|
from airflow.providers.amazon.aws.hooks.s3 import S3Hook
|
25
24
|
from airflow.providers.mysql.hooks.mysql import MySqlHook
|
25
|
+
from airflow.providers.mysql.version_compat import BaseOperator
|
26
26
|
|
27
27
|
if TYPE_CHECKING:
|
28
28
|
try:
|
@@ -20,8 +20,8 @@ from __future__ import annotations
|
|
20
20
|
from collections.abc import Sequence
|
21
21
|
from typing import TYPE_CHECKING
|
22
22
|
|
23
|
-
from airflow.models import BaseOperator
|
24
23
|
from airflow.providers.mysql.hooks.mysql import MySqlHook
|
24
|
+
from airflow.providers.mysql.version_compat import BaseOperator
|
25
25
|
from airflow.providers.trino.hooks.trino import TrinoHook
|
26
26
|
|
27
27
|
if TYPE_CHECKING:
|
@@ -33,8 +33,8 @@ except ImportError:
|
|
33
33
|
"installed in case you see compilation error during installation."
|
34
34
|
)
|
35
35
|
|
36
|
-
from airflow.models import BaseOperator
|
37
36
|
from airflow.providers.mysql.hooks.mysql import MySqlHook
|
37
|
+
from airflow.providers.mysql.version_compat import BaseOperator
|
38
38
|
from airflow.providers.vertica.hooks.vertica import VerticaHook
|
39
39
|
|
40
40
|
if TYPE_CHECKING:
|
@@ -0,0 +1,40 @@
|
|
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
|
+
from __future__ import annotations
|
19
|
+
|
20
|
+
|
21
|
+
def get_base_airflow_version_tuple() -> tuple[int, int, int]:
|
22
|
+
from packaging.version import Version
|
23
|
+
|
24
|
+
from airflow import __version__
|
25
|
+
|
26
|
+
airflow_version = Version(__version__)
|
27
|
+
return airflow_version.major, airflow_version.minor, airflow_version.micro
|
28
|
+
|
29
|
+
|
30
|
+
AIRFLOW_V_3_0_PLUS = get_base_airflow_version_tuple() >= (3, 0, 0)
|
31
|
+
|
32
|
+
if AIRFLOW_V_3_0_PLUS:
|
33
|
+
from airflow.sdk import BaseOperator
|
34
|
+
else:
|
35
|
+
from airflow.models import BaseOperator
|
36
|
+
|
37
|
+
__all__ = [
|
38
|
+
"AIRFLOW_V_3_0_PLUS",
|
39
|
+
"BaseOperator",
|
40
|
+
]
|
@@ -1,11 +1,11 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: apache-airflow-providers-mysql
|
3
|
-
Version: 6.3.
|
3
|
+
Version: 6.3.2rc1
|
4
4
|
Summary: Provider package apache-airflow-providers-mysql for Apache Airflow
|
5
5
|
Keywords: airflow-provider,mysql,airflow,integration
|
6
6
|
Author-email: Apache Software Foundation <dev@airflow.apache.org>
|
7
7
|
Maintainer-email: Apache Software Foundation <dev@airflow.apache.org>
|
8
|
-
Requires-Python: ~=3.
|
8
|
+
Requires-Python: ~=3.10
|
9
9
|
Description-Content-Type: text/x-rst
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
11
11
|
Classifier: Environment :: Console
|
@@ -15,13 +15,12 @@ Classifier: Intended Audience :: System Administrators
|
|
15
15
|
Classifier: Framework :: Apache Airflow
|
16
16
|
Classifier: Framework :: Apache Airflow :: Provider
|
17
17
|
Classifier: License :: OSI Approved :: Apache Software License
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
19
18
|
Classifier: Programming Language :: Python :: 3.10
|
20
19
|
Classifier: Programming Language :: Python :: 3.11
|
21
20
|
Classifier: Programming Language :: Python :: 3.12
|
22
21
|
Classifier: Topic :: System :: Monitoring
|
23
|
-
Requires-Dist: apache-airflow>=2.10.
|
24
|
-
Requires-Dist: apache-airflow-providers-common-sql>=1.20.
|
22
|
+
Requires-Dist: apache-airflow>=2.10.0rc1
|
23
|
+
Requires-Dist: apache-airflow-providers-common-sql>=1.20.0rc1
|
25
24
|
Requires-Dist: mysqlclient>=2.2.5; sys_platform != "darwin"
|
26
25
|
Requires-Dist: mysql-connector-python>=9.0.0
|
27
26
|
Requires-Dist: aiomysql>=0.2.0
|
@@ -31,8 +30,8 @@ Requires-Dist: apache-airflow-providers-presto ; extra == "presto"
|
|
31
30
|
Requires-Dist: apache-airflow-providers-trino ; extra == "trino"
|
32
31
|
Requires-Dist: apache-airflow-providers-vertica ; extra == "vertica"
|
33
32
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
34
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-mysql/6.3.
|
35
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-mysql/6.3.
|
33
|
+
Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-mysql/6.3.2/changelog.html
|
34
|
+
Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-mysql/6.3.2
|
36
35
|
Project-URL: Mastodon, https://fosstodon.org/@airflow
|
37
36
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
38
37
|
Project-URL: Source Code, https://github.com/apache/airflow
|
@@ -69,7 +68,7 @@ Provides-Extra: vertica
|
|
69
68
|
|
70
69
|
Package ``apache-airflow-providers-mysql``
|
71
70
|
|
72
|
-
Release: ``6.3.
|
71
|
+
Release: ``6.3.2``
|
73
72
|
|
74
73
|
|
75
74
|
`MySQL <https://www.mysql.com/>`__
|
@@ -82,7 +81,7 @@ This is a provider package for ``mysql`` provider. All classes for this provider
|
|
82
81
|
are in ``airflow.providers.mysql`` python package.
|
83
82
|
|
84
83
|
You can find package information and changelog for the provider
|
85
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-mysql/6.3.
|
84
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-mysql/6.3.2/>`_.
|
86
85
|
|
87
86
|
Installation
|
88
87
|
------------
|
@@ -91,7 +90,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
|
|
91
90
|
for the minimum Airflow version supported) via
|
92
91
|
``pip install apache-airflow-providers-mysql``
|
93
92
|
|
94
|
-
The package supports the following python versions: 3.
|
93
|
+
The package supports the following python versions: 3.10,3.11,3.12
|
95
94
|
|
96
95
|
Requirements
|
97
96
|
------------
|
@@ -131,5 +130,5 @@ Dependent package
|
|
131
130
|
============================================================================================================== ===============
|
132
131
|
|
133
132
|
The changelog for the provider package can be found in the
|
134
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-mysql/6.3.
|
133
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-mysql/6.3.2/changelog.html>`_.
|
135
134
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
airflow/providers/mysql/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
2
|
+
airflow/providers/mysql/__init__.py,sha256=BZHpjFqlAv_M37dLy1p4N13iTd1PBws5VynugElOswA,1494
|
3
|
+
airflow/providers/mysql/get_provider_info.py,sha256=LNQZ8O48srWzGjS8mzLeAsa-VFGFY6ypkHK1jjr6umc,3064
|
4
|
+
airflow/providers/mysql/version_compat.py,sha256=k18iZM_Hg0KlMrY6A4-xm9PJWJ6uxnicgYkzXySF78Y,1332
|
5
|
+
airflow/providers/mysql/assets/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
6
|
+
airflow/providers/mysql/assets/mysql.py,sha256=ORHZmCa1AZAWwpF7GKH-8faqOKSohJvKtqRgfDnQRRc,1385
|
7
|
+
airflow/providers/mysql/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
8
|
+
airflow/providers/mysql/hooks/mysql.py,sha256=P8T27KrCSZ0hRLvtAJzN4n5bUe2kEH_2TTNgO7vqF8s,16331
|
9
|
+
airflow/providers/mysql/transfers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
10
|
+
airflow/providers/mysql/transfers/presto_to_mysql.py,sha256=44o2DMZd_vwpKeM1kRoa2q8oJxeYXy3cuylCyIf99yU,3482
|
11
|
+
airflow/providers/mysql/transfers/s3_to_mysql.py,sha256=3IIrmNkDWHJ8GbTABWQ26hPJdQUinrF8NFZXMavwDaI,4089
|
12
|
+
airflow/providers/mysql/transfers/trino_to_mysql.py,sha256=LVXVWFQzju7lZl-GCIevjto0ZQqKv3H8loWfDv8wcWY,3464
|
13
|
+
airflow/providers/mysql/transfers/vertica_to_mysql.py,sha256=L0ZMJgqE5ULwYqhVLxc6yXUyS50rhy4lSFF9reEOkGw,6974
|
14
|
+
apache_airflow_providers_mysql-6.3.2rc1.dist-info/entry_points.txt,sha256=kIbWluJZ1LX9jo9pLkqbnu6DUgYpoGKXzmSvjT5czKM,101
|
15
|
+
apache_airflow_providers_mysql-6.3.2rc1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
16
|
+
apache_airflow_providers_mysql-6.3.2rc1.dist-info/METADATA,sha256=_c_TUzZbiRFdkej8ySNJH80-NiVQQylfAwBmLHo07Ew,6486
|
17
|
+
apache_airflow_providers_mysql-6.3.2rc1.dist-info/RECORD,,
|
@@ -1,16 +0,0 @@
|
|
1
|
-
airflow/providers/mysql/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
2
|
-
airflow/providers/mysql/__init__.py,sha256=LcT9KfNPMCkh6CwXl5f0MImSzbNHTEBGFqQSjiDgnmg,1494
|
3
|
-
airflow/providers/mysql/get_provider_info.py,sha256=LNQZ8O48srWzGjS8mzLeAsa-VFGFY6ypkHK1jjr6umc,3064
|
4
|
-
airflow/providers/mysql/assets/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
5
|
-
airflow/providers/mysql/assets/mysql.py,sha256=ORHZmCa1AZAWwpF7GKH-8faqOKSohJvKtqRgfDnQRRc,1385
|
6
|
-
airflow/providers/mysql/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
7
|
-
airflow/providers/mysql/hooks/mysql.py,sha256=NH1MjDvIvihFVSO6TlnlAiARhyj_oLZ6xWmULxtx8XY,16279
|
8
|
-
airflow/providers/mysql/transfers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
9
|
-
airflow/providers/mysql/transfers/presto_to_mysql.py,sha256=XqevcxJ8i_ABZlO_mFBtQFj9zjITp22DHlZ5uCSpaLw,3458
|
10
|
-
airflow/providers/mysql/transfers/s3_to_mysql.py,sha256=ZKsm8OmbOBl7q-w2RSwSP3UMmOpvKlAVl0RW0qtDzjM,4065
|
11
|
-
airflow/providers/mysql/transfers/trino_to_mysql.py,sha256=_ECbGmZbrjITzhWPZAGD7S5oa0IxujNu23hCKJ6mLyo,3440
|
12
|
-
airflow/providers/mysql/transfers/vertica_to_mysql.py,sha256=CNk0e99Fc4amhZO31WrBCXVgzAl15HgbpV6O2y6JMFI,6950
|
13
|
-
apache_airflow_providers_mysql-6.3.1.dist-info/entry_points.txt,sha256=kIbWluJZ1LX9jo9pLkqbnu6DUgYpoGKXzmSvjT5czKM,101
|
14
|
-
apache_airflow_providers_mysql-6.3.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
15
|
-
apache_airflow_providers_mysql-6.3.1.dist-info/METADATA,sha256=OS9qFIoYT5sItaX29JQdp3xFCO3icq7kRmAABdgyk_A,6516
|
16
|
-
apache_airflow_providers_mysql-6.3.1.dist-info/RECORD,,
|
File without changes
|