apache-airflow-providers-sftp 5.4.0__py3-none-any.whl → 5.4.1rc1__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-sftp might be problematic. Click here for more details.

@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "5.4.0"
32
+ __version__ = "5.4.1"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.10.0"
@@ -144,24 +144,25 @@ class SFTPOperator(BaseOperator):
144
144
 
145
145
  file_msg = None
146
146
  try:
147
+ if self.remote_host is not None:
148
+ self.log.info(
149
+ "remote_host is provided explicitly. "
150
+ "It will replace the remote_host which was defined "
151
+ "in sftp_hook or predefined in connection of ssh_conn_id."
152
+ )
153
+
147
154
  if self.ssh_conn_id:
148
155
  if self.sftp_hook and isinstance(self.sftp_hook, SFTPHook):
149
156
  self.log.info("ssh_conn_id is ignored when sftp_hook is provided.")
150
157
  else:
151
158
  self.log.info("sftp_hook not provided or invalid. Trying ssh_conn_id to create SFTPHook.")
152
- self.sftp_hook = SFTPHook(ssh_conn_id=self.ssh_conn_id)
159
+ self.sftp_hook = SFTPHook(
160
+ ssh_conn_id=self.ssh_conn_id, remote_host=self.remote_host or ""
161
+ )
153
162
 
154
163
  if not self.sftp_hook:
155
164
  raise AirflowException("Cannot operate without sftp_hook or ssh_conn_id.")
156
165
 
157
- if self.remote_host is not None:
158
- self.log.info(
159
- "remote_host is provided explicitly. "
160
- "It will replace the remote_host which was defined "
161
- "in sftp_hook or predefined in connection of ssh_conn_id."
162
- )
163
- self.sftp_hook.remote_host = self.remote_host
164
-
165
166
  if self.operation.lower() in (SFTPOperation.GET, SFTPOperation.PUT):
166
167
  for _local_filepath, _remote_filepath in zip(local_filepath_array, remote_filepath_array):
167
168
  if self.operation.lower() == SFTPOperation.GET:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-sftp
3
- Version: 5.4.0
3
+ Version: 5.4.1rc1
4
4
  Summary: Provider package apache-airflow-providers-sftp for Apache Airflow
5
5
  Keywords: airflow-provider,sftp,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
@@ -20,15 +20,15 @@ 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>=2.10.0
24
- Requires-Dist: apache-airflow-providers-ssh>=4.0.0
23
+ Requires-Dist: apache-airflow>=2.10.0rc1
24
+ Requires-Dist: apache-airflow-providers-ssh>=4.0.0rc1
25
25
  Requires-Dist: paramiko>=2.9.0,<4.0.0
26
26
  Requires-Dist: asyncssh>=2.12.0
27
27
  Requires-Dist: apache-airflow-providers-common-compat ; extra == "common-compat"
28
28
  Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
29
29
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
30
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-sftp/5.4.0/changelog.html
31
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-sftp/5.4.0
30
+ Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-sftp/5.4.1/changelog.html
31
+ Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-sftp/5.4.1
32
32
  Project-URL: Mastodon, https://fosstodon.org/@airflow
33
33
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
34
34
  Project-URL: Source Code, https://github.com/apache/airflow
@@ -61,7 +61,7 @@ Provides-Extra: openlineage
61
61
 
62
62
  Package ``apache-airflow-providers-sftp``
63
63
 
64
- Release: ``5.4.0``
64
+ Release: ``5.4.1``
65
65
 
66
66
 
67
67
  `SSH File Transfer Protocol (SFTP) <https://tools.ietf.org/wg/secsh/draft-ietf-secsh-filexfer/>`__
@@ -74,7 +74,7 @@ This is a provider package for ``sftp`` provider. All classes for this provider
74
74
  are in ``airflow.providers.sftp`` python package.
75
75
 
76
76
  You can find package information and changelog for the provider
77
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-sftp/5.4.0/>`_.
77
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-sftp/5.4.1/>`_.
78
78
 
79
79
  Installation
80
80
  ------------
@@ -118,6 +118,16 @@ Dependent package
118
118
  `apache-airflow-providers-ssh <https://airflow.apache.org/docs/apache-airflow-providers-ssh>`_ ``ssh``
119
119
  ================================================================================================================== =================
120
120
 
121
+ Optional dependencies
122
+ ----------------------
123
+
124
+ ================= ==========================================
125
+ Extra Dependencies
126
+ ================= ==========================================
127
+ ``common.compat`` ``apache-airflow-providers-common-compat``
128
+ ``openlineage`` ``apache-airflow-providers-openlineage``
129
+ ================= ==========================================
130
+
121
131
  The changelog for the provider package can be found in the
122
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-sftp/5.4.0/changelog.html>`_.
132
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-sftp/5.4.1/changelog.html>`_.
123
133
 
@@ -1,5 +1,5 @@
1
1
  airflow/providers/sftp/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
2
- airflow/providers/sftp/__init__.py,sha256=2_2-3dIZSX-De7bo1jjbJcecfQsOTgJNV-ZuACXOllU,1493
2
+ airflow/providers/sftp/__init__.py,sha256=76hvqk29Ph0E6KfFF4Kynyg8Q4PEFfwZhfE0F03cKwk,1493
3
3
  airflow/providers/sftp/exceptions.py,sha256=Gz4mk1YkBUFE1ridk-C7dcu9Y3JPdkp5MUyQOwWOWyY,1011
4
4
  airflow/providers/sftp/get_provider_info.py,sha256=_IqUGQ-rKpZsSAsXdTsGYzfzJ3X57duhn-2b0-rFOz0,2905
5
5
  airflow/providers/sftp/version_compat.py,sha256=zRB-sKs65ic8Gl2QARSOaJ8ScjIRw58pt0kR6nOQPPY,2113
@@ -9,12 +9,12 @@ airflow/providers/sftp/decorators/sensors/sftp.py,sha256=O-rkLJ_-B49aRZ5W9vpHcCe
9
9
  airflow/providers/sftp/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
10
10
  airflow/providers/sftp/hooks/sftp.py,sha256=5qpttnQVZ2_2ZsS_u72-ugy66GOC97CzcSSzyiMj7c8,34243
11
11
  airflow/providers/sftp/operators/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
12
- airflow/providers/sftp/operators/sftp.py,sha256=exoHmvnsjvefFJF4OatWBexdBm30khjwRvLvhS6Yv08,13163
12
+ airflow/providers/sftp/operators/sftp.py,sha256=xOXEq0Wu6jQFyMc96pbhfgNvcjrUii7PXS8mfv65X58,13183
13
13
  airflow/providers/sftp/sensors/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
14
14
  airflow/providers/sftp/sensors/sftp.py,sha256=XXtwu3PzzYNcNlI-xhHhTT2SmIlIrA3r4NkDbYpW3Z0,9040
15
15
  airflow/providers/sftp/triggers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
16
16
  airflow/providers/sftp/triggers/sftp.py,sha256=e_zdgyg2Y9T2bvCP57a2GZN0rBLW_R_t0V6kquvV2GY,6164
17
- apache_airflow_providers_sftp-5.4.0.dist-info/entry_points.txt,sha256=Fa1IkUHV6qnIuwLd0U7tKoklbLXXVrbB2hhG6N7Q-zo,100
18
- apache_airflow_providers_sftp-5.4.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
19
- apache_airflow_providers_sftp-5.4.0.dist-info/METADATA,sha256=Pls5hxOYJjgMnqwQUzPXIFDAs9Am0YZCkUU-_3GDj8M,5694
20
- apache_airflow_providers_sftp-5.4.0.dist-info/RECORD,,
17
+ apache_airflow_providers_sftp-5.4.1rc1.dist-info/entry_points.txt,sha256=Fa1IkUHV6qnIuwLd0U7tKoklbLXXVrbB2hhG6N7Q-zo,100
18
+ apache_airflow_providers_sftp-5.4.1rc1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
19
+ apache_airflow_providers_sftp-5.4.1rc1.dist-info/METADATA,sha256=S3VUYR9e_pPYydBZzd01nCV3pCqhSBhElpYQcW6rkFA,6104
20
+ apache_airflow_providers_sftp-5.4.1rc1.dist-info/RECORD,,