apache-airflow-providers-git 0.0.6rc1__py3-none-any.whl → 0.0.7__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.
Potentially problematic release.
This version of apache-airflow-providers-git might be problematic. Click here for more details.
- airflow/providers/git/__init__.py +1 -1
- airflow/providers/git/bundles/git.py +7 -2
- {apache_airflow_providers_git-0.0.6rc1.dist-info → apache_airflow_providers_git-0.0.7.dist-info}/METADATA +8 -9
- apache_airflow_providers_git-0.0.7.dist-info/RECORD +12 -0
- apache_airflow_providers_git-0.0.6rc1.dist-info/RECORD +0 -12
- {apache_airflow_providers_git-0.0.6rc1.dist-info → apache_airflow_providers_git-0.0.7.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_git-0.0.6rc1.dist-info → apache_airflow_providers_git-0.0.7.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__ = "0.0.
|
|
32
|
+
__version__ = "0.0.7"
|
|
33
33
|
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
|
35
35
|
"3.0.0"
|
|
@@ -80,7 +80,7 @@ class GitDagBundle(BaseDagBundle):
|
|
|
80
80
|
self.hook: GitHook | None = None
|
|
81
81
|
try:
|
|
82
82
|
self.hook = GitHook(git_conn_id=git_conn_id or "git_default")
|
|
83
|
-
except
|
|
83
|
+
except Exception as e:
|
|
84
84
|
self._log.warning("Could not create GitHook", conn_id=git_conn_id, exc=e)
|
|
85
85
|
|
|
86
86
|
if not repo_url and self.hook and self.hook.repo_url:
|
|
@@ -93,6 +93,7 @@ class GitDagBundle(BaseDagBundle):
|
|
|
93
93
|
with cm:
|
|
94
94
|
self._clone_bare_repo_if_required()
|
|
95
95
|
self._ensure_version_in_bare_repo()
|
|
96
|
+
self.bare_repo.close()
|
|
96
97
|
|
|
97
98
|
self._clone_repo_if_required()
|
|
98
99
|
self.repo.git.checkout(self.tracking_ref)
|
|
@@ -104,6 +105,7 @@ class GitDagBundle(BaseDagBundle):
|
|
|
104
105
|
self.repo.head.reset(index=True, working_tree=True)
|
|
105
106
|
else:
|
|
106
107
|
self.refresh()
|
|
108
|
+
self.repo.close()
|
|
107
109
|
|
|
108
110
|
def initialize(self) -> None:
|
|
109
111
|
if not self.repo_url:
|
|
@@ -161,7 +163,8 @@ class GitDagBundle(BaseDagBundle):
|
|
|
161
163
|
)
|
|
162
164
|
|
|
163
165
|
def get_current_version(self) -> str:
|
|
164
|
-
|
|
166
|
+
with self.repo as repo:
|
|
167
|
+
return repo.head.commit.hexsha
|
|
165
168
|
|
|
166
169
|
@property
|
|
167
170
|
def path(self) -> Path:
|
|
@@ -184,6 +187,7 @@ class GitDagBundle(BaseDagBundle):
|
|
|
184
187
|
cm = self.bare_repo.git.custom_environment(GIT_SSH_COMMAND=cmd)
|
|
185
188
|
with cm:
|
|
186
189
|
self.bare_repo.remotes.origin.fetch(refspecs)
|
|
190
|
+
self.bare_repo.close()
|
|
187
191
|
|
|
188
192
|
def refresh(self) -> None:
|
|
189
193
|
if self.version:
|
|
@@ -202,6 +206,7 @@ class GitDagBundle(BaseDagBundle):
|
|
|
202
206
|
else:
|
|
203
207
|
target = self.tracking_ref
|
|
204
208
|
self.repo.head.reset(target, index=True, working_tree=True)
|
|
209
|
+
self.repo.close()
|
|
205
210
|
|
|
206
211
|
@staticmethod
|
|
207
212
|
def _convert_git_ssh_url_to_https(url: str) -> str:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apache-airflow-providers-git
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.7
|
|
4
4
|
Summary: Provider package apache-airflow-providers-git for Apache Airflow
|
|
5
5
|
Keywords: airflow-provider,git,airflow,integration
|
|
6
6
|
Author-email: Apache Software Foundation <dev@airflow.apache.org>
|
|
@@ -20,11 +20,11 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
22
|
Classifier: Topic :: System :: Monitoring
|
|
23
|
-
Requires-Dist: apache-airflow>=3.0.
|
|
23
|
+
Requires-Dist: apache-airflow>=3.0.0
|
|
24
24
|
Requires-Dist: GitPython>=3.1.44
|
|
25
25
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
|
26
|
-
Project-URL: Changelog, https://airflow.
|
|
27
|
-
Project-URL: Documentation, https://airflow.
|
|
26
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-git/0.0.7/changelog.html
|
|
27
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-git/0.0.7
|
|
28
28
|
Project-URL: Mastodon, https://fosstodon.org/@airflow
|
|
29
29
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
|
30
30
|
Project-URL: Source Code, https://github.com/apache/airflow
|
|
@@ -55,9 +55,8 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
|
|
|
55
55
|
|
|
56
56
|
Package ``apache-airflow-providers-git``
|
|
57
57
|
|
|
58
|
-
Release: ``0.0.
|
|
58
|
+
Release: ``0.0.7``
|
|
59
59
|
|
|
60
|
-
Release Date: ``|PypiReleaseDate|``
|
|
61
60
|
|
|
62
61
|
`Distributed version control system (GIT) <https://git-scm.com/>`__
|
|
63
62
|
|
|
@@ -69,12 +68,12 @@ This is a provider package for ``git`` provider. All classes for this provider p
|
|
|
69
68
|
are in ``airflow.providers.git`` python package.
|
|
70
69
|
|
|
71
70
|
You can find package information and changelog for the provider
|
|
72
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-git/0.0.
|
|
71
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-git/0.0.7/>`_.
|
|
73
72
|
|
|
74
73
|
Installation
|
|
75
74
|
------------
|
|
76
75
|
|
|
77
|
-
You can install this package on top of an existing Airflow
|
|
76
|
+
You can install this package on top of an existing Airflow installation (see ``Requirements`` below
|
|
78
77
|
for the minimum Airflow version supported) via
|
|
79
78
|
``pip install apache-airflow-providers-git``
|
|
80
79
|
|
|
@@ -91,5 +90,5 @@ PIP package Version required
|
|
|
91
90
|
================== ==================
|
|
92
91
|
|
|
93
92
|
The changelog for the provider package can be found in the
|
|
94
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-git/0.0.
|
|
93
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-git/0.0.7/changelog.html>`_.
|
|
95
94
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
airflow/providers/git/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
|
2
|
+
airflow/providers/git/__init__.py,sha256=PGhhbAHPQvOhVM9USF76NYIAD9fUSk-HOzrAui4jXZ8,1490
|
|
3
|
+
airflow/providers/git/get_provider_info.py,sha256=6xC_Jru3CMrhO7r5aX03J4HR6Jl62rp9BWVcLKFjxQQ,1809
|
|
4
|
+
airflow/providers/git/version_compat.py,sha256=wu5478Lfl32vjsmb_tx5zQBL2aVynAVK26XqF-5Wou0,1827
|
|
5
|
+
airflow/providers/git/bundles/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
6
|
+
airflow/providers/git/bundles/git.py,sha256=xl849YoRC7pFiFNXC-ZeEvnCx8NVmxf3g8o2_k1hdGs,10558
|
|
7
|
+
airflow/providers/git/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
8
|
+
airflow/providers/git/hooks/git.py,sha256=UxH-hPlmX1VphZey1svhJYUhgK1zEWsryh363k_s008,4016
|
|
9
|
+
apache_airflow_providers_git-0.0.7.dist-info/entry_points.txt,sha256=k9QR9MAaAm9yDsRDBIK3QOt5Fos3fBCqCngNFPaJnKs,99
|
|
10
|
+
apache_airflow_providers_git-0.0.7.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
11
|
+
apache_airflow_providers_git-0.0.7.dist-info/METADATA,sha256=R8nxgY4ICfFv2iwYPyt-xOTIDh2iXp9pT4iHyV_KR9I,3840
|
|
12
|
+
apache_airflow_providers_git-0.0.7.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
airflow/providers/git/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
|
2
|
-
airflow/providers/git/__init__.py,sha256=nZvpEfMdtah87ojCio8Yk-ttLb4v8DncR-tTsaUtFDM,1490
|
|
3
|
-
airflow/providers/git/get_provider_info.py,sha256=6xC_Jru3CMrhO7r5aX03J4HR6Jl62rp9BWVcLKFjxQQ,1809
|
|
4
|
-
airflow/providers/git/version_compat.py,sha256=wu5478Lfl32vjsmb_tx5zQBL2aVynAVK26XqF-5Wou0,1827
|
|
5
|
-
airflow/providers/git/bundles/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
6
|
-
airflow/providers/git/bundles/git.py,sha256=hy2G58YzgLVUPxYVMMssqnOGboVpaBFdzsPRGQevcU4,10400
|
|
7
|
-
airflow/providers/git/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
8
|
-
airflow/providers/git/hooks/git.py,sha256=UxH-hPlmX1VphZey1svhJYUhgK1zEWsryh363k_s008,4016
|
|
9
|
-
apache_airflow_providers_git-0.0.6rc1.dist-info/entry_points.txt,sha256=k9QR9MAaAm9yDsRDBIK3QOt5Fos3fBCqCngNFPaJnKs,99
|
|
10
|
-
apache_airflow_providers_git-0.0.6rc1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
11
|
-
apache_airflow_providers_git-0.0.6rc1.dist-info/METADATA,sha256=DY0kzI3gApeyGY6joSdJ43CQDfvePipKO3bI3wRP5Nw,3898
|
|
12
|
-
apache_airflow_providers_git-0.0.6rc1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|