Skip to content

Commit 8a70c46

Browse files
authored
Merge pull request #17 from ogrisel/anaconda-upload
Anaconda upload
2 parents d9d3fd8 + b554622 commit 8a70c46

File tree

4 files changed

+64
-26
lines changed

4 files changed

+64
-26
lines changed

.travis.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ env:
44
# commit.
55
- BUILD_COMMIT=c815b8f
66
- REPO_DIR=OpenBLAS
7-
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
8-
# Following generated with
9-
# travis encrypt -r MacPython/openblas-libs WHEELHOUSE_UPLOADER_SECRET=<the api key>
10-
- secure: "NRSuGmMTcNSbpQwiXWS4o2dKQr9bXgDEHD3D6SjDdEe44rsLMDRt8xaUoFIcvfI7zalazn5k545RsxOECeXG2k0xJGIAGtJFlianq9Fk+6ICQZdCGS46EEp95zzjYhWc8GQWAdqFVxJ/j6hPP2NXlvjQgvMKQi0hkM/dlc7f2YOYt9JNin8K2m0v/bE3l8JtF3T/VUGYKMhpLquFVRdZP16MUgNc9K0eiGtOqz2HLctez/b3PoHa2VjqyilgUAMFGQRZdlhd+GIC4TNBxiYlbCgiY81sehkM4TXIQrLVJqNeafM1qRtVLssCT4A3mZcmS3QiwMFuhwD6mDKw60brYOWGlcOZ8W4wm8qx3XXDxHfkVengiAZEvTlimTfx2k4gYrRYvXawTmAsSBFZmQom1rfx0IUC9Nfd9q3E08ZWcjaMkqr3hLdVnSr/2j+8D6yJQuuxj6NrCv2EXB5cEPgM9Cya3cLjBO7QzI9hjWsgRBSg2UcDr8Cy/apxIvnJWftLUs5BUv1BvczDxZ8OqiDYUh2LkJBzLG1Z4/ZHxovvWcDy9VKR681cxjBIde2CY2vMYhYyuVcoeQimsinxzFP+N6DyHEsEb/jYGBPkQTUnqh1PtgHouvOSSw8RDoq6JLjSdhEnZ1cHeQ1CTPzjld/Y6QIecLRcCsYif6ZNdCv3rik="
7+
# Following generated with:
8+
# travis encrypt -r MacPython/openblas-libs OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN=<secret token value>
9+
# The value of the existing token can be retrieved at the bottom of the page at:
10+
# https://anaconda.org/multibuild-wheels-staging/settings/access:
11+
# To generate a new token, we need the permissions:
12+
# - "Allow write access to the API site"
13+
# - "Allow uploads to PyPI repositories"
14+
- secure: "vxMRXsnSBczv/u4HF0LT2U/f5wdTosSWmORwcNv8A/46uFK5CExbVj/LqW0e4fnrv2EZX2sDokrC/3nZAvlxRiZSkJ6dR34lU7ysPheD1sTdpVnKFrajcu22gmMmrORQf/v0ntkFYQj/+zRqVGb8QJLxW9bj8mEoWH4vkmnIHyRNuuIeLQrlbU3PeXusQ1/XoCrmlsU9kg8pyTwzfpG00T7BkACbZBYhRK84LCB4pIYgxxWgMKXH8DSqVxsK9egYXZM58YQwIOJGwpqw5XyYH+aKjZqSz1opNbzClWwT3hgAveVgQ7t2rZ8YZ0I6GyphLQ9JId/Vmuza0TjwzlCcexNSsAfolbqiCcwBElNBDpUzNB4bRzyGc3vckE/C+PlDoRL1be0UHoEnyzmIzwhwVrZKOyz7pGkbdtjOoqB5VgoMy04Tnd2l4mkJkx5ub3v7Z0Q74LWKKaZJcXBVIATIjZu43jI9Y9HYV8Ey0CcZY33EjwpOe7wSVgiSDcTv1KUS1tJwZpHX+duJSYMQyWRhkTxKtt8E1FosNQ1fRZMFmY74mAdVPIv9Vn1qgSnOCSkNGlLBIjVCozie0HVlzUk1FhvLtral3b/hp7+6JVjU1sp7HnaS/DtHTq57kceEbT56GxbQopye1zvecnhUp9tohLFeSzk/zJcvXGTIMrJlWnU="
1115
# > 10.6 needed for OpenBLAS 0.3.1 to avoid thread-local storage error
1216
# in memory.c
1317
- MACOSX_DEPLOYMENT_TARGET=10.9
@@ -90,11 +94,8 @@ script:
9094
- build_lib "$PLAT" "$INTERFACE64"
9195

9296
after_success:
93-
# Upload libraries to Rackspace container
94-
- pip install wheelhouse-uploader
95-
# Now disabled because we have lost free
96-
# services with Rackspace
97-
#- python -m wheelhouse_uploader upload --local-folder
98-
# ${TRAVIS_BUILD_DIR}/libs/
99-
# --no-update-index
100-
# wheels
97+
# Upload libraries to the shared staging area on anaconda.org
98+
# Note that the anaconda-client package on PyPI is too old. Install from github
99+
# tag instead:
100+
- pip install -q git+https://github.com/Anaconda-Platform/[email protected]
101+
- upload_to_anaconda

appveyor.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ environment:
77
OPENBLAS_COMMIT: c815b8f
88
OPENBLAS_ROOT: c:\opt
99
MSYS2_ROOT: c:\msys64
10-
WHEELHOUSE_UPLOADER_USERNAME: travis-worker
11-
WHEELHOUSE_UPLOADER_SECRET:
12-
secure: 9s0gdDGnNnTt7hvyNpn0/ZzOMGPdwPp2SewFTfGzYk7uI+rdAN9rFq2D1gAP4NQh
13-
PYTHON: "C:\\Python27"
10+
# The value of the existing token can be retrieved at the bottom of the page at:
11+
# https://anaconda.org/multibuild-wheels-staging/settings/access:
12+
# To generate a new token, we need the permissions:
13+
# - "Allow write access to the API site"
14+
# - "Allow uploads to PyPI repositories"
15+
OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN:
16+
secure: k5Mel0+U/e+KIdJCwtQzuGuekEdCuGTRcoE5fRzFOwvqcqnwUOOtgpQ8wTZFvuXr
17+
PYTHON: "C:\\Python37"
1418

1519
# Need for mingw-builds discussed at
1620
# https://github.com/xianyi/OpenBLAS/issues/1503
@@ -60,14 +64,9 @@ on_finish:
6064
- ps: Get-ChildItem builds\*.* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
6165

6266
on_success:
63-
# Upload the generated package to Rackspace
64-
# On Windows, Apache Libcloud cannot find a standard CA cert bundle so we
65-
# disable the ssl checks.
67+
# Upload libraries to the shared staging area on anaconda.org
68+
# Note that the anaconda-client package on PyPI is too old. Install from github
69+
# tag instead:
6670
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
67-
- pip install wheelhouse-uploader
68-
# Now disabled because we have lost free
69-
# services with Rackspace
70-
#- python -m wheelhouse_uploader upload
71-
# --no-ssl-check --local-folder=builds
72-
# --no-update-index
73-
# wheels
71+
- pip install -q git+https://github.com/Anaconda-Platform/[email protected]
72+
- bash --login %SCRIPT_DIR%upload_to_anaconda_staging.sh
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
# Build script for OpenBLAS on Windows
3+
set -e
4+
5+
our_wd=$(cygpath "$START_DIR")
6+
cd $our_wd
7+
8+
pushd OpenBLAS
9+
VERSION=$(git describe --tags)
10+
popd
11+
12+
if [ "$OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN" == "" ]; then
13+
echo "OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN is not defined: skipping."
14+
else
15+
echo "Uploading OpenBLAS $VERSION to anaconda.org staging:"
16+
ls -lh builds/openblas*.zip
17+
18+
anaconda -t $OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN upload \
19+
--no-progress --force -u multibuild-wheels-staging \
20+
-t file -p "openblas-libs" -v "$VERSION" \
21+
-d "OpenBLAS for multibuild wheels" \
22+
-s "OpenBLAS for multibuild wheels" \
23+
builds/openblas*.zip
24+
fi

travis-ci/build_steps.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,17 @@ function do_build_lib {
134134
$BUILD_PREFIX/lib/libopenblas* \
135135
$BUILD_PREFIX/lib/cmake/openblas
136136
}
137+
138+
function upload_to_anaconda {
139+
if [ "$OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN" == "" ]; then
140+
echo "OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN is not defined: skipping."
141+
else
142+
anaconda -t $OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN upload \
143+
--no-progress --force -u multibuild-wheels-staging \
144+
-t file -p "openblas-libs" \
145+
-v "$(cd OpenBLAS && git describe --tags)" \
146+
-d "OpenBLAS for multibuild wheels" \
147+
-s "OpenBLAS for multibuild wheels" \
148+
libs/openblas*.tar.gz
149+
fi
150+
}

0 commit comments

Comments
 (0)