Skip to content

Commit de1f703

Browse files
committed
fix uploading
1 parent 83fe96a commit de1f703

File tree

4 files changed

+32
-25
lines changed

4 files changed

+32
-25
lines changed

.github/workflows/posix.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,4 @@ jobs:
147147
# Pin urllib3<2 due to github.com/Anaconda-Platform/anaconda-client/issues/654
148148
conda install -y anaconda-client 'urllib3<2.0.0'
149149
source tools/upload_to_anaconda_staging.sh
150+
upload_wheels

.github/workflows/windows.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,11 @@ jobs:
152152
activate-environment: upload
153153

154154
- name: Upload
155+
shell: bash
155156
env:
156157
ANACONDA_SCIENTIFIC_PYTHON_UPLOAD: ${{ secrets.ANACONDA_SCIENTIFIC_PYTHON_UPLOAD }}
157158
run: |
158159
# Pin urllib3<2 due to github.com/Anaconda-Platform/anaconda-client/issues/654
159-
conda install "urllib3<2" anaconda-client
160-
& $env:BASH_PATH -lc tools/upload_to_anaconda_staging.sh
160+
conda install -y anaconda-client 'urllib3<2.0.0'
161+
source tools/upload_to_anaconda_staging.sh
162+
upload_wheels

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,8 @@ script:
9494
/bin/bash -xe /openblas/tools/build_wheel.sh
9595

9696
after_success:
97+
- sudo chmod -R a+w /home/travis/.cache
98+
- pip install -q git+https://github.com/Anaconda-Platform/[email protected]
9799
# Upload libraries to the shared staging area on anaconda.org
98100
- source tools/upload_to_anaconda_staging.sh
101+
- upload_wheels

tools/upload_to_anaconda_staging.sh

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
#!/bin/bash
22
# Upload tar.gz and wheels to ananconda.org
33

4-
set -e
4+
upload_wheels() {
5+
set -e
6+
if [[ "$(uname -s)" == CYGWIN* ]]; then
7+
our_wd=$(cygpath "$START_DIR")
8+
cd $our_wd
9+
fi
510

6-
if [[ "$(uname -s)" == CYGWIN* ]]; then
7-
our_wd=$(cygpath "$START_DIR")
8-
cd $our_wd
9-
fi
11+
pushd OpenBLAS
12+
VERSION=$(git describe --tags --abbrev=8)
13+
popd
1014

11-
pushd OpenBLAS
12-
VERSION=$(git describe --tags --abbrev=8)
13-
popd
15+
if [ "$ANACONDA_SCIENTIFIC_PYTHON_UPLOAD" == "" ]; then
16+
echo "ANACONDA_SCIENTIFIC_PYTHON_UPLOAD is not defined: skipping."
17+
else
18+
echo "Uploading OpenBLAS $VERSION to anaconda.org staging:"
1419

15-
if [ "$ANACONDA_SCIENTIFIC_PYTHON_UPLOAD" == "" ]; then
16-
echo "ANACONDA_SCIENTIFIC_PYTHON_UPLOAD is not defined: skipping."
17-
else
18-
echo "Uploading OpenBLAS $VERSION to anaconda.org staging:"
20+
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
21+
--no-progress --force -u scientific-python-nightly-wheels \
22+
-t file -p "openblas-libs" -v "$VERSION" \
23+
-d "OpenBLAS for multibuild wheels" \
24+
-s "OpenBLAS for multibuild wheels" \
25+
builds/openblas*.zip libs/openblas*.tar.gz
1926

20-
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
21-
--no-progress --force -u scientific-python-nightly-wheels \
22-
-t file -p "openblas-libs" -v "$VERSION" \
23-
-d "OpenBLAS for multibuild wheels" \
24-
-s "OpenBLAS for multibuild wheels" \
25-
builds/openblas*.zip libs/openblas*.tar.gz
26-
27-
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
28-
--no-progress --force -u scientific-python-nightly-wheels \
29-
dist/scipy_openblas*.whl
30-
fi
27+
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
28+
--no-progress --force -u scientific-python-nightly-wheels \
29+
dist/scipy_openblas*.whl
30+
fi
31+
}

0 commit comments

Comments
 (0)