-
Notifications
You must be signed in to change notification settings - Fork 110
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
Deploy command #173
base: main
Are you sure you want to change the base?
Deploy command #173
Conversation
|
||
|
||
def deploy(): | ||
bearer_token = get_stored_token() |
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.
add a deploy stub to /cli that manages the CLI interaction and logging, then use the deploy function from this file
files = list(Path('.').rglob('*.py')) | ||
|
||
with tempfile.NamedTemporaryFile(suffix='.zip') as tmp: | ||
with zipfile.ZipFile(tmp.name, 'w') as zf: |
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.
Might be worth just building the project into a whl
(which is essentially a zip file) since we already have a pyproject.toml file available in user projects (pip build
). pip install user-project.whl
after uploading it will install dependencies, too.
# Conflicts: # agentstack/main.py
📥 Pull Request
This PR creates a new CLI command that zips the user's code and uploads it to their AgentStack.sh account to be built and deployed.