apache-airflow-providers-sftp 4.10.0__tar.gz → 4.10.1__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.
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/PKG-INFO +6 -6
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/README.rst +3 -3
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/__init__.py +3 -6
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/get_provider_info.py +2 -1
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/sensors/sftp.py +5 -3
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/pyproject.toml +3 -3
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/LICENSE +0 -0
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/decorators/__init__.py +0 -0
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/decorators/sensors/__init__.py +0 -0
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/decorators/sensors/sftp.py +0 -0
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/hooks/__init__.py +0 -0
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/hooks/sftp.py +0 -0
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/operators/__init__.py +0 -0
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/operators/sftp.py +0 -0
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/sensors/__init__.py +0 -0
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/triggers/__init__.py +0 -0
- {apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/airflow/providers/sftp/triggers/sftp.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: apache-airflow-providers-sftp
|
3
|
-
Version: 4.10.
|
3
|
+
Version: 4.10.1
|
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>
|
@@ -28,8 +28,8 @@ Requires-Dist: paramiko>=2.8.0
|
|
28
28
|
Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
|
29
29
|
Requires-Dist: apache-airflow-providers-ssh ; extra == "ssh"
|
30
30
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
31
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.
|
32
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.
|
31
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.1/changelog.html
|
32
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.1
|
33
33
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
34
34
|
Project-URL: Source Code, https://github.com/apache/airflow
|
35
35
|
Project-URL: Twitter, https://twitter.com/ApacheAirflow
|
@@ -81,7 +81,7 @@ Provides-Extra: ssh
|
|
81
81
|
|
82
82
|
Package ``apache-airflow-providers-sftp``
|
83
83
|
|
84
|
-
Release: ``4.10.
|
84
|
+
Release: ``4.10.1``
|
85
85
|
|
86
86
|
|
87
87
|
`SSH File Transfer Protocol (SFTP) <https://tools.ietf.org/wg/secsh/draft-ietf-secsh-filexfer/>`__
|
@@ -94,7 +94,7 @@ This is a provider package for ``sftp`` provider. All classes for this provider
|
|
94
94
|
are in ``airflow.providers.sftp`` python package.
|
95
95
|
|
96
96
|
You can find package information and changelog for the provider
|
97
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.
|
97
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.1/>`_.
|
98
98
|
|
99
99
|
Installation
|
100
100
|
------------
|
@@ -138,4 +138,4 @@ Dependent package
|
|
138
138
|
============================================================================================================== ===============
|
139
139
|
|
140
140
|
The changelog for the provider package can be found in the
|
141
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.
|
141
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.1/changelog.html>`_.
|
@@ -42,7 +42,7 @@
|
|
42
42
|
|
43
43
|
Package ``apache-airflow-providers-sftp``
|
44
44
|
|
45
|
-
Release: ``4.10.
|
45
|
+
Release: ``4.10.1``
|
46
46
|
|
47
47
|
|
48
48
|
`SSH File Transfer Protocol (SFTP) <https://tools.ietf.org/wg/secsh/draft-ietf-secsh-filexfer/>`__
|
@@ -55,7 +55,7 @@ This is a provider package for ``sftp`` provider. All classes for this provider
|
|
55
55
|
are in ``airflow.providers.sftp`` python package.
|
56
56
|
|
57
57
|
You can find package information and changelog for the provider
|
58
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.
|
58
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.1/>`_.
|
59
59
|
|
60
60
|
Installation
|
61
61
|
------------
|
@@ -99,4 +99,4 @@ Dependent package
|
|
99
99
|
============================================================================================================== ===============
|
100
100
|
|
101
101
|
The changelog for the provider package can be found in the
|
102
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.
|
102
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.1/changelog.html>`_.
|
@@ -25,14 +25,11 @@ from __future__ import annotations
|
|
25
25
|
|
26
26
|
import packaging.version
|
27
27
|
|
28
|
-
|
28
|
+
from airflow import __version__ as airflow_version
|
29
29
|
|
30
|
-
|
30
|
+
__all__ = ["__version__"]
|
31
31
|
|
32
|
-
|
33
|
-
from airflow import __version__ as airflow_version
|
34
|
-
except ImportError:
|
35
|
-
from airflow.version import version as airflow_version
|
32
|
+
__version__ = "4.10.1"
|
36
33
|
|
37
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
38
35
|
"2.7.0"
|
@@ -28,8 +28,9 @@ def get_provider_info():
|
|
28
28
|
"name": "SFTP",
|
29
29
|
"description": "`SSH File Transfer Protocol (SFTP) <https://tools.ietf.org/wg/secsh/draft-ietf-secsh-filexfer/>`__\n",
|
30
30
|
"state": "ready",
|
31
|
-
"source-date-epoch":
|
31
|
+
"source-date-epoch": 1716289065,
|
32
32
|
"versions": [
|
33
|
+
"4.10.1",
|
33
34
|
"4.10.0",
|
34
35
|
"4.9.1",
|
35
36
|
"4.9.0",
|
@@ -30,7 +30,7 @@ from airflow.exceptions import AirflowException, AirflowSkipException
|
|
30
30
|
from airflow.providers.sftp.hooks.sftp import SFTPHook
|
31
31
|
from airflow.providers.sftp.triggers.sftp import SFTPTrigger
|
32
32
|
from airflow.sensors.base import BaseSensorOperator, PokeReturnValue
|
33
|
-
from airflow.utils.timezone import convert_to_utc
|
33
|
+
from airflow.utils.timezone import convert_to_utc, parse
|
34
34
|
|
35
35
|
if TYPE_CHECKING:
|
36
36
|
from airflow.utils.context import Context
|
@@ -57,7 +57,7 @@ class SFTPSensor(BaseSensorOperator):
|
|
57
57
|
*,
|
58
58
|
path: str,
|
59
59
|
file_pattern: str = "",
|
60
|
-
newer_than: datetime | None = None,
|
60
|
+
newer_than: datetime | str | None = None,
|
61
61
|
sftp_conn_id: str = "sftp_default",
|
62
62
|
python_callable: Callable | None = None,
|
63
63
|
op_args: list | None = None,
|
@@ -70,7 +70,7 @@ class SFTPSensor(BaseSensorOperator):
|
|
70
70
|
self.file_pattern = file_pattern
|
71
71
|
self.hook: SFTPHook | None = None
|
72
72
|
self.sftp_conn_id = sftp_conn_id
|
73
|
-
self.newer_than: datetime | None = newer_than
|
73
|
+
self.newer_than: datetime | str | None = newer_than
|
74
74
|
self.python_callable: Callable | None = python_callable
|
75
75
|
self.op_args = op_args or []
|
76
76
|
self.op_kwargs = op_kwargs or {}
|
@@ -105,6 +105,8 @@ class SFTPSensor(BaseSensorOperator):
|
|
105
105
|
continue
|
106
106
|
|
107
107
|
if self.newer_than:
|
108
|
+
if isinstance(self.newer_than, str):
|
109
|
+
self.newer_than = parse(self.newer_than)
|
108
110
|
_mod_time = convert_to_utc(datetime.strptime(mod_time, "%Y%m%d%H%M%S"))
|
109
111
|
_newer_than = convert_to_utc(self.newer_than)
|
110
112
|
if _newer_than <= _mod_time:
|
{apache_airflow_providers_sftp-4.10.0 → apache_airflow_providers_sftp-4.10.1}/pyproject.toml
RENAMED
@@ -28,7 +28,7 @@ build-backend = "flit_core.buildapi"
|
|
28
28
|
|
29
29
|
[project]
|
30
30
|
name = "apache-airflow-providers-sftp"
|
31
|
-
version = "4.10.
|
31
|
+
version = "4.10.1"
|
32
32
|
description = "Provider package apache-airflow-providers-sftp for Apache Airflow"
|
33
33
|
readme = "README.rst"
|
34
34
|
authors = [
|
@@ -63,8 +63,8 @@ dependencies = [
|
|
63
63
|
]
|
64
64
|
|
65
65
|
[project.urls]
|
66
|
-
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.
|
67
|
-
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.
|
66
|
+
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.1"
|
67
|
+
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-sftp/4.10.1/changelog.html"
|
68
68
|
"Bug Tracker" = "https://github.com/apache/airflow/issues"
|
69
69
|
"Source Code" = "https://github.com/apache/airflow"
|
70
70
|
"Slack Chat" = "https://s.apache.org/airflow-slack"
|
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
|