-
Notifications
You must be signed in to change notification settings - Fork 3
[WIP] Remove conda yaml #1135
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
base: master
Are you sure you want to change the base?
[WIP] Remove conda yaml #1135
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,12 +35,14 @@ message Operation { | |
| } | ||
|
|
||
| message PythonEnvSpec { | ||
| string yaml = 2; // Conda yaml to install before execution | ||
| repeated LocalModule localModules = 3; | ||
|
|
||
| message LocalModule { | ||
| string name = 1; // Name of module | ||
| string url = 2; // Url in storage to get module from | ||
| string python_version = 1; // 3.8, 3.9, ..., without patch | ||
| /* optional */ string pypi_index_url = 2; // Url of pypi index. If not set, using https://pypi.org/simple | ||
| repeated PythonPackage requirements = 3; // Requirements to install | ||
| repeated string local_modules_urls = 4; // Urls in storage to get local modules from | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Возможно, с целью написания дебаг-логов на сервере, локальный модуль представлять не только как URL, но как пару
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also we could add some archive codec information here
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I will add message |
||
|
|
||
| message PythonPackage { | ||
| string name = 1; | ||
| string version = 2; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should also support things like |
||
| } | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,9 +20,15 @@ message EnvSpec { | |
| } | ||
|
|
||
| message PythonEnv { | ||
| string name = 1; | ||
| string yaml = 2; | ||
| repeated LocalModule local_modules = 3; | ||
| string python_version = 1; // 3.8, 3.9, ..., without patch | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are you repeating 1:1 PythonEnvSpec here?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because this is private api, and |
||
| /* optional */ string pypi_index_url = 2; // Url of pypi index. If not set, using https://pypi.org/simple | ||
| repeated PythonPackage requirements = 3; // Requirements to install | ||
| repeated string local_modules_urls = 4; // Urls in storage to get local modules from | ||
|
|
||
| message PythonPackage { | ||
| string name = 1; | ||
| string version = 2; | ||
| } | ||
| } | ||
|
|
||
| message ProcessEnv {} | ||
|
|
||
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.
Maybe you should add extra_index_url (repeated) and find_links (repeated) for future?
look at
pip install --helpThere 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.
May be we just should pass
requirements.txtfile contents, it supports all features and options ofpip– https://pip.pypa.io/en/stable/reference/requirements-file-format/, includingextra_index_urland others. Then we can just install packages withpip, without conda.