-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: url parsing for namelessmatchspec and cleanup functions (#790)
Now allowing to parse the `NamelessMatchSpec` to url for: ``` "https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2", "[url=https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2]", "C:\\Users\\user\\conda-bld\\linux-64\\foo-1.0-py27_0.tar.bz2", "[url=C:\\Users\\user\\conda-bld\\linux-64\\foo-1.0-py27_0.tar.bz2]", ``` Ps. Also did some touchups where RustRover gave me a warning, spelling, grammer and code style. _boyscout_ --------- Co-authored-by: Tim de Jager <tdejager89@gmail.com>
- Loading branch information
1 parent
cc891b4
commit 35caccc
Showing
3 changed files
with
147 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ots/rattler_conda_types__match_spec__parse__tests__test_nameless_from_string_Lenient.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
--- | ||
source: crates/rattler_conda_types/src/match_spec/parse.rs | ||
assertion_line: 930 | ||
expression: evaluated | ||
--- | ||
2.7|>=3.6: | ||
version: "==2.7|>=3.6" | ||
"https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2": | ||
url: "https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2" |
3 changes: 2 additions & 1 deletion
3
...hots/rattler_conda_types__match_spec__parse__tests__test_nameless_from_string_Strict.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
--- | ||
source: crates/rattler_conda_types/src/match_spec/parse.rs | ||
assertion_line: 930 | ||
expression: evaluated | ||
--- | ||
2.7|>=3.6: | ||
version: "==2.7|>=3.6" | ||
"https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2": | ||
url: "https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2" |