summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2023-01-30 19:23:56 +0200
committerGitHub <noreply@github.com>2023-01-30 19:23:56 +0200
commit137670c5a76994ed045784431f8be3ea1b489864 (patch)
tree97ab5e4927bf80ca5df1630829651c3ca1a43a80 /tools
parent9d2c0197b1b7171be722c9cb2642e438c472edcc (diff)
parent25c9b78ccaabe3e99c749354a825dee0abfe620a (diff)
downloadnumpy-137670c5a76994ed045784431f8be3ea1b489864.tar.gz
Merge pull request #23127 from andyfaff/anc
BLD: use conda to install anaconda-client for upload
Diffstat (limited to 'tools')
-rw-r--r--tools/ci/cirrus_general.yml10
-rw-r--r--tools/wheels/upload_wheels.sh2
2 files changed, 9 insertions, 3 deletions
diff --git a/tools/ci/cirrus_general.yml b/tools/ci/cirrus_general.yml
index f44b735f9..aa156253d 100644
--- a/tools/ci/cirrus_general.yml
+++ b/tools/ci/cirrus_general.yml
@@ -62,10 +62,18 @@ wheels_upload_task:
NUMPY_NIGHTLY_UPLOAD_TOKEN: ENCRYPTED[!196422e6c3419a3b1d79815e1026094a215cb0f346fe34ed0f9d3ca1c19339df7398d04556491b1e0420fc1fe3713289!]
upload_script: |
- apt-get install -y python3-venv python-is-python3 curl
+ apt-get update
+ apt-get install -y curl wget
export IS_SCHEDULE_DISPATCH="false"
export IS_PUSH="false"
+ # install miniconda for uploading to anaconda
+ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
+ bash miniconda.sh -b -p ~/miniconda3
+ ~/miniconda3/bin/conda init bash
+ source ~/miniconda3/bin/activate
+ conda install -y anaconda-client
+
# cron job
if [[ "$CIRRUS_CRON" == "weekly" ]]; then
export IS_SCHEDULE_DISPATCH="true"
diff --git a/tools/wheels/upload_wheels.sh b/tools/wheels/upload_wheels.sh
index 6694caf01..bc2066726 100644
--- a/tools/wheels/upload_wheels.sh
+++ b/tools/wheels/upload_wheels.sh
@@ -37,8 +37,6 @@ upload_wheels() {
if [[ -z ${TOKEN} ]]; then
echo no token set, not uploading
else
- python -m pip install \
- git+https://github.com/Anaconda-Platform/anaconda-client.git@be1e14936a8e947da94d026c990715f0596d7043
# sdists are located under dist folder when built through setup.py
if compgen -G "./dist/*.gz"; then
echo "Found sdist"