Skip to content

Commit c565edd

Browse files
authored
Merge pull request #333 from isuruf/updates
Update to conda 4.14, cpython 3.10, pypy 3.9
2 parents 256e408 + 09655cf commit c565edd

File tree

6 files changed

+27
-8
lines changed

6 files changed

+27
-8
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@ jobs:
2121
MINIFORGE_NAME: "Mambaforge"
2222
OS_NAME: "Windows"
2323

24+
- os: windows-latest
25+
ARCH: x86_64
26+
TARGET_PLATFORM: win-64
27+
MINIFORGE_NAME: "Miniforge-pypy3"
28+
OS_NAME: "Windows"
29+
30+
- os: windows-latest
31+
ARCH: x86_64
32+
TARGET_PLATFORM: win-64
33+
MINIFORGE_NAME: "Mambaforge-pypy3"
34+
OS_NAME: "Windows"
35+
2436
- os: macos-latest
2537
ARCH: arm64
2638
TARGET_PLATFORM: osx-arm64
@@ -184,6 +196,7 @@ jobs:
184196
fi
185197
if [[ "$OS_NAME" == "Windows" ]]; then
186198
export EXT=exe
199+
echo "WINDIR:$WINDIR"
187200
source /c/Miniconda3/Scripts/activate;
188201
source build_miniforge_win.sh;
189202
fi
@@ -196,7 +209,7 @@ jobs:
196209
shell: bash
197210

198211
- name: Upload miniforge to Github artifact
199-
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
212+
if: always()
200213
uses: actions/upload-artifact@v3
201214
with:
202215
path: build/${{ matrix.MINIFORGE_NAME }}-${{ matrix.OS_NAME }}-${{ matrix.ARCH }}*

Miniforge3/construct.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set version = os.environ.get("MINIFORGE_VERSION", "4.13.0-0") %}
1+
{% set version = os.environ.get("MINIFORGE_VERSION", "4.14.0-0") %}
22
{% set name = os.environ.get("MINIFORGE_NAME", "Miniforge3") %}
33

44
name: {{ name }}
@@ -21,13 +21,13 @@ license_file: ../LICENSE
2121

2222
specs:
2323
{% if name.endswith("pypy3") %}
24-
- python 3.7.* *_pypy
24+
- python 3.9.* *_pypy
2525
{% else %}
26-
- python 3.9.*
26+
- python 3.10.*
2727
{% endif %}
2828

2929
{% if name.startswith("Mambaforge") %}
30-
- mamba 0.24.0
30+
- mamba 0.25.0
3131
{% endif %}
3232
- conda {{ version.split("-")[0] }}
3333

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Latest installers with PyPy 3.7 in the base environment:
5050
| Linux | aarch64 (arm64) | [Miniforge-pypy3-Linux-aarch64](https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge-pypy3-Linux-aarch64.sh) |
5151
| Linux | ppc64le (POWER8/9) | [Miniforge-pypy3-Linux-ppc64le](https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge-pypy3-Linux-ppc64le.sh) |
5252
| OS X | x86_64 | [Miniforge-pypy3-MacOSX-x86_64](https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge-pypy3-MacOSX-x86_64.sh) |
53+
| Windows | x86_64 | [Miniforge-pypy3-Windows-x86_64](https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge-pypy3-Windows-x86_64.exe) |
5354

5455
#### Mambaforge
5556

@@ -75,6 +76,7 @@ Latest installers with Mamba and PyPy 3.7 in the base environment:
7576
| Linux | aarch64 (arm64) | [Mambaforge-pypy3-Linux-aarch64](https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-pypy3-Linux-aarch64.sh) |
7677
| Linux | ppc64le (POWER8/9) | [Mambaforge-pypy3-Linux-ppc64le](https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-pypy3-Linux-ppc64le.sh) |
7778
| OS X | x86_64 | [Mambaforge-pypy3-MacOSX-x86_64](https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-pypy3-MacOSX-x86_64.sh) |
79+
| Windows | x86_64 | [Mambaforge-pypy3-Windows-x86_64](https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-pypy3-Windows-x86_64.exe) |
7880

7981
## Install
8082

build_miniforge.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ docker run --rm -v "$(pwd):/construct" \
3232
-e CONSTRUCT_ROOT -e MINIFORGE_VERSION -e MINIFORGE_NAME -e TARGET_PLATFORM \
3333
"${DOCKERIMAGE}" /construct/scripts/build.sh
3434

35-
# copy the installer for latest
36-
cp "build/${MINIFORGE_NAME}-"*"-${OS_NAME}-${ARCH}.${EXT}" "build/${MINIFORGE_NAME}-${OS_NAME}-${ARCH}.${EXT}"
37-
3835
echo "============= Test the installer ============="
3936
for TEST_IMAGE_NAME in "ubuntu:21.10" "ubuntu:20.04" "ubuntu:18.04" "ubuntu:16.04" "centos:7" "debian:bullseye" "debian:buster"; do
4037
echo "============= Test installer on ${TEST_IMAGE_NAME} ============="

scripts/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,8 @@ mv "${HASH_PATH}" "${CONSTRUCT_ROOT}/build/"
7878

7979
echo "***** Done: Building Miniforge installer *****"
8080
cd "${CONSTRUCT_ROOT}"
81+
82+
# copy the installer for latest
83+
if [[ "${MINIFORGE_NAME:-}" != "" && "${OS_NAME:-}" != "" && "${ARCH:-}" != "" ]]; then
84+
cp "${CONSTRUCT_ROOT}/build/${MINIFORGE_NAME}-"*"-${OS_NAME}-${ARCH}.${EXT}" "${CONSTRUCT_ROOT}/build/${MINIFORGE_NAME}-${OS_NAME}-${ARCH}.${EXT}"
85+
fi

scripts/test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ if [[ "$(uname)" == MINGW* ]]; then
2626
cmd.exe /c install.bat
2727

2828
echo "***** Setup conda *****"
29+
# Workaround a conda bug where it uses Unix style separators, but MinGW doesn't understand them
30+
export PATH=$CONDA_PATH/Library/bin:$PATH
2931
# shellcheck disable=SC1091
3032
source "${CONDA_PATH}/Scripts/activate"
3133
conda.exe config --set show_channel_urls true

0 commit comments

Comments
 (0)