-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for micromamba, transmutation and miniforge (continued) (#605)
* Add tests for micromamba, transmuation and miniforge * unpack * do it on the ci matrix instead * simplify * try naming? * ternary * single quotes * remove general entry in matrix? * find micromamba on windows too? * manual path for windows * add debug mode * fix transmutation in conda * pre-commit * add tests for miniforge * use double quotes just in case * allow unbound vars * shellcheck * document micromamba & menu_packages compatibility * trim spaces * sync docs * Skip miniforge + micromamba + windows * trim * simplify skip logic * error out if micromamba used on windows, remove ci there * add news Co-authored-by: Chris Burr <christopher.burr@cern.ch> Co-authored-by: Daniel Bast <2790401+dbast@users.noreply.github.com>
- Loading branch information
1 parent
b1931ee
commit 53be6d8
Showing
11 changed files
with
174 additions
and
34 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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Miniforge3 | ||
version: 4.10.1-0 | ||
company: conda-forge | ||
|
||
channels: | ||
- conda-forge | ||
|
||
write_condarc: True | ||
keep_pkgs: True | ||
transmute_file_type: .conda | ||
|
||
specs: | ||
- python 3.9.* | ||
- conda 4.10.1 | ||
- pip | ||
- miniforge_console_shortcut 1.* # [win] | ||
|
||
# Added for extra testing | ||
installer_type: all | ||
post_install: test_install.sh # [unix] | ||
post_install: test_install.bat # [win] |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ECHO ON | ||
call "%PREFIX%\Scripts\activate.bat | ||
conda install -yq jq || exit 1 | ||
conda config --show-sources || exit 1 | ||
conda config --json --show | jq -r ".channels[0]" > temp.txt | ||
set /p OUTPUT=<temp.txt | ||
if not "%OUTPUT%" == "conda-forge" exit 1 |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -exo pipefail | ||
|
||
# shellcheck disable=SC1091 | ||
source "$PREFIX/etc/profile.d/conda.sh" | ||
conda activate "$PREFIX" | ||
conda install -yq jq | ||
conda config --show-sources | ||
test "$(conda config --json --show | jq -r '.channels[0]')" = "conda-forge" |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### Enhancements | ||
|
||
* <news item> | ||
|
||
### Bug fixes | ||
|
||
* Add tests for `--conda-exe=<micromamba>` and fix found issues on Linux and macOS. | ||
Not supported on Windows yet. (#503, #605) | ||
|
||
### Deprecations | ||
|
||
* <news item> | ||
|
||
### Docs | ||
|
||
* <news item> | ||
|
||
### Other | ||
|
||
* <news item> |
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