File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -141,8 +141,9 @@ jobs:
141
141
142
142
- name : Build and test wheel
143
143
run : |
144
- if [[ "$NIGHTLY" = "true" ] ]; then
144
+ if [ "$NIGHTLY" = "true" -a "$BRANCH_NAME" = "main" ]; then
145
145
# Set the pyproject.toml version: convert v0.3.24-30-g138ed79f to 0.3.34.30
146
+ # This will fail if `git describe --tags` hits a tag like v0.3.27
146
147
version=$(cd OpenBLAS && git describe --tags --abbrev=8 | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g")
147
148
sed -e "s/^version = .*/version = \"${version}\"/" -i.bak pyproject.toml
148
149
fi
Original file line number Diff line number Diff line change @@ -29,13 +29,5 @@ upload_wheels() {
29
29
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
30
30
--no-progress --force -u scientific-python-nightly-wheels \
31
31
dist/scipy_openblas* .whl
32
-
33
- tarballs=$( ls -d builds/openblas* .zip libs/openblas* .tar.gz 2> /dev/null)
34
- anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
35
- --no-progress --force -u scientific-python-nightly-wheels \
36
- -t file -p " openblas-libs" -v " $VERSION " \
37
- -d " OpenBLAS for multibuild wheels" \
38
- -s " OpenBLAS for multibuild wheels" \
39
- ${tarballs}
40
32
fi
41
33
}
You can’t perform that action at this time.
0 commit comments