93
93
export SDKROOT=/Applications/Xcode_12.5.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
94
94
clang --version
95
95
fi
96
- source travis-ci /build_steps.sh
96
+ source tools /build_steps.sh
97
97
echo "------ BEFORE BUILD ---------"
98
98
before_build
99
99
if [[ "$NIGHTLY" = "true" ]]; then
@@ -110,15 +110,20 @@ jobs:
110
110
111
111
- name : Build and test wheel
112
112
run : |
113
+ if [[ "$NIGHTLY" = "true" ]]; then
114
+ # Set the pyproject.toml version
115
+ version = $(cd OpenBLAS && git describe --tags --abbrev=8 | sed -e "s/^v\(.*\)-g.*/\1/")
116
+ sed -e "s/^version = .*/version = ${version}/" -i.bak pyproject.toml
117
+ fi
113
118
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
114
- source travis-ci /build_wheel.sh
119
+ source tools /build_wheel.sh
115
120
else
116
121
libc=${MB_ML_LIBC:-manylinux}
117
122
docker_image=quay.io/pypa/${libc}${MB_ML_VER}_${PLAT}
118
123
docker run --rm -e INTERFACE64="${INTERFACE64}" \
119
124
-e MB_ML_LIBC="${MB_ML_LIBC}" \
120
125
-v $(pwd):/openblas $docker_image \
121
- /bin/bash -xe /openblas/travis-ci /build_wheel.sh
126
+ /bin/bash -xe /openblas/tools /build_wheel.sh
122
127
fi
123
128
124
129
- uses : actions/upload-artifact@v3
@@ -131,32 +136,14 @@ jobs:
131
136
name : wheels
132
137
path : dist/scipy_openblas*.whl
133
138
139
+ - uses : conda-incubator/setup-miniconda@v2
140
+ with :
141
+ activate-environment : upload
142
+
134
143
- name : Upload
144
+ env :
145
+ ANACONDA_SCIENTIFIC_PYTHON_UPLOAD : ${{ secrets.ANACONDA_SCIENTIFIC_PYTHON_UPLOAD }}
135
146
run : |
136
- set -ex
137
- TOKEN=${{ secrets.ANACONDA_SCIENTIFIC_PYTHON_UPLOAD }}
138
- if [ "$TOKEN" == "" ]; then
139
- # The token is available when under the MacPython org, not on forks
140
- echo "secrets.ANACONDA_SCIENTIFIC_PYTHON_UPLOAD is not defined: skipping";
141
- else
142
- # Pin urllib3<2 due to github.com/Anaconda-Platform/anaconda-client/issues/654
143
- pip install "urllib3<2.0.0"
144
- pip install git+https://github.com/Anaconda-Server/anaconda-client@1.8.0
145
- # The first -t option refers to the token, the second is the "type"
146
- # option to the "upload" command
147
- args=(
148
- -t ${TOKEN} upload
149
- --no-progress -u scientific-python-nightly-wheels
150
- -t file -p "openblas-libs"
151
- -d "OpenBLAS for multibuild wheels"
152
- -s "OpenBLAS for multibuild wheels"
153
- )
154
- if [[ "$NIGHTLY" = "true" ]]; then
155
- args+=(--force)
156
- args+=(-v "HEAD")
157
- else
158
- args+=(--skip)
159
- args+=(-v "$(cd OpenBLAS && git describe --tags --abbrev=8)")
160
- fi
161
- anaconda "${args[@]}" libs/openblas*.tar.gz
162
- fi
147
+ # Pin urllib3<2 due to github.com/Anaconda-Platform/anaconda-client/issues/654
148
+ conda install -y anaconda-client 'urllib3<2.0.0'
149
+ source tools/upload_to_anaconda_staging.sh
0 commit comments