apache-airflow-providers-hashicorp 4.3.1__tar.gz → 4.3.2rc1__tar.gz
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.
Potentially problematic release.
This version of apache-airflow-providers-hashicorp might be problematic. Click here for more details.
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/PKG-INFO +11 -9
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/README.rst +5 -4
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/docs/changelog.rst +16 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/docs/index.rst +5 -3
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/provider.yaml +2 -1
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/pyproject.toml +6 -5
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/src/airflow/__init__.py +1 -1
- {apache_airflow_providers_hashicorp-4.3.1/tests/unit → apache_airflow_providers_hashicorp-4.3.2rc1/src/airflow/providers}/__init__.py +1 -1
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/src/airflow/providers/hashicorp/__init__.py +1 -1
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/src/airflow/providers/hashicorp/hooks/vault.py +1 -5
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/src/airflow/providers/hashicorp/secrets/vault.py +6 -15
- apache_airflow_providers_hashicorp-4.3.2rc1/src/airflow/providers/hashicorp/version_compat.py +38 -0
- {apache_airflow_providers_hashicorp-4.3.1/src/airflow/providers → apache_airflow_providers_hashicorp-4.3.2rc1/tests/unit}/__init__.py +1 -1
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/docs/.latest-doc-only-change.txt +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/docs/commits.rst +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/docs/conf.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/docs/connections/vault.rst +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/docs/installing-providers-from-sources.rst +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/docs/integration-logos/Hashicorp-Vault.png +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/docs/redirects.txt +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/docs/secrets-backends/hashicorp-vault.rst +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/docs/security.rst +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/src/airflow/providers/hashicorp/LICENSE +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/src/airflow/providers/hashicorp/_internal_client/__init__.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/src/airflow/providers/hashicorp/_internal_client/vault_client.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/src/airflow/providers/hashicorp/get_provider_info.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/src/airflow/providers/hashicorp/hooks/__init__.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/src/airflow/providers/hashicorp/secrets/__init__.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/tests/conftest.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/tests/unit/hashicorp/__init__.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/tests/unit/hashicorp/_internal_client/__init__.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/tests/unit/hashicorp/_internal_client/test_vault_client.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/tests/unit/hashicorp/hooks/__init__.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/tests/unit/hashicorp/hooks/test_vault.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/tests/unit/hashicorp/secrets/__init__.py +0 -0
- {apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/tests/unit/hashicorp/secrets/test_vault.py +0 -0
{apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/PKG-INFO
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apache-airflow-providers-hashicorp
|
|
3
|
-
Version: 4.3.
|
|
3
|
+
Version: 4.3.2rc1
|
|
4
4
|
Summary: Provider package apache-airflow-providers-hashicorp for Apache Airflow
|
|
5
5
|
Keywords: airflow-provider,hashicorp,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:
|
|
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
|
|
@@ -18,14 +18,15 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
22
|
Classifier: Topic :: System :: Monitoring
|
|
22
|
-
Requires-Dist: apache-airflow>=2.10.
|
|
23
|
+
Requires-Dist: apache-airflow>=2.10.0rc1
|
|
23
24
|
Requires-Dist: hvac>=1.1.0
|
|
24
25
|
Requires-Dist: boto3>=1.33.0 ; extra == "boto3"
|
|
25
26
|
Requires-Dist: apache-airflow-providers-google ; extra == "google"
|
|
26
27
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
|
27
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-hashicorp/4.3.
|
|
28
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-hashicorp/4.3.
|
|
28
|
+
Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-hashicorp/4.3.2/changelog.html
|
|
29
|
+
Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-hashicorp/4.3.2
|
|
29
30
|
Project-URL: Mastodon, https://fosstodon.org/@airflow
|
|
30
31
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
|
31
32
|
Project-URL: Source Code, https://github.com/apache/airflow
|
|
@@ -58,8 +59,9 @@ Provides-Extra: google
|
|
|
58
59
|
|
|
59
60
|
Package ``apache-airflow-providers-hashicorp``
|
|
60
61
|
|
|
61
|
-
Release: ``4.3.
|
|
62
|
+
Release: ``4.3.2``
|
|
62
63
|
|
|
64
|
+
Release Date: ``|PypiReleaseDate|``
|
|
63
65
|
|
|
64
66
|
Hashicorp including `Hashicorp Vault <https://www.vaultproject.io/>`__
|
|
65
67
|
|
|
@@ -71,7 +73,7 @@ This is a provider package for ``hashicorp`` provider. All classes for this prov
|
|
|
71
73
|
are in ``airflow.providers.hashicorp`` python package.
|
|
72
74
|
|
|
73
75
|
You can find package information and changelog for the provider
|
|
74
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-hashicorp/4.3.
|
|
76
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-hashicorp/4.3.2/>`_.
|
|
75
77
|
|
|
76
78
|
Installation
|
|
77
79
|
------------
|
|
@@ -80,7 +82,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
|
|
|
80
82
|
for the minimum Airflow version supported) via
|
|
81
83
|
``pip install apache-airflow-providers-hashicorp``
|
|
82
84
|
|
|
83
|
-
The package supports the following python versions: 3.10,3.11,3.12
|
|
85
|
+
The package supports the following python versions: 3.10,3.11,3.12,3.13
|
|
84
86
|
|
|
85
87
|
Requirements
|
|
86
88
|
------------
|
|
@@ -112,5 +114,5 @@ Dependent package
|
|
|
112
114
|
==================================================================================================== ==========
|
|
113
115
|
|
|
114
116
|
The changelog for the provider package can be found in the
|
|
115
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-hashicorp/4.3.
|
|
117
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-hashicorp/4.3.2/changelog.html>`_.
|
|
116
118
|
|
{apache_airflow_providers_hashicorp-4.3.1 → apache_airflow_providers_hashicorp-4.3.2rc1}/README.rst
RENAMED
|
@@ -23,8 +23,9 @@
|
|
|
23
23
|
|
|
24
24
|
Package ``apache-airflow-providers-hashicorp``
|
|
25
25
|
|
|
26
|
-
Release: ``4.3.
|
|
26
|
+
Release: ``4.3.2``
|
|
27
27
|
|
|
28
|
+
Release Date: ``|PypiReleaseDate|``
|
|
28
29
|
|
|
29
30
|
Hashicorp including `Hashicorp Vault <https://www.vaultproject.io/>`__
|
|
30
31
|
|
|
@@ -36,7 +37,7 @@ This is a provider package for ``hashicorp`` provider. All classes for this prov
|
|
|
36
37
|
are in ``airflow.providers.hashicorp`` python package.
|
|
37
38
|
|
|
38
39
|
You can find package information and changelog for the provider
|
|
39
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-hashicorp/4.3.
|
|
40
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-hashicorp/4.3.2/>`_.
|
|
40
41
|
|
|
41
42
|
Installation
|
|
42
43
|
------------
|
|
@@ -45,7 +46,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
|
|
|
45
46
|
for the minimum Airflow version supported) via
|
|
46
47
|
``pip install apache-airflow-providers-hashicorp``
|
|
47
48
|
|
|
48
|
-
The package supports the following python versions: 3.10,3.11,3.12
|
|
49
|
+
The package supports the following python versions: 3.10,3.11,3.12,3.13
|
|
49
50
|
|
|
50
51
|
Requirements
|
|
51
52
|
------------
|
|
@@ -77,4 +78,4 @@ Dependent package
|
|
|
77
78
|
==================================================================================================== ==========
|
|
78
79
|
|
|
79
80
|
The changelog for the provider package can be found in the
|
|
80
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-hashicorp/4.3.
|
|
81
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-hashicorp/4.3.2/changelog.html>`_.
|
|
@@ -27,6 +27,22 @@
|
|
|
27
27
|
Changelog
|
|
28
28
|
---------
|
|
29
29
|
|
|
30
|
+
4.3.2
|
|
31
|
+
.....
|
|
32
|
+
|
|
33
|
+
Misc
|
|
34
|
+
~~~~
|
|
35
|
+
|
|
36
|
+
* ``Fixed mypy unreachable code errors (#53437)``
|
|
37
|
+
* ``Add Python 3.13 support for Airflow. (#46891)``
|
|
38
|
+
* ``Remove type ignore across codebase after mypy upgrade (#53243)``
|
|
39
|
+
* ``Remove upper-binding for "python-requires" (#52980)``
|
|
40
|
+
* ``Temporarily switch to use >=,< pattern instead of '~=' (#52967)``
|
|
41
|
+
* ``Move all BaseHook usages to version_compat in HashiCorp (#52812)``
|
|
42
|
+
|
|
43
|
+
.. Below changes are excluded from the changelog. Move them to
|
|
44
|
+
appropriate section above if needed. Do not delete the lines(!):
|
|
45
|
+
|
|
30
46
|
4.3.1
|
|
31
47
|
.....
|
|
32
48
|
|
|
@@ -69,7 +69,9 @@ apache-airflow-providers-hashicorp package
|
|
|
69
69
|
Hashicorp including `Hashicorp Vault <https://www.vaultproject.io/>`__
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
Release: 4.3.
|
|
72
|
+
Release: 4.3.2
|
|
73
|
+
|
|
74
|
+
Release Date: ``|PypiReleaseDate|``
|
|
73
75
|
|
|
74
76
|
Provider package
|
|
75
77
|
----------------
|
|
@@ -121,5 +123,5 @@ Downloading official packages
|
|
|
121
123
|
You can download officially released packages and verify their checksums and signatures from the
|
|
122
124
|
`Official Apache Download site <https://downloads.apache.org/airflow/providers/>`_
|
|
123
125
|
|
|
124
|
-
* `The apache-airflow-providers-hashicorp 4.3.
|
|
125
|
-
* `The apache-airflow-providers-hashicorp 4.3.
|
|
126
|
+
* `The apache-airflow-providers-hashicorp 4.3.2 sdist package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_hashicorp-4.3.2.tar.gz>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_hashicorp-4.3.2.tar.gz.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_hashicorp-4.3.2.tar.gz.sha512>`__)
|
|
127
|
+
* `The apache-airflow-providers-hashicorp 4.3.2 wheel package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_hashicorp-4.3.2-py3-none-any.whl>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_hashicorp-4.3.2-py3-none-any.whl.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_hashicorp-4.3.2-py3-none-any.whl.sha512>`__)
|
|
@@ -22,12 +22,13 @@ description: |
|
|
|
22
22
|
Hashicorp including `Hashicorp Vault <https://www.vaultproject.io/>`__
|
|
23
23
|
|
|
24
24
|
state: ready
|
|
25
|
-
source-date-epoch:
|
|
25
|
+
source-date-epoch: 1753691391
|
|
26
26
|
# Note that those versions are maintained by release manager - do not update them manually
|
|
27
27
|
# with the exception of case where other provider in sources has >= new provider version.
|
|
28
28
|
# In such case adding >= NEW_VERSION and bumping to NEW_VERSION in a provider have
|
|
29
29
|
# to be done in the same PR
|
|
30
30
|
versions:
|
|
31
|
+
- 4.3.2
|
|
31
32
|
- 4.3.1
|
|
32
33
|
- 4.3.0
|
|
33
34
|
- 4.2.0
|
|
@@ -25,7 +25,7 @@ build-backend = "flit_core.buildapi"
|
|
|
25
25
|
|
|
26
26
|
[project]
|
|
27
27
|
name = "apache-airflow-providers-hashicorp"
|
|
28
|
-
version = "4.3.
|
|
28
|
+
version = "4.3.2rc1"
|
|
29
29
|
description = "Provider package apache-airflow-providers-hashicorp for Apache Airflow"
|
|
30
30
|
readme = "README.rst"
|
|
31
31
|
authors = [
|
|
@@ -47,16 +47,17 @@ classifiers = [
|
|
|
47
47
|
"Programming Language :: Python :: 3.10",
|
|
48
48
|
"Programming Language :: Python :: 3.11",
|
|
49
49
|
"Programming Language :: Python :: 3.12",
|
|
50
|
+
"Programming Language :: Python :: 3.13",
|
|
50
51
|
"Topic :: System :: Monitoring",
|
|
51
52
|
]
|
|
52
|
-
requires-python = "
|
|
53
|
+
requires-python = ">=3.10"
|
|
53
54
|
|
|
54
55
|
# The dependencies should be modified in place in the generated file.
|
|
55
56
|
# Any change in the dependencies is preserved when the file is regenerated
|
|
56
57
|
# Make sure to run ``breeze static-checks --type update-providers-dependencies --all-files``
|
|
57
58
|
# After you modify the dependencies, and rebuild your Breeze CI image with ``breeze ci-image build``
|
|
58
59
|
dependencies = [
|
|
59
|
-
"apache-airflow>=2.10.
|
|
60
|
+
"apache-airflow>=2.10.0rc1",
|
|
60
61
|
"hvac>=1.1.0",
|
|
61
62
|
]
|
|
62
63
|
|
|
@@ -106,8 +107,8 @@ apache-airflow-providers-common-sql = {workspace = true}
|
|
|
106
107
|
apache-airflow-providers-standard = {workspace = true}
|
|
107
108
|
|
|
108
109
|
[project.urls]
|
|
109
|
-
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-hashicorp/4.3.
|
|
110
|
-
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-hashicorp/4.3.
|
|
110
|
+
"Documentation" = "https://airflow.staged.apache.org/docs/apache-airflow-providers-hashicorp/4.3.2"
|
|
111
|
+
"Changelog" = "https://airflow.staged.apache.org/docs/apache-airflow-providers-hashicorp/4.3.2/changelog.html"
|
|
111
112
|
"Bug Tracker" = "https://github.com/apache/airflow/issues"
|
|
112
113
|
"Source Code" = "https://github.com/apache/airflow"
|
|
113
114
|
"Slack Chat" = "https://s.apache.org/airflow-slack"
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
# KIND, either express or implied. See the License for the
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
|
-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
|
|
17
|
+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
# KIND, either express or implied. See the License for the
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
|
-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
|
|
17
|
+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
|
|
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
|
|
|
29
29
|
|
|
30
30
|
__all__ = ["__version__"]
|
|
31
31
|
|
|
32
|
-
__version__ = "4.3.
|
|
32
|
+
__version__ = "4.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"
|
|
@@ -28,11 +28,7 @@ from airflow.providers.hashicorp._internal_client.vault_client import (
|
|
|
28
28
|
DEFAULT_KV_ENGINE_VERSION,
|
|
29
29
|
_VaultClient,
|
|
30
30
|
)
|
|
31
|
-
|
|
32
|
-
try:
|
|
33
|
-
from airflow.sdk import BaseHook
|
|
34
|
-
except ImportError:
|
|
35
|
-
from airflow.hooks.base import BaseHook # type: ignore[attr-defined,no-redef]
|
|
31
|
+
from airflow.providers.hashicorp.version_compat import BaseHook
|
|
36
32
|
from airflow.utils.helpers import merge_dicts
|
|
37
33
|
|
|
38
34
|
if TYPE_CHECKING:
|
|
@@ -93,9 +93,9 @@ class VaultBackend(BaseSecretsBackend, LoggingMixin):
|
|
|
93
93
|
|
|
94
94
|
def __init__(
|
|
95
95
|
self,
|
|
96
|
-
connections_path: str = "connections",
|
|
97
|
-
variables_path: str = "variables",
|
|
98
|
-
config_path: str = "config",
|
|
96
|
+
connections_path: str | None = "connections",
|
|
97
|
+
variables_path: str | None = "variables",
|
|
98
|
+
config_path: str | None = "config",
|
|
99
99
|
url: str | None = None,
|
|
100
100
|
auth_type: str = "token",
|
|
101
101
|
auth_mount_point: str | None = None,
|
|
@@ -123,18 +123,9 @@ class VaultBackend(BaseSecretsBackend, LoggingMixin):
|
|
|
123
123
|
**kwargs,
|
|
124
124
|
):
|
|
125
125
|
super().__init__()
|
|
126
|
-
if connections_path is not None
|
|
127
|
-
|
|
128
|
-
else
|
|
129
|
-
self.connections_path = connections_path
|
|
130
|
-
if variables_path is not None:
|
|
131
|
-
self.variables_path = variables_path.rstrip("/")
|
|
132
|
-
else:
|
|
133
|
-
self.variables_path = variables_path
|
|
134
|
-
if config_path is not None:
|
|
135
|
-
self.config_path = config_path.rstrip("/")
|
|
136
|
-
else:
|
|
137
|
-
self.config_path = config_path
|
|
126
|
+
self.connections_path = connections_path.rstrip("/") if connections_path is not None else None
|
|
127
|
+
self.variables_path = variables_path.rstrip("/") if variables_path is not None else None
|
|
128
|
+
self.config_path = config_path.rstrip("/") if config_path is not None else None
|
|
138
129
|
self.mount_point = mount_point
|
|
139
130
|
self.kv_engine_version = kv_engine_version
|
|
140
131
|
self.vault_client = _VaultClient(
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
AIRFLOW_V_3_1_PLUS: bool = get_base_airflow_version_tuple() >= (3, 1, 0)
|
|
32
|
+
|
|
33
|
+
if AIRFLOW_V_3_1_PLUS:
|
|
34
|
+
from airflow.sdk import BaseHook
|
|
35
|
+
else:
|
|
36
|
+
from airflow.hooks.base import BaseHook # type: ignore[attr-defined,no-redef]
|
|
37
|
+
|
|
38
|
+
__all__ = ["BaseHook"]
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
# KIND, either express or implied. See the License for the
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
|
-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
|
|
17
|
+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|