omnata-plugin-devkit 0.10.15a117__py3-none-any.whl → 0.10.15a118__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.
@@ -577,9 +577,14 @@ $${}$$;
577
577
  os.chdir(direct_imports_path)
578
578
  # upload all files in the directory to the stage
579
579
  for path in sorted(Path(".").rglob("*")):
580
- print(f"Uploading {path} to stage")
580
+ # don't try to upload directories, only files
581
+ if path.is_dir():
582
+ continue
583
+ # figure out the path
584
+ relative_path = str(f"/{path.parent}") if path.parent != Path(".") else ""
585
+ print(f"Uploading {path} to stage under {relative_path}")
581
586
  self.session.sql(
582
- f"put file://{path} @{database_name}.{schema_name}.{stage_name} AUTO_COMPRESS=FALSE OVERWRITE=TRUE"
587
+ f"put file://{path} @{database_name}.{schema_name}.{stage_name}{relative_path} AUTO_COMPRESS=FALSE OVERWRITE=TRUE"
583
588
  ).collect()
584
589
  os.chdir(cwd)
585
590
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: omnata-plugin-devkit
3
- Version: 0.10.15a117
3
+ Version: 0.10.15a118
4
4
  Summary:
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -46,7 +46,7 @@ omnata_plugin_devkit/plugin_template/icon.svg,sha256=xEXOqutQhh8JaKU3xgyx9Weq1Kw
46
46
  omnata_plugin_devkit/plugin_template/plugin.py,sha256=VI2J64tRvrwuUbCHaB7SCO-QMisyeO1qTlamr9me_iM,15465
47
47
  omnata_plugin_devkit/plugin_template/plugin_development.ipynb,sha256=8_rkQnwWKe31MQp2rbM4ySjtET3FlAQcJVW8ix5Bh50,2912
48
48
  omnata_plugin_devkit/plugin_template/requirements.txt,sha256=nWMMGhIC_HIZHWTImksSLNU9mIAh0HlQHFVAS0rUKnA,30
49
- omnata_plugin_devkit/plugin_uploader.py,sha256=dvR2ocoJtqP45g5RAFN-8D6XnV3y2Y2sUpAjIE1gmXQ,42247
49
+ omnata_plugin_devkit/plugin_uploader.py,sha256=8q4hrxvCibF7fikkhLp4nKILugCx6Fk16k2TbLiyhog,42558
50
50
  omnata_plugin_devkit/snowcli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
51
  omnata_plugin_devkit/snowcli/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  omnata_plugin_devkit/snowcli/cli/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -71,7 +71,7 @@ omnata_plugin_devkit/snowcli/cli/templates/environment.yml.jinja,sha256=LRT00o5J
71
71
  omnata_plugin_devkit/streamlit/plugin_configuration.py,sha256=k89uspeQ_t5_Wbb_aXRL-fvbypXtax_r40oxxqB6fKc,100172
72
72
  omnata_plugin_devkit/test_step_definitions.py,sha256=Und60RpAn0YcJn-i1FpzUzVHRPnDB5QqO6YnZm2l6aw,53205
73
73
  omnata_plugin_devkit/utils.py,sha256=pFUltWEcb7Wxq0TPUdjvNPZG0AXHVrU-fZ874Q-EgUU,1378
74
- omnata_plugin_devkit-0.10.15a117.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
75
- omnata_plugin_devkit-0.10.15a117.dist-info/METADATA,sha256=S756BwAa5EKcEH23cvlKYS23NYiWPUHS34uFCzeDnqs,1192
76
- omnata_plugin_devkit-0.10.15a117.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
77
- omnata_plugin_devkit-0.10.15a117.dist-info/RECORD,,
74
+ omnata_plugin_devkit-0.10.15a118.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
75
+ omnata_plugin_devkit-0.10.15a118.dist-info/METADATA,sha256=XKjE8el8gLuHw0BflZFRmD_YrOcMRQtTAr0b244zgBg,1192
76
+ omnata_plugin_devkit-0.10.15a118.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
77
+ omnata_plugin_devkit-0.10.15a118.dist-info/RECORD,,