apache-airflow-providers-git 0.0.2rc2__py3-none-any.whl → 0.0.3__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/hooks/git.py +3 -2
- {apache_airflow_providers_git-0.0.2rc2.dist-info → apache_airflow_providers_git-0.0.3.dist-info}/METADATA +7 -7
- apache_airflow_providers_git-0.0.3.dist-info/RECORD +11 -0
- apache_airflow_providers_git-0.0.2rc2.dist-info/RECORD +0 -11
- {apache_airflow_providers_git-0.0.2rc2.dist-info → apache_airflow_providers_git-0.0.3.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_git-0.0.2rc2.dist-info → apache_airflow_providers_git-0.0.3.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.3"
|
|
33
33
|
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
|
35
35
|
"3.0.0"
|
|
@@ -48,7 +48,7 @@ class GitHook(BaseHook):
|
|
|
48
48
|
return {
|
|
49
49
|
"hidden_fields": ["schema"],
|
|
50
50
|
"relabeling": {
|
|
51
|
-
"login": "Username",
|
|
51
|
+
"login": "Username or Access Token name",
|
|
52
52
|
"host": "Repository URL",
|
|
53
53
|
"password": "Access Token (optional)",
|
|
54
54
|
},
|
|
@@ -68,6 +68,7 @@ class GitHook(BaseHook):
|
|
|
68
68
|
super().__init__()
|
|
69
69
|
connection = self.get_connection(git_conn_id)
|
|
70
70
|
self.repo_url = repo_url or connection.host
|
|
71
|
+
self.user_name = connection.login or "user"
|
|
71
72
|
self.auth_token = connection.password
|
|
72
73
|
self.private_key = connection.extra_dejson.get("private_key")
|
|
73
74
|
self.key_file = connection.extra_dejson.get("key_file")
|
|
@@ -89,7 +90,7 @@ class GitHook(BaseHook):
|
|
|
89
90
|
if not isinstance(self.repo_url, str):
|
|
90
91
|
return
|
|
91
92
|
if self.auth_token and self.repo_url.startswith("https://"):
|
|
92
|
-
self.repo_url = self.repo_url.replace("https://", f"https://{self.auth_token}@")
|
|
93
|
+
self.repo_url = self.repo_url.replace("https://", f"https://{self.user_name}:{self.auth_token}@")
|
|
93
94
|
elif not self.repo_url.startswith("git@") or not self.repo_url.startswith("https://"):
|
|
94
95
|
self.repo_url = os.path.expanduser(self.repo_url)
|
|
95
96
|
|
|
@@ -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.3
|
|
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.10
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
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.apache.org/docs/apache-airflow-providers-git/0.0.
|
|
27
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-git/0.0.
|
|
26
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-git/0.0.3/changelog.html
|
|
27
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-git/0.0.3
|
|
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,7 +55,7 @@ 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.3``
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
`Distributed version control system (GIT) <https://git-scm.com/>`__
|
|
@@ -68,7 +68,7 @@ This is a provider package for ``git`` provider. All classes for this provider p
|
|
|
68
68
|
are in ``airflow.providers.git`` python package.
|
|
69
69
|
|
|
70
70
|
You can find package information and changelog for the provider
|
|
71
|
-
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.3/>`_.
|
|
72
72
|
|
|
73
73
|
Installation
|
|
74
74
|
------------
|
|
@@ -90,5 +90,5 @@ PIP package Version required
|
|
|
90
90
|
================== ==================
|
|
91
91
|
|
|
92
92
|
The changelog for the provider package can be found in the
|
|
93
|
-
`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.3/changelog.html>`_.
|
|
94
94
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
airflow/providers/git/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
|
2
|
+
airflow/providers/git/__init__.py,sha256=KJqe5O7YTh9UTk5ML8aAb-dW8eiPUHUNzu5Yz8RQSAw,1490
|
|
3
|
+
airflow/providers/git/get_provider_info.py,sha256=6xC_Jru3CMrhO7r5aX03J4HR6Jl62rp9BWVcLKFjxQQ,1809
|
|
4
|
+
airflow/providers/git/bundles/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
5
|
+
airflow/providers/git/bundles/git.py,sha256=vYerC80phtGd26P2Jv8VxxL3kj4liW8UM2mbgdOELZI,9599
|
|
6
|
+
airflow/providers/git/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
7
|
+
airflow/providers/git/hooks/git.py,sha256=BUJVHltC8rcCuujpT5vdk2baZRzacGPfsk0sL-VDyro,3998
|
|
8
|
+
apache_airflow_providers_git-0.0.3.dist-info/entry_points.txt,sha256=k9QR9MAaAm9yDsRDBIK3QOt5Fos3fBCqCngNFPaJnKs,99
|
|
9
|
+
apache_airflow_providers_git-0.0.3.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
10
|
+
apache_airflow_providers_git-0.0.3.dist-info/METADATA,sha256=rweQRPbar_Ib1JDR2jRGruh4Ui021faWP-znMO3n2bQ,3839
|
|
11
|
+
apache_airflow_providers_git-0.0.3.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
airflow/providers/git/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
|
2
|
-
airflow/providers/git/__init__.py,sha256=jllQ1mZczFIYO53Gb9mCS8ySzj6s5yrgjtCWQv_3198,1490
|
|
3
|
-
airflow/providers/git/get_provider_info.py,sha256=6xC_Jru3CMrhO7r5aX03J4HR6Jl62rp9BWVcLKFjxQQ,1809
|
|
4
|
-
airflow/providers/git/bundles/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
5
|
-
airflow/providers/git/bundles/git.py,sha256=vYerC80phtGd26P2Jv8VxxL3kj4liW8UM2mbgdOELZI,9599
|
|
6
|
-
airflow/providers/git/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
7
|
-
airflow/providers/git/hooks/git.py,sha256=RIhvVfd3J-GW9itJ0V1tXeEQSMxZFsMqqmLZGiUBfM4,3908
|
|
8
|
-
apache_airflow_providers_git-0.0.2rc2.dist-info/entry_points.txt,sha256=k9QR9MAaAm9yDsRDBIK3QOt5Fos3fBCqCngNFPaJnKs,99
|
|
9
|
-
apache_airflow_providers_git-0.0.2rc2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
10
|
-
apache_airflow_providers_git-0.0.2rc2.dist-info/METADATA,sha256=eb1LZ8-MjKUJyB11vh0BiXhkpQaXmyv5M4uaxv5JFtE,3845
|
|
11
|
-
apache_airflow_providers_git-0.0.2rc2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|