Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a33d8f1

Browse files
tbarbuglidwightgunning
authored andcommitted
Let requests install SSL libs on old Python
Also tidies up travis config.
1 parent 48ba762 commit a33d8f1

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

.travis.yml

-12
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,9 @@ python:
77
- 3.4
88
- 3.5
99
- 3.6
10-
# These are allowed to fail
11-
- '3.5-dev' # 3.5 development branch
12-
- '3.6-dev' # 3.6 development branch
13-
- 'nightly' # currently points to 3.7-dev
14-
- 'pypy'
15-
- 'pypy3.3-5.2-alpha1'
1610

1711
matrix:
1812
fast_finish: true
19-
allow_failures:
20-
- python: '3.5-dev' # 3.5 development branch
21-
- python: '3.6-dev' # 3.6 development branch
22-
- python: 'nightly'
23-
- python: 'pypy'
24-
- python: 'pypy3.3-5.2-alpha1'
2513

2614
cache: pip
2715
notifications:

setup.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,18 @@
2626
.. _`Github`: https://github.com/GetStream/stream-python
2727
'''
2828

29+
requests = 'requests>=2.3.0,<3'
30+
31+
if sys.version_info < (2, 7, 9):
32+
requests = 'requests[security]>=2.4.1,<3'
33+
2934
install_requires = [
3035
'pyjwt==1.3.0',
31-
'requests>=2.2.1',
36+
requests,
3237
'six>=1.8.0',
3338
'httpsig==1.1.2'
3439
]
3540

36-
3741
class PyTest(TestCommand):
3842

3943
def finalize_options(self):

0 commit comments

Comments
 (0)