-
Notifications
You must be signed in to change notification settings - Fork 24
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
Standardize environment.yml
#81
base: main
Are you sure you want to change the base?
Conversation
```yaml | ||
name: test | ||
dependencies: | ||
- numpy >=1.10 |
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.
What about conditions if a dependency is used on different platforms, python versions, implementations, etc.?
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.
In this CEP I only want to document the current state, mostly as available in the original implementation in conda
.
There are a number of extensions in community projects that are out of scope (e.g. I think micromamba has a sel(xxxx): numpy
syntax for selectors).
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.
Just a few suggestions (no blockers if you don't agree though) and a question about platform selectors.
|
||
Required, `list[str | dict[str, Any]]`. | ||
|
||
The simplest form for this section is a list of `str` encoding `MatchSpec`-compatible requirements. These items MUST be processed as conda requirements and submitted to the solver (along with `channels`) to obtain the contents for the resulting conda environment. |
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 platform selectors be mentioned here or is that implied with MatchSpec
-compatible?
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.
AFAIK, environment.yml
doesn't support platform selectors like meta.yaml
, doesn't it?
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.
You're right, my bad. Would be a nice feature though.
Co-authored-by: Marco Esters <[email protected]>
Adds a type for representing a `environment.yaml` based on conda/ceps#81
Standardizing the popular
environment.yml
input files.📝👓 Markdown preview