-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for package creation and pip installs #781
Fixes for package creation and pip installs #781
Conversation
…-install-packages
…-install-packages
…-install-packages
…-install-packages
@@ -64,7 +73,7 @@ def upload(file: Path, stage: str, overwrite: bool): | |||
|
|||
|
|||
def create(zip_name: str): | |||
file_name = zip_name if zip_name.endswith(".zip") else f"{zip_name}.zip" | |||
file_name = f"{get_package_name(zip_name)}.zip" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we moved the .zip
suffix to get_package_name
function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_package_name
is used to extract name, that we will use to resolve dependencies etc. - so for example, takes the name from github repo url, zipname etc. - it seems way too early to add .zip
suffix there
…-install-packages # Conflicts: # src/snowflake/cli/plugins/snowpark/package/commands.py
…-install-packages
…-install-packages
* Added dependencies check to venv * Problem * Problem2 * Fixed problem * Cleanup * Corrected github installs * Corrected lib path * added release notes * fixes * fixes * fixes * fixes * Added native libraries option * Added native libraries option * Snapshot update * Snapshot update * Fixes * After merge fixes * Minor * fixes * Updates * Performance update * Test fix * windows fix * windows fix * windows fix * windows fix * windows fix * windows fix * windows fix * windows fix * fixed tests * fixed tests * Fixes after review * Fixes after review * Fixes * Fixes * Fixes * Fixes * Fixes * Fixes * Fixes * Fixes * Replaced deprecated flags * Replaced deprecated flags * Replaced deprecated flags * Replaced deprecated flags * Fix for encoding * Fix for encoding * Fix for encoding * Fix for encoding * Fix for encoding * Started cleaning * Cleanup
Pre-review checklist
Changes description
*Tweaked package creation mechanism in
snow snowpark package create
- now we check for minimal required version, not the latest installed by pip, to reduce the size of uploaded packages (and problems mentioned in #763)Fixes: #763 , #122 , #116 (probably was fixed before, but now confirmed)