Skip to content

Commit 7a22589

Browse files
committed
Build wheel
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at> (cherry picked from commit 8aa4ddf) (cherry picked from commit 886e8e0) (cherry picked from commit 1caf243)
1 parent cf7b14f commit 7a22589

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

README.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ Dependencies
1818
* watchdog (optional, for monitoring imported modules for changes)
1919
* jedi (optional, for experimental multiline completion)
2020

21-
If you are using Python 2 on Mac OS X, the following dependencies are required
22-
as well:
21+
If you are using Python 2 before 2.7.7, the following dependency is also
22+
required:
2323

24-
* pyOpenSSL
25-
* ndg-httpsclien
26-
* pyasn1
24+
* requests[security]
2725

2826
If you have problems installing cffi which is needed by pyOpenSSL,
2927
please take a look at https://cffi.readthedocs.org/en/release-0.8/#macos-x.

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal = 1

setup.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,17 @@ def initialize_options(self):
220220
'urwid': ['urwid'],
221221
'watch': ['watchdog'],
222222
'jedi': ['jedi'],
223+
# need requests[security] for SNI support (only before 2.7.7)
224+
':python_version == "2.6" or '
225+
'python_full_version == "2.7.0" or ' \
226+
'python_full_version == "2.7.1" or ' \
227+
'python_full_version == "2.7.2" or ' \
228+
'python_full_version == "2.7.3" or ' \
229+
'python_full_version == "2.7.4" or ' \
230+
'python_full_version == "2.7.5" or ' \
231+
'python_full_version == "2.7.6"': [
232+
'requests[security]'
233+
]
223234
}
224235

225236
packages = [
@@ -240,14 +251,6 @@ def initialize_options(self):
240251
]
241252
}
242253

243-
if sys.version_info[0] == 2 and sys.platform == "darwin":
244-
# need PyOpenSSL for SNI support (only 2.X and on Darwin)
245-
# list of packages taken from
246-
# https://github.com/kennethreitz/requests/blob/master/requests/packages/urllib3/contrib/pyopenssl.py
247-
install_requires.append('PyOpenSSL')
248-
install_requires.append('ndg-httpsclient')
249-
install_requires.append('pyasn1')
250-
251254
tests_require = []
252255
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
253256
tests_require.append('unittest2')

0 commit comments

Comments
 (0)