-
Notifications
You must be signed in to change notification settings - Fork 27
update actions #300
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
update actions #300
Conversation
| base_dir = dirname(file_name) | ||
| _warn_on_ignored_manifest(base_dir) | ||
| _warn_if_no_requirements_file(base_dir) | ||
| _warn_if_environment_directory(base_dir) |
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.
It seems a little odd for API usage to trigger console warnings. We should ask about whether that's a desired behavior.
| app_mode = read_manifest_app_mode(manifest_file_name) | ||
| kwargs["title"] = title or default_title_from_manifest(manifest_file_name) | ||
|
|
||
| if isinstance(connect_server, api.RSConnectServer): |
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.
This code block occurs repeatedly - let's factor out a helper that returns a dict we can pass to kwargs.update.
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.
popping in here to say I tested this out with vetiver, and it feels really nice! fixes the requirements bugs I had when using python_deploy_fastapi
Description
Update actions.py to reuse the code in main, minus the CLI components.