Skip to content

Commit

Permalink
Merge pull request #634 from hmaarrfk/options_for_users
Browse files Browse the repository at this point in the history
Add additional information on what installers don't have this brownout
  • Loading branch information
hmaarrfk committed Aug 28, 2024
2 parents 4c2f12c + 362b0c4 commit 8e2b18e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 30 deletions.
40 changes: 20 additions & 20 deletions Miniforge3/mambaforge_deprecation.bat
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
if "%GITHUB_ACTIONS%"=="true" (
echo ::warning title=Mambaforge is now deprecated!::Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/.
echo ::warning title=Mambaforge is now deprecated!::Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/. If you require mambaforge, you may pin your installer to one found from https://github.com/conda-forge/miniforge/releases/tag/24.5.0-1
)
else (
msg "%sessionname%" Mambaforge is now deprecated! Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/.
msg "%sessionname%" Mambaforge is now deprecated! Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/. If you require mambaforge, you may pin your installer to one found from https://github.com/conda-forge/miniforge/releases/tag/24.5.0-1
)

for /f "delims=" %%# in ('powershell get-date -format "{yyyy-MM-dd}"') do @set _date=%%#
if "%_date%"=="2024-10-01" exit 1
if "%_date%"=="2024-10-15" exit 1
if "%_date%"=="2024-11-01" exit 1
if "%_date%"=="2024-11-10" exit 1
if "%_date%"=="2024-11-20" exit 1
if "%_date%"=="2024-11-30" exit 1
if "%_date%"=="2024-12-05" exit 1
if "%_date%"=="2024-12-10" exit 1
if "%_date%"=="2024-12-15" exit 1
if "%_date%"=="2024-12-20" exit 1
if "%_date%"=="2024-12-25" exit 1
if "%_date%"=="2024-12-30" exit 1
if "%_date%"=="2024-12-31" exit 1
if "%_date:~0,4%"=="2025" exit 1

echo Sleeping for 30s...
powershell -nop -c "& {sleep 30}"
:REM for /f "delims=" %%# in ('powershell get-date -format "{yyyy-MM-dd}"') do @set _date=%%#
:REM if "%_date%"=="2024-10-01" exit 1
:REM if "%_date%"=="2024-10-15" exit 1
:REM if "%_date%"=="2024-11-01" exit 1
:REM if "%_date%"=="2024-11-10" exit 1
:REM if "%_date%"=="2024-11-20" exit 1
:REM if "%_date%"=="2024-11-30" exit 1
:REM if "%_date%"=="2024-12-05" exit 1
:REM if "%_date%"=="2024-12-10" exit 1
:REM if "%_date%"=="2024-12-15" exit 1
:REM if "%_date%"=="2024-12-20" exit 1
:REM if "%_date%"=="2024-12-25" exit 1
:REM if "%_date%"=="2024-12-30" exit 1
:REM if "%_date%"=="2024-12-31" exit 1
:REM if "%_date:~0,4%"=="2025" exit 1
:REM
:REM echo Sleeping for 30s...
:REM powershell -nop -c "& {sleep 30}"
26 changes: 16 additions & 10 deletions Miniforge3/mambaforge_deprecation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,21 @@ else
echo "Future Miniforge releases will NOT build Mambaforge installers."
echo "We advise you switch to Miniforge at your earliest convenience."
echo "More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/."
echo "If you are unable to switch to Miniforge, you may pin your installer version to one found in "
echo "https://github.com/conda-forge/miniforge/releases/tag/24.5.0-1"
echo "or if you lack the system requirements (Linux glibc >= 2.17, or macOS + x86-64bit >= 10.13)"
echo "you may pin your installer to one older version found in "
echo "https://github.com/conda-forge/miniforge/releases/tag/24.3.0-0"

fi

case $(date +%F) in
# Brownouts
2024-10-01|2024-10-15|2024-11-01|2024-11-10|2024-11-20|2024-11-30|2024-12-05|2024-12-10|2024-12-15|2024-12-20|2024-12-25|2024-12-30|2024-12-31|2025-*)
exit 1
;;
*)
echo "Sleeping for 30s..."
sleep 30
;;
esac
# case $(date +%F) in
# # Brownouts
# 2024-10-01|2024-10-15|2024-11-01|2024-11-10|2024-11-20|2024-11-30|2024-12-05|2024-12-10|2024-12-15|2024-12-20|2024-12-25|2024-12-30|2024-12-31|2025-*)
# exit 1
# ;;
# *)
# echo "Sleeping for 30s..."
# sleep 30
# ;;
# esac
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ Latest installers with PyPy 3.9 in the base environment:

<summary>🚨 Mambaforge (<b>Deprecated</b> as of July 2024) 🚨</summary>

Update for July 2024:

As of July 2024, `Mambaforge` is deprecated. We suggest users switch to
`Miniforge3` immediately. These installers will be retired from new releases
after January 2025. To assist in the migration, we will be introducing rollowing
brownouts to the latest Mambaforge installer. Installers up to version 24.5.0-1
will not have any brownouts. 24.5.0-1 will include a warning message.
Installers 2024.5.0-2 and later will have the following brownout schedule:

* The installer will refuse to proceed every two weeks in October
* The installer will refuse to proceed every ten days in November
* The installer will refuse to proceed every five days in December
* The installer will refuse to proceed in 2025+

Previous information:

With the [release](https://github.com/conda-forge/miniforge/releases/tag/23.3.1-0) of
`Miniforge3-23.3.1-0`, that incorporated the changes in
[#277](https://github.com/conda-forge/miniforge/pull/277), the packages and
Expand Down

0 comments on commit 8e2b18e

Please sign in to comment.