apache-airflow-providers-zendesk 4.10.0__py3-none-any.whl → 4.10.1__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.
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "4.10.0"
32
+ __version__ = "4.10.1"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.10.0"
@@ -21,7 +21,10 @@ from typing import TYPE_CHECKING, Any
21
21
 
22
22
  from zenpy import Zenpy
23
23
 
24
- from airflow.hooks.base import BaseHook
24
+ try:
25
+ from airflow.sdk import BaseHook
26
+ except ImportError:
27
+ from airflow.hooks.base import BaseHook # type: ignore[attr-defined,no-redef]
25
28
 
26
29
  if TYPE_CHECKING:
27
30
  from zenpy.lib.api import BaseApi
@@ -64,13 +67,16 @@ class ZendeskHook(BaseHook):
64
67
  :return: zenpy.Zenpy client and the url for the API.
65
68
  """
66
69
  conn = self.get_connection(self.zendesk_conn_id)
67
- url = "https://" + conn.host
68
- domain = conn.host
70
+ domain = ""
71
+ url = ""
69
72
  subdomain: str | None = None
70
- if conn.host.count(".") >= 2:
71
- dot_splitted_string = conn.host.rsplit(".", 2)
72
- subdomain = dot_splitted_string[0]
73
- domain = ".".join(dot_splitted_string[1:])
73
+ if conn.host:
74
+ url = "https://" + conn.host
75
+ domain = conn.host
76
+ if conn.host.count(".") >= 2:
77
+ dot_splitted_string = conn.host.rsplit(".", 2)
78
+ subdomain = dot_splitted_string[0]
79
+ domain = ".".join(dot_splitted_string[1:])
74
80
  return Zenpy(domain=domain, subdomain=subdomain, email=conn.login, password=conn.password), url
75
81
 
76
82
  def get_conn(self) -> Zenpy:
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-zendesk
3
- Version: 4.10.0
3
+ Version: 4.10.1
4
4
  Summary: Provider package apache-airflow-providers-zendesk for Apache Airflow
5
5
  Keywords: airflow-provider,zendesk,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: ~=3.9
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
@@ -15,7 +15,6 @@ Classifier: Intended Audience :: System Administrators
15
15
  Classifier: Framework :: Apache Airflow
16
16
  Classifier: Framework :: Apache Airflow :: Provider
17
17
  Classifier: License :: OSI Approved :: Apache Software License
18
- Classifier: Programming Language :: Python :: 3.9
19
18
  Classifier: Programming Language :: Python :: 3.10
20
19
  Classifier: Programming Language :: Python :: 3.11
21
20
  Classifier: Programming Language :: Python :: 3.12
@@ -23,8 +22,8 @@ Classifier: Topic :: System :: Monitoring
23
22
  Requires-Dist: apache-airflow>=2.10.0
24
23
  Requires-Dist: zenpy>=2.0.40
25
24
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
26
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-zendesk/4.10.0/changelog.html
27
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-zendesk/4.10.0
25
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-zendesk/4.10.1/changelog.html
26
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-zendesk/4.10.1
28
27
  Project-URL: Mastodon, https://fosstodon.org/@airflow
29
28
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
30
29
  Project-URL: Source Code, https://github.com/apache/airflow
@@ -55,7 +54,7 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
55
54
 
56
55
  Package ``apache-airflow-providers-zendesk``
57
56
 
58
- Release: ``4.10.0``
57
+ Release: ``4.10.1``
59
58
 
60
59
 
61
60
  `Zendesk <https://www.zendesk.com/>`__
@@ -68,7 +67,7 @@ This is a provider package for ``zendesk`` provider. All classes for this provid
68
67
  are in ``airflow.providers.zendesk`` python package.
69
68
 
70
69
  You can find package information and changelog for the provider
71
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-zendesk/4.10.0/>`_.
70
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-zendesk/4.10.1/>`_.
72
71
 
73
72
  Installation
74
73
  ------------
@@ -77,7 +76,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
77
76
  for the minimum Airflow version supported) via
78
77
  ``pip install apache-airflow-providers-zendesk``
79
78
 
80
- The package supports the following python versions: 3.9,3.10,3.11,3.12
79
+ The package supports the following python versions: 3.10,3.11,3.12
81
80
 
82
81
  Requirements
83
82
  ------------
@@ -90,5 +89,5 @@ PIP package Version required
90
89
  ================== ==================
91
90
 
92
91
  The changelog for the provider package can be found in the
93
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-zendesk/4.10.0/changelog.html>`_.
92
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-zendesk/4.10.1/changelog.html>`_.
94
93
 
@@ -0,0 +1,9 @@
1
+ airflow/providers/zendesk/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
2
+ airflow/providers/zendesk/__init__.py,sha256=k9mx3CCw2_SPpPq_qoS92P-v-RkiAc3ejhDHINurZnU,1497
3
+ airflow/providers/zendesk/get_provider_info.py,sha256=tiXFxBArjJN1bX_waeTl6h7rJVWZ2HLv66hBQaIAT7I,1843
4
+ airflow/providers/zendesk/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
5
+ airflow/providers/zendesk/hooks/zendesk.py,sha256=4UKOdwCRGKUS5L-sy6OWAEgQGgzMXcM1Kgq9hWau2Tw,5032
6
+ apache_airflow_providers_zendesk-4.10.1.dist-info/entry_points.txt,sha256=g-reNvSxl2TqOKMKUrK2cuRy9cpsNLeHfmGh5w0nVCg,103
7
+ apache_airflow_providers_zendesk-4.10.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
8
+ apache_airflow_providers_zendesk-4.10.1.dist-info/METADATA,sha256=6LknF3tQ2SDK3crtkeHO4pHsIl0U_1RuyEsgcpd-hT4,3805
9
+ apache_airflow_providers_zendesk-4.10.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- airflow/providers/zendesk/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
2
- airflow/providers/zendesk/__init__.py,sha256=M0wNbiHj-tKWK8pT_m6YPSobUOoJ6BOaSj2amLbqALg,1497
3
- airflow/providers/zendesk/get_provider_info.py,sha256=tiXFxBArjJN1bX_waeTl6h7rJVWZ2HLv66hBQaIAT7I,1843
4
- airflow/providers/zendesk/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
5
- airflow/providers/zendesk/hooks/zendesk.py,sha256=qU_WFbZ6HpDE515Q7kERxojmTfKROyBOd1DYn8gf6ew,4844
6
- apache_airflow_providers_zendesk-4.10.0.dist-info/entry_points.txt,sha256=g-reNvSxl2TqOKMKUrK2cuRy9cpsNLeHfmGh5w0nVCg,103
7
- apache_airflow_providers_zendesk-4.10.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
8
- apache_airflow_providers_zendesk-4.10.0.dist-info/METADATA,sha256=_mF3snEeOsmdbzIuxGdh-yBBATk4HKWhou4UNP4rri4,3858
9
- apache_airflow_providers_zendesk-4.10.0.dist-info/RECORD,,