airbyte-source-microsoft-dataverse 0.1.20__tar.gz → 0.1.22__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.
@@ -1,8 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: airbyte-source-microsoft-dataverse
3
- Version: 0.1.20
3
+ Version: 0.1.22
4
4
  Summary: Source implementation for Microsoft Dataverse.
5
- Home-page: https://airbyte.com
6
5
  License: MIT
7
6
  Author: Airbyte
8
7
  Author-email: contact@airbyte.io
@@ -14,6 +13,7 @@ Classifier: Programming Language :: Python :: 3.10
14
13
  Classifier: Programming Language :: Python :: 3.11
15
14
  Requires-Dist: airbyte-cdk (==0.80.0)
16
15
  Project-URL: Documentation, https://docs.airbyte.com/integrations/sources/microsoft-dataverse
16
+ Project-URL: Homepage, https://airbyte.com
17
17
  Project-URL: Repository, https://github.com/airbytehq/airbyte
18
18
  Description-Content-Type: text/markdown
19
19
 
@@ -5,7 +5,7 @@ requires = [
5
5
  build-backend = "poetry.core.masonry.api"
6
6
 
7
7
  [tool.poetry]
8
- version = "0.1.20"
8
+ version = "0.1.22"
9
9
  name = "airbyte-source-microsoft-dataverse"
10
10
  description = "Source implementation for Microsoft Dataverse."
11
11
  authors = [
@@ -29,5 +29,10 @@ source-microsoft-dataverse = "source_microsoft_dataverse.run:run"
29
29
 
30
30
  [tool.poetry.group.dev.dependencies]
31
31
  requests-mock = "^1.9.3"
32
- pytest = "^6.1"
32
+ pytest = "^8.0"
33
33
  pytest-mock = "^3.6.1"
34
+
35
+ [tool.poe]
36
+ include = [
37
+ "${POE_GIT_DIR}/poe-tasks/poetry-connector-tasks.toml",
38
+ ]
@@ -6,6 +6,7 @@ from enum import Enum
6
6
  from typing import Any, Mapping, MutableMapping, Optional
7
7
 
8
8
  import requests
9
+
9
10
  from airbyte_cdk.sources.streams.http.requests_native_auth.oauth import Oauth2Authenticator
10
11
 
11
12
 
@@ -25,7 +26,6 @@ class MicrosoftOauth2Authenticator(Oauth2Authenticator):
25
26
 
26
27
 
27
28
  class AirbyteType(Enum):
28
-
29
29
  String = {"type": ["null", "string"]}
30
30
  Boolean = {"type": ["null", "boolean"]}
31
31
  Timestamp = {"type": ["null", "string"], "format": "date-time", "airbyte_type": "timestamp_with_timezone"}
@@ -34,7 +34,6 @@ class AirbyteType(Enum):
34
34
 
35
35
 
36
36
  class DataverseType(Enum):
37
-
38
37
  String = AirbyteType.String
39
38
  Uniqueidentifier = AirbyteType.String
40
39
  DateTime = AirbyteType.Timestamp
@@ -8,13 +8,13 @@ from typing import Any, Iterable, Mapping, MutableMapping, Optional
8
8
  from urllib import parse
9
9
 
10
10
  import requests
11
+
11
12
  from airbyte_cdk.sources.streams import IncrementalMixin
12
13
  from airbyte_cdk.sources.streams.http import HttpStream
13
14
 
14
15
 
15
16
  # Basic full refresh stream
16
17
  class MicrosoftDataverseStream(HttpStream, ABC):
17
-
18
18
  # Base url will be set by init(), using information provided by the user through config input
19
19
  url_base = ""
20
20
  primary_key = ""
@@ -97,7 +97,6 @@ class MicrosoftDataverseStream(HttpStream, ABC):
97
97
 
98
98
  # Basic incremental stream
99
99
  class IncrementalMicrosoftDataverseStream(MicrosoftDataverseStream, IncrementalMixin, ABC):
100
-
101
100
  delta_token_field = "$deltatoken"
102
101
  state_checkpoint_interval = None # For now we just use the change tracking as state, and it is only emitted on last page
103
102