fivetran-connector-sdk 0.10.24.1__py3-none-any.whl → 0.11.13.2__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.
@@ -25,7 +25,7 @@ from fivetran_connector_sdk.protos import common_pb2
25
25
  from fivetran_connector_sdk.protos import connector_sdk_pb2
26
26
  from fivetran_connector_sdk.protos import connector_sdk_pb2_grpc
27
27
 
28
- __version__ = "0.10.24.1"
28
+ __version__ = "0.11.13.2"
29
29
 
30
30
  MAC_OS = "mac"
31
31
  WIN_OS = "windows"
@@ -39,7 +39,9 @@ LAST_VERSION_CHECK_FILE = "_last_version_check"
39
39
  ROOT_LOCATION = ".ft_sdk_connector_tester"
40
40
  OUTPUT_FILES_DIR = "files"
41
41
  REQUIREMENTS_TXT = "requirements.txt"
42
+ PYPI_PACKAGE_DETAILS_URL = "https://pypi.org/pypi/fivetran_connector_sdk/json"
42
43
  ONE_DAY_IN_SEC = 24 * 60 * 60
44
+ MAX_RETRIES = 3
43
45
 
44
46
  EXCLUDED_DIRS = ["__pycache__", "lib", "include", OUTPUT_FILES_DIR]
45
47
  EXCLUDED_PIPREQS_DIRS = ["bin,etc,include,lib,Lib,lib64,Scripts,share"]
@@ -247,16 +249,22 @@ def check_newer_version():
247
249
  if (int(time.time()) - timestamp) < ONE_DAY_IN_SEC:
248
250
  return
249
251
 
250
- # check version and save current time
251
- from get_pypi_latest_version import GetPyPiLatestVersion
252
- obtainer = GetPyPiLatestVersion()
253
- latest_version = obtainer('fivetran_connector_sdk')
254
- if __version__ < latest_version:
255
- print(f"[notice] A new release of 'fivetran-connector-sdk' is available: {latest_version}\n" +
256
- f"[notice] To update, run: pip install --upgrade fivetran-connector-sdk\n")
257
-
258
- with open(last_check_file_path, 'w') as f_out:
259
- f_out.write(f"{int(time.time())}")
252
+ for _ in range(MAX_RETRIES):
253
+ try:
254
+ # check version and save current time
255
+ response = rq.get(PYPI_PACKAGE_DETAILS_URL)
256
+ response.raise_for_status()
257
+ data = json.loads(response.text)
258
+ latest_version = data["info"]["version"]
259
+ if __version__ < latest_version:
260
+ print(f"[notice] A new release of 'fivetran-connector-sdk' is available: {latest_version}\n" +
261
+ f"[notice] To update, run: pip install --upgrade fivetran-connector-sdk\n")
262
+
263
+ with open(last_check_file_path, 'w') as f_out:
264
+ f_out.write(f"{int(time.time())}")
265
+ break
266
+ except Exception:
267
+ time.sleep(5)
260
268
 
261
269
 
262
270
  def _tester_root_dir() -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fivetran_connector_sdk
3
- Version: 0.10.24.1
3
+ Version: 0.11.13.2
4
4
  Summary: Build custom connectors on Fivetran platform
5
5
  Author-email: Fivetran <developers@fivetran.com>
6
6
  Project-URL: Homepage, https://fivetran.com/docs/connectors/connector-sdk
@@ -13,7 +13,6 @@ Description-Content-Type: text/markdown
13
13
  Requires-Dist: grpcio ==1.60.1
14
14
  Requires-Dist: grpcio-tools ==1.60.1
15
15
  Requires-Dist: requests ==2.32.3
16
- Requires-Dist: get-pypi-latest-version ==0.0.12
17
16
  Requires-Dist: pipreqs ==0.5.0
18
17
 
19
18
  # **fivetran-connector-sdk**
@@ -34,7 +33,7 @@ To learn more, see our [Connector SDK documentation](https://fivetran.com/docs/c
34
33
  pip install fivetran-connector-sdk
35
34
 
36
35
  ## **Requirements**
37
- - Python ≥3.9 and ≤3.11
36
+ - Python ≥3.9 and ≤3.12
38
37
  - Operating System:
39
38
  - Windows 10 or later
40
39
  - MacOS 13 (Ventura) or later
@@ -1,4 +1,4 @@
1
- fivetran_connector_sdk/__init__.py,sha256=8t7R-YhhGn4GvpiOIZuzlMrkgnaqjHFqk4yPHjVZhg0,57867
1
+ fivetran_connector_sdk/__init__.py,sha256=BBE4mTVCIzRVZVpxv9W1GCJYgg_Dg4uD3Q8YlgnhTMg,58165
2
2
  fivetran_connector_sdk/protos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  fivetran_connector_sdk/protos/common_pb2.py,sha256=kUwVcyZHgLigNR-KnHZn7dHrlxaMnUXqzprsRx6T72M,6831
4
4
  fivetran_connector_sdk/protos/common_pb2.pyi,sha256=S0hdIzoXyyOKD5cjiGeDDLYpQ9J3LjAvu4rCj1JvJWE,9038
@@ -6,8 +6,8 @@ fivetran_connector_sdk/protos/common_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXH
6
6
  fivetran_connector_sdk/protos/connector_sdk_pb2.py,sha256=9Ke_Ti1s0vAeXapfXT-EryrT2-TSGQb8mhs4gxTpUMk,7732
7
7
  fivetran_connector_sdk/protos/connector_sdk_pb2.pyi,sha256=FWYxRgshEF3QDYAE0TM_mv4N2gGvkxCH_uPpxnMc4oA,8406
8
8
  fivetran_connector_sdk/protos/connector_sdk_pb2_grpc.py,sha256=ZfJLp4DW7uP4pFOZ74s_wQ6tD3eIPi-08UfnLwe4tzo,7163
9
- fivetran_connector_sdk-0.10.24.1.dist-info/METADATA,sha256=WZkiXtiqeHmk-fpd52o3d8pCyYZxUUnM5v9s5C56Z6c,2906
10
- fivetran_connector_sdk-0.10.24.1.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
11
- fivetran_connector_sdk-0.10.24.1.dist-info/entry_points.txt,sha256=uQn0KPnFlQmXJfxlk0tifdNsSXWfVlnAFzNqjXZM_xM,57
12
- fivetran_connector_sdk-0.10.24.1.dist-info/top_level.txt,sha256=-_xk2MFY4psIh7jw1lJePMzFb5-vask8_ZtX-UzYWUI,23
13
- fivetran_connector_sdk-0.10.24.1.dist-info/RECORD,,
9
+ fivetran_connector_sdk-0.11.13.2.dist-info/METADATA,sha256=34Iixx6t9VBo0uwczm6yDCkNA85-rpljGQmAwtOBPg8,2858
10
+ fivetran_connector_sdk-0.11.13.2.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
11
+ fivetran_connector_sdk-0.11.13.2.dist-info/entry_points.txt,sha256=uQn0KPnFlQmXJfxlk0tifdNsSXWfVlnAFzNqjXZM_xM,57
12
+ fivetran_connector_sdk-0.11.13.2.dist-info/top_level.txt,sha256=-_xk2MFY4psIh7jw1lJePMzFb5-vask8_ZtX-UzYWUI,23
13
+ fivetran_connector_sdk-0.11.13.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.2.0)
2
+ Generator: setuptools (75.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5