fivetran-connector-sdk 0.6.6.1__py3-none-any.whl → 0.6.6.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.
@@ -29,7 +29,7 @@ UPLOAD_FILENAME = "code.zip"
29
29
  ROOT_LOCATION = ".ft_sdk_connector_tester"
30
30
  OUTPUT_FILES_DIR = "files"
31
31
 
32
- EXCLUDED_FILES = ['.DS_Store', UPLOAD_FILENAME]
32
+ EXCLUDED_DIRS = ["__pycache__", "lib", "include", OUTPUT_FILES_DIR]
33
33
 
34
34
  DEBUGGING = False
35
35
  TABLES = {}
@@ -341,19 +341,6 @@ class Connector(connector_sdk_pb2_grpc.SourceConnectorServicer):
341
341
  arcname = os.path.relpath(file_path, project_path)
342
342
  zipf.write(file_path, arcname)
343
343
 
344
- # with ZipFile(upload_filepath, 'w', ZIP_DEFLATED) as zip_file:
345
- # for root, folders, files in os.walk(project_path):
346
- # for folder_name in folders:
347
- # if folder_name == OUTPUT_FILES_DIR: continue
348
- # absolute_path = os.path.join(root, folder_name)
349
- # relative_path = absolute_path.replace(project_path + os.sep, '')
350
- # zip_file.write(absolute_path, relative_path)
351
- # for file in files:
352
- # if file in EXCLUDED_FILES: continue
353
- # absolute_path = os.path.join(root, file)
354
- # relative_path = absolute_path.replace(project_path + os.sep, '')
355
- # zip_file.write(absolute_path, relative_path)
356
- #
357
344
  return upload_filepath
358
345
 
359
346
  def __dir_walker(self, top):
@@ -361,10 +348,10 @@ class Connector(connector_sdk_pb2_grpc.SourceConnectorServicer):
361
348
  for name in os.listdir(top):
362
349
  path = os.path.join(top, name)
363
350
  if os.path.isdir(path):
364
- if name != OUTPUT_FILES_DIR:
351
+ if name not in EXCLUDED_DIRS:
365
352
  dirs.append(name)
366
353
  else:
367
- if name not in EXCLUDED_FILES:
354
+ if name.endswith(".py") or name == "requirements.txt":
368
355
  files.append(name)
369
356
 
370
357
  yield top, files
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fivetran_connector_sdk
3
- Version: 0.6.6.1
3
+ Version: 0.6.6.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/connector-sdk
@@ -1,4 +1,4 @@
1
- fivetran_connector_sdk/__init__.py,sha256=jhne46a6-NMWZa76S2wfPla4cU0bNzzRzrHAt1loBEM,30434
1
+ fivetran_connector_sdk/__init__.py,sha256=G6lTHgjIq02-xop9DBMEVhZgf0vxmLxPKiaRbuTS5II,29683
2
2
  fivetran_connector_sdk/protos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  fivetran_connector_sdk/protos/common_pb2.py,sha256=L4eHLGQAeoEUotWnEGhGHke_gkxZC46oBbB6oW_pcyA,8028
4
4
  fivetran_connector_sdk/protos/common_pb2.pyi,sha256=R_DpVfydkE5POi_GW94QTWmcIOTZBfC762Omb7hVcKU,10888
@@ -6,9 +6,9 @@ fivetran_connector_sdk/protos/common_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXH
6
6
  fivetran_connector_sdk/protos/connector_sdk_pb2.py,sha256=8tpwfD6mxbe09u3pOZGHdEGXU99WShyKeaK0A3-afOY,7021
7
7
  fivetran_connector_sdk/protos/connector_sdk_pb2.pyi,sha256=7mUA0lBLe0fcKcTSo04D_w-UIqfMvgjP44fKkaBQcvI,7437
8
8
  fivetran_connector_sdk/protos/connector_sdk_pb2_grpc.py,sha256=AerM3GHYVHWPJW0AZilOaWuFlLSgtX733PcMC7iFs9Y,7287
9
- fivetran_connector_sdk-0.6.6.1.dist-info/LICENSE,sha256=Kutp3D0T7HmHuBifKmbw39OZLAL1ckaLRb8u9lyJxE8,1065
10
- fivetran_connector_sdk-0.6.6.1.dist-info/METADATA,sha256=DAfP5oQPc9nQTqFQ6COcOVG5XpoyIEuS_1W57B-nFpk,639
11
- fivetran_connector_sdk-0.6.6.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
12
- fivetran_connector_sdk-0.6.6.1.dist-info/entry_points.txt,sha256=uQn0KPnFlQmXJfxlk0tifdNsSXWfVlnAFzNqjXZM_xM,57
13
- fivetran_connector_sdk-0.6.6.1.dist-info/top_level.txt,sha256=-_xk2MFY4psIh7jw1lJePMzFb5-vask8_ZtX-UzYWUI,23
14
- fivetran_connector_sdk-0.6.6.1.dist-info/RECORD,,
9
+ fivetran_connector_sdk-0.6.6.2.dist-info/LICENSE,sha256=Kutp3D0T7HmHuBifKmbw39OZLAL1ckaLRb8u9lyJxE8,1065
10
+ fivetran_connector_sdk-0.6.6.2.dist-info/METADATA,sha256=r3Sb-CE_3UH6ShnW5KfHadoIOfMs77urkBMEAfYeuQc,639
11
+ fivetran_connector_sdk-0.6.6.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
12
+ fivetran_connector_sdk-0.6.6.2.dist-info/entry_points.txt,sha256=uQn0KPnFlQmXJfxlk0tifdNsSXWfVlnAFzNqjXZM_xM,57
13
+ fivetran_connector_sdk-0.6.6.2.dist-info/top_level.txt,sha256=-_xk2MFY4psIh7jw1lJePMzFb5-vask8_ZtX-UzYWUI,23
14
+ fivetran_connector_sdk-0.6.6.2.dist-info/RECORD,,