mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 18:44:19 +08:00
Merge pull request #1046 from stefanv/osx_wheels
Add OSX wheel generation instructions and upload script
This commit is contained in:
+10
@@ -26,6 +26,7 @@ How to make a new release of ``skimage``
|
||||
place. Double check ``random.js``, otherwise the skimage.org front
|
||||
page gets broken!
|
||||
- Build using ``make gh-pages``.
|
||||
- Update the symlink to ``stable``.
|
||||
- Push upstream: ``git push origin gh-pages`` in ``doc/gh-pages``.
|
||||
|
||||
- Add the version number as a tag in git::
|
||||
@@ -41,6 +42,15 @@ How to make a new release of ``skimage``
|
||||
python setup.py register
|
||||
python setup.py sdist upload
|
||||
|
||||
Go to https://travis-ci.org/scikit-image/scikit-image-wheels, select the
|
||||
"Current" tab, and click (on the right) on the "Restart Build" icon. After
|
||||
the wheels become available at http://wheels.scikit-image.org/ (approx 15
|
||||
mins), execute ``tools/osx_wheel_upload.sh``. Note that, if you rebuild the
|
||||
same wheels, it can take up to 15 minutes for the the files in the http
|
||||
directory to update to the versions that Travis-CI uploaded. You may want to
|
||||
check the timestamps in the http directory listing to check that you will get
|
||||
the latest version.
|
||||
|
||||
- Increase the version number
|
||||
|
||||
- In ``setup.py``, set to ``0.Xdev``.
|
||||
|
||||
Executable
+30
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
# Script to download / check and upload scikit_image wheels for release
|
||||
RACKSPACE_URL=http://wheels.scikit-image.org
|
||||
if [ "`which twine`" == "" ]; then
|
||||
echo "twine not on path; need to pip install twine?"
|
||||
exit 1
|
||||
fi
|
||||
SK_VERSION=`git describe --tags`
|
||||
if [ "${SK_VERSION:0:1}" != 'v' ]; then
|
||||
echo "scikit image version $SK_VERSION does not start with 'v'"
|
||||
exit 1
|
||||
fi
|
||||
WHEEL_HEAD="scikit_image-${SK_VERSION:1}"
|
||||
WHEEL_TAIL="macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl"
|
||||
mkdir -p wheels
|
||||
cd wheels
|
||||
rm -rf *.whl
|
||||
for py_tag in cp27-none cp33-cp33m cp34-cp34m
|
||||
do
|
||||
wheel_name="$WHEEL_HEAD-$py_tag-$WHEEL_TAIL"
|
||||
wheel_url="${RACKSPACE_URL}/${wheel_name}"
|
||||
echo "Fetching $wheel_url"
|
||||
curl -O $wheel_url
|
||||
if [ "$?" != "0" ]; then
|
||||
echo "Failed downloading $wheel_url; check travis build?"
|
||||
exit $?
|
||||
fi
|
||||
done
|
||||
cd ..
|
||||
twine upload wheels/*.whl
|
||||
Reference in New Issue
Block a user