Skip to content

Commit

Permalink
Merge pull request #704 from hmaarrfk/no_more_miniforge
Browse files Browse the repository at this point in the history
Bye bye Mambaforge and PyPy
  • Loading branch information
hmaarrfk authored Dec 31, 2024
2 parents a65a981 + bf55e4a commit 84b934f
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 292 deletions.
155 changes: 0 additions & 155 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,60 +15,18 @@ jobs:
MINIFORGE_NAME: "Miniforge3"
OS_NAME: "Windows"

- os: windows-latest
ARCH: x86_64
TARGET_PLATFORM: win-64
MINIFORGE_NAME: "Mambaforge"
OS_NAME: "Windows"

- os: windows-latest
ARCH: x86_64
TARGET_PLATFORM: win-64
MINIFORGE_NAME: "Miniforge-pypy3"
OS_NAME: "Windows"

- os: windows-latest
ARCH: x86_64
TARGET_PLATFORM: win-64
MINIFORGE_NAME: "Mambaforge-pypy3"
OS_NAME: "Windows"

- os: macos-latest
ARCH: arm64
TARGET_PLATFORM: osx-arm64
MINIFORGE_NAME: "Miniforge3"
OS_NAME: "MacOSX"

- os: macos-latest
ARCH: arm64
TARGET_PLATFORM: osx-arm64
MINIFORGE_NAME: "Mambaforge"
OS_NAME: "MacOSX"

- os: macos-latest
ARCH: x86_64
TARGET_PLATFORM: osx-64
MINIFORGE_NAME: "Miniforge-pypy3"
OS_NAME: "MacOSX"

- os: macos-latest
ARCH: x86_64
TARGET_PLATFORM: osx-64
MINIFORGE_NAME: "Mambaforge-pypy3"
OS_NAME: "MacOSX"

- os: macos-latest
ARCH: x86_64
TARGET_PLATFORM: osx-64
MINIFORGE_NAME: "Miniforge3"
OS_NAME: "MacOSX"

- os: macos-latest
ARCH: x86_64
TARGET_PLATFORM: osx-64
MINIFORGE_NAME: "Mambaforge"
OS_NAME: "MacOSX"

- os: ubuntu-latest
ARCH: aarch64
TARGET_PLATFORM: linux-aarch64
Expand All @@ -82,19 +40,6 @@ jobs:
# xref https://github.com/conda-forge/miniforge/pull/361
TEST_IMAGE_NAMES: "ubuntu:24.04"

- os: ubuntu-latest
ARCH: aarch64
TARGET_PLATFORM: linux-aarch64
DOCKER_ARCH: arm64/v8
DOCKERIMAGE: condaforge/linux-anvil-aarch64
MINIFORGE_NAME: "Mambaforge"
OS_NAME: "Linux"
# Reduce the test matrix because the builds timeouts on emulated architectures
# The time consuming operation is an attempt a full solve of conda/mamba/boa
# for as a compatibility
# xref https://github.com/conda-forge/miniforge/pull/361
TEST_IMAGE_NAMES: "ubuntu:24.04"

- os: ubuntu-latest
ARCH: x86_64
TARGET_PLATFORM: linux-64
Expand All @@ -103,14 +48,6 @@ jobs:
MINIFORGE_NAME: "Miniforge3"
OS_NAME: "Linux"

- os: ubuntu-latest
ARCH: x86_64
TARGET_PLATFORM: linux-64
DOCKER_ARCH: amd64
DOCKERIMAGE: condaforge/linux-anvil-cos7-x86_64
MINIFORGE_NAME: "Mambaforge"
OS_NAME: "Linux"

- os: ubuntu-latest
ARCH: ppc64le
TARGET_PLATFORM: linux-ppc64le
Expand All @@ -124,87 +61,6 @@ jobs:
# xref https://github.com/conda-forge/miniforge/pull/361
TEST_IMAGE_NAMES: "ubuntu:24.04"

- os: ubuntu-latest
ARCH: ppc64le
TARGET_PLATFORM: linux-ppc64le
DOCKER_ARCH: ppc64le
DOCKERIMAGE: condaforge/linux-anvil-ppc64le
MINIFORGE_NAME: "Mambaforge"
OS_NAME: "Linux"
# Reduce the test matrix because the builds timeouts on emulated architectures
# The time consuming operation is an attempt a full solve of conda/mamba/boa
# for as a compatibility
# xref https://github.com/conda-forge/miniforge/pull/361
TEST_IMAGE_NAMES: "ubuntu:24.04"

- os: ubuntu-latest
ARCH: aarch64
TARGET_PLATFORM: linux-aarch64
DOCKER_ARCH: arm64/v8
DOCKERIMAGE: condaforge/linux-anvil-aarch64
MINIFORGE_NAME: "Miniforge-pypy3"
OS_NAME: "Linux"
# Reduce the test matrix because the builds timeouts on emulated architectures
# The time consuming operation is an attempt a full solve of conda/mamba/boa
# for as a compatibility
# xref https://github.com/conda-forge/miniforge/pull/361
TEST_IMAGE_NAMES: "ubuntu:24.04"

- os: ubuntu-latest
ARCH: aarch64
TARGET_PLATFORM: linux-aarch64
DOCKER_ARCH: arm64/v8
DOCKERIMAGE: condaforge/linux-anvil-aarch64
MINIFORGE_NAME: "Mambaforge-pypy3"
OS_NAME: "Linux"
# Reduce the test matrix because the builds timeouts on emulated architectures
# The time consuming operation is an attempt a full solve of conda/mamba/boa
# for as a compatibility
# xref https://github.com/conda-forge/miniforge/pull/361
TEST_IMAGE_NAMES: "ubuntu:24.04"

- os: ubuntu-latest
ARCH: x86_64
TARGET_PLATFORM: linux-64
DOCKER_ARCH: amd64
DOCKERIMAGE: condaforge/linux-anvil-cos7-x86_64
MINIFORGE_NAME: "Miniforge-pypy3"
OS_NAME: "Linux"

- os: ubuntu-latest
ARCH: x86_64
TARGET_PLATFORM: linux-64
DOCKER_ARCH: amd64
DOCKERIMAGE: condaforge/linux-anvil-cos7-x86_64
MINIFORGE_NAME: "Mambaforge-pypy3"
OS_NAME: "Linux"

- os: ubuntu-latest
ARCH: ppc64le
TARGET_PLATFORM: linux-ppc64le
DOCKER_ARCH: ppc64le
DOCKERIMAGE: condaforge/linux-anvil-ppc64le
MINIFORGE_NAME: "Miniforge-pypy3"
OS_NAME: "Linux"
# Reduce the test matrix because the builds timeouts on emulated architectures
# The time consuming operation is an attempt a full solve of conda/mamba/boa
# for as a compatibility
# xref https://github.com/conda-forge/miniforge/pull/361
TEST_IMAGE_NAMES: "ubuntu:24.04"

- os: ubuntu-latest
ARCH: ppc64le
TARGET_PLATFORM: linux-ppc64le
DOCKER_ARCH: ppc64le
DOCKERIMAGE: condaforge/linux-anvil-ppc64le
MINIFORGE_NAME: "Mambaforge-pypy3"
OS_NAME: "Linux"
# Reduce the test matrix because the builds timeouts on emulated architectures
# The time consuming operation is an attempt a full solve of conda/mamba/boa
# for as a compatibility
# xref https://github.com/conda-forge/miniforge/pull/361
TEST_IMAGE_NAMES: "centos:7"

steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -214,17 +70,6 @@ jobs:
miniforge-version: "latest"
use-mamba: true
if: ${{ ! contains(matrix.OS_NAME, 'Linux') }}

- name: Patch license for Mambaforge deprecation
if: matrix.MINIFORGE_NAME == 'Mambaforge' || matrix.MINIFORGE_NAME == 'Mambaforge-pypy3'
run: |
echo "!!!!!! Mambaforge is now deprecated !!!!!" > Miniforge3/MAMBAFORGE_LICENSE.txt
echo "Future Miniforge releases will NOT build Mambaforge installers." >> Miniforge3/MAMBAFORGE_LICENSE.txt
echo "We advise you switch to Miniforge at your earliest convenience." >> Miniforge3/MAMBAFORGE_LICENSE.txt
echo "More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/." >> Miniforge3/MAMBAFORGE_LICENSE.txt
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >> Miniforge3/MAMBAFORGE_LICENSE.txt
cat LICENSE >> Miniforge3/MAMBAFORGE_LICENSE.txt
echo "MINIFORGE_LICENSE_OVERRIDE=MAMBAFORGE_LICENSE.txt" >> $GITHUB_ENV

- name: Build and test miniforge
env:
Expand Down
23 changes: 1 addition & 22 deletions Miniforge3/construct.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = os.environ.get("MINIFORGE_NAME", "Miniforge3") %}
{% set version = os.environ.get("MINIFORGE_VERSION", "24.11.0-1") %}
{% set version = os.environ.get("MINIFORGE_VERSION", "24.11.0-2") %}
{% set conda_libmamba_solver_version = "24.11.1"%}
# when mamba_version is updated here, also update MICROMAMBA_VERSION in scripts/build.sh
{% set mamba_version = "2.0.5"%}
Expand All @@ -26,42 +26,21 @@ initialize_conda: True
initialize_by_default: False

user_requested_specs:
{% if name.endswith("pypy3") %}
- python 3.9.* *_pypy
- conda >=24.7.1
- mamba >=1.5.9
{% else %}
- python 3.12.*
- conda >={{ version.split("-")[0] }}
- mamba >={{ mamba_version }}
{% endif %}
- pip
# Omit conda-libmamba-solver so that conda is free to remove it later
- miniforge_console_shortcut 1.* # [win]

specs:
{% if name.endswith("pypy3") %}
- python 3.9.* *_pypy
- conda 24.7.1
- mamba 1.5.9
- conda-libmamba-solver 24.7.0
{% else %}
- python 3.12.*
- conda {{ version.split("-")[0] }}
- mamba {{ mamba_version }}
- conda-libmamba-solver {{ conda_libmamba_solver_version }}
{% endif %}
- pip
- miniforge_console_shortcut 1.* # [win]

{% if name.startswith("Mambaforge") %}
pre_install: mambaforge_deprecation.sh # [unix]
pre_install: mambaforge_deprecation.bat # [win]
{% elif name.endswith("pypy3") %}
pre_install: pypy_deprecation.sh # [unix]
pre_install: pypy_deprecation.bat # [win]
{% endif %}

virtual_specs:
- __glibc >=2.17 # [linux]
- __osx >=10.13 # [osx]
27 changes: 0 additions & 27 deletions Miniforge3/mambaforge_deprecation.bat

This file was deleted.

29 changes: 0 additions & 29 deletions Miniforge3/mambaforge_deprecation.sh

This file was deleted.

27 changes: 0 additions & 27 deletions Miniforge3/pypy_deprecation.bat

This file was deleted.

27 changes: 0 additions & 27 deletions Miniforge3/pypy_deprecation.sh

This file was deleted.

5 changes: 0 additions & 5 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ EOF
conda list
fi


# 2020/09/15: Running conda update switches from pypy to cpython. Not sure why
# echo "***** Run conda update *****"
# conda update --all -y

echo "***** Python path *****"
python -c "import sys; print(sys.executable)"
python -c "import sys; assert 'miniforge' in sys.executable"
Expand Down

0 comments on commit 84b934f

Please sign in to comment.