Skip to content

Commit a51644e

Browse files
committed
fix: accept conda Terms of Service in Linux, macOS and Windows PyPI release scripts
Add conda tos accept commands for required channels in all platform scripts: - release-pypi-macos.sh: Accept ToS for main and r channels - release-pypi-windows.cmd: Accept ToS for main and r channels This ensures all PyPI release workflows can run without conda ToS errors
1 parent ea627bd commit a51644e

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

release-pypi-linux.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ bash ${MINICONDA_FILENAME} -b -f -p $HOME/miniconda3
2525
export PATH=$HOME/miniconda3/bin:$PATH
2626
eval "$(conda shell.bash hook)"
2727

28+
# Accept conda Terms of Service for required channels
29+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
30+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
31+
2832
for VERSION in 3.8 3.9 3.10 3.11 3.12; do
2933
# Create and activate environment
3034
conda config --add channels conda-forge

release-pypi-macos.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ bash ${MINICONDA_FILENAME} -b -f -p $HOME/miniconda3
1212
export PATH=$HOME/miniconda3/bin:$PATH
1313
eval "$(conda shell.bash hook)"
1414

15+
# Accept conda Terms of Service for required channels
16+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
17+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
18+
1519
for VERSION in 3.8 3.9 3.10 3.11 3.12; do
1620
# Create and activate environment
1721
conda config --add channels conda-forge

release-pypi-windows.cmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ setlocal EnableDelayedExpansion
44
SET VERSIONS=3.8 3.9 3.10 3.11 3.12
55
SET SOURCEDIR=%cd%
66

7+
REM Accept conda Terms of Service for required channels
8+
CALL C:\Miniconda/condabin/conda.bat tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
9+
CALL C:\Miniconda/condabin/conda.bat tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
10+
711
REM Build packages
812
for %%v in (%VERSIONS%) do (
913
SET ENV_NAME=py%%v

0 commit comments

Comments
 (0)