@@ -25,16 +25,15 @@ The wheel-building repository:
25
25
(Manylinux1 _). ``delocate `` and ``auditwheel `` copy the required dynamic
26
26
libraries into the wheel and relinks the extension modules against the
27
27
copied libraries;
28
- * uploads the built wheels to http://wheels.scipy.org (a Rackspace container
29
- kindly donated by Rackspace to scikit-learn).
28
+ * uploads the built wheels to http://anaconda.org/nipy/nipy
30
29
31
30
The resulting wheels are therefore self-contained and do not need any external
32
31
dynamic libraries apart from those provided as standard by OSX / Linux as
33
32
defined by the manylinux1 standard.
34
33
35
34
The ``.travis.yml `` file in this repository has a line containing the API key
36
- for the Rackspace container encrypted with an RSA key that is unique to the
37
- repository - see http://docs.travis-ci.com/user/encryption-keys. This
35
+ for the Anaconda.org organization encrypted with an RSA key that is unique to
36
+ the repository - see http://docs.travis-ci.com/user/encryption-keys. This
38
37
encrypted key gives the travis build permission to upload to the Rackspace
39
38
directory pointed to by http://wheels.scipy.org.
40
39
@@ -70,67 +69,32 @@ hash.
70
69
Uploading the built wheels to pypi
71
70
==================================
72
71
73
- Be careful, http://wheels.scipy.org points to a container on a distributed
74
- content delivery network. It can take up to 15 minutes for the new wheel file
75
- to get updated into the container at http://wheels.scipy.org.
76
-
77
- The same contents appear at
78
- https://3f23b170c54c2533c070-1c8a9b3114517dc5fe17b7c3f8c63a43.ssl.cf2.rackcdn.com;
79
- you might prefer this address because it is https.
80
-
81
72
When the wheels are updated, you can download them to your machine manually,
82
- and then upload them manually to pypi, or by using twine _. You can also use a
83
- script for doing this, housed at :
84
- https://github.com/MacPython/terryfy/blob/master/wheel-uploader
73
+ and then upload them manually to pypi, or by using twine _.
85
74
86
- For the ``wheel-uploader `` script, you'll need twine and `beautiful soup 4
87
- <bs4> `_.
75
+ To download, use something like::
88
76
89
- You will typically have a directory on your machine where you store wheels,
90
- called a `wheelhouse `. The typical call for `wheel-uploader ` would then
91
- be something like::
77
+ python tools/download-wheels.py 0.5.0 --staging-url=https://anaconda.org/nipy/nipy --prefix=nipy -w wheelhouse
92
78
93
- VERSION=0.4.0
94
- CDN_URL=https://3f23b170c54c2533c070-1c8a9b3114517dc5fe17b7c3f8c63a43.ssl.cf2.rackcdn.com
95
- wheel-uploader -r warehouse -u $CDN_URL -s -v -w ~/wheelhouse -t macosx nipy $VERSION
96
- wheel-uploader -r warehouse -u $CDN_URL -s -v -w ~/wheelhouse -t manylinux1 nipy $VERSION
97
- wheel-uploader -r warehouse -u $CDN_URL -s -v -w ~/wheelhouse -t win nipy $VERSION
79
+ where `0.5.0 ` is the release version.
98
80
99
- where:
81
+ You may want to add the ` sdist ` to the ` wheelhouse `.
100
82
101
- * ``-r warehouse `` uses the upcoming Warehouse PyPI server (it is more
102
- reliable than the current PyPI service for uploads);
103
- * ``-u `` gives the URL from which to fetch the wheels, here the https address,
104
- for some extra security;
105
- * ``-s `` causes twine to sign the wheels with your GPG key;
106
- * ``-v `` means give verbose messages;
107
- * ``-w ~/wheelhouse `` means download the wheels from to the local directory
108
- ``~/wheelhouse ``.
83
+ Then::
109
84
110
- ``nipy `` is the root name of the wheel(s) to download / upload, and ``0.4.0 ``
111
- is the version to download / upload.
85
+ twine upload --sign wheelhouse/*
112
86
113
- In order to use the Warehouse PyPI server , you will need something like this
114
- in your `` ~/.pypirc `` file::
87
+ In order to use Twine , you will need something like this in your `` ~/.pypirc ``
88
+ file::
115
89
116
90
[distutils]
117
91
index-servers =
118
92
pypi
119
- warehouse
120
93
121
94
[pypi]
122
95
username:your_user_name
123
96
password:your_password
124
97
125
- [warehouse]
126
- repository: https://upload.pypi.io/legacy/
127
- username: your_user_name
128
- password: your_password
129
-
130
- So, in this case, ``wheel-uploader `` will download all wheels starting with
131
- ``nipy-0.4.0- `` from http://wheels.scipy.org to ``~/wheelhouse ``, then upload
132
- them to PyPI.
133
-
134
98
Of course, you will need permissions to upload to PyPI, for this to work.
135
99
136
100
.. _manylinux1 : https://www.python.org/dev/peps/pep-0513
0 commit comments