Skip to content

Commit

Permalink
feat: add "-e"
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Jul 22, 2024
1 parent af5e6cd commit 50245eb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/rattler_conda_types/src/environment_yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ mod tests {
"../../../test-data/environments",
"*.environment.yaml",
|path| {
insta::assert_yaml_snapshot!(EnvironmentYaml::from_path(&path).unwrap());
insta::assert_yaml_snapshot!(EnvironmentYaml::from_path(path).unwrap());
}
);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
source: crates/rattler_conda_types/src/environment_yaml.rs
assertion_line: 186
expression: "EnvironmentYaml::from_path(&path).unwrap()"
assertion_line: 187
expression: "EnvironmentYaml::from_path(path).unwrap()"
input_file: test-data/environments/asymmetric_vqgan.environment.yaml
---
channels:
Expand Down Expand Up @@ -31,3 +31,6 @@ dependencies:
- transformers==4.6.0
- torchmetrics==0.6
- academictorrents==2.3.3
- "-e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers"
- "-e git+https://github.com/openai/CLIP.git@main#egg=clip"
- "-e ."
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ Some(
"transformers==4.6.0",
"torchmetrics==0.6",
"academictorrents==2.3.3",
"-e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers",
"-e git+https://github.com/openai/CLIP.git@main#egg=clip",
"-e .",
],
)
6 changes: 3 additions & 3 deletions test-data/environments/asymmetric_vqgan.environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ dependencies:
- transformers==4.6.0
- torchmetrics==0.6
- academictorrents==2.3.3
# - -e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers
# - -e git+https://github.com/openai/CLIP.git@main#egg=clip
# - -e .
- "-e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers"
- "-e git+https://github.com/openai/CLIP.git@main#egg=clip"
- "-e ."

0 comments on commit 50245eb

Please sign in to comment.