Skip to content

Commit

Permalink
Ограничил возможные версии requests для Python 2.6, потому что он не …
Browse files Browse the repository at this point in the history
…поддерживается с версии 2.20.0
  • Loading branch information
igor-shevchenko committed Oct 26, 2018
1 parent 88e0ba2 commit 2be6393
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import re
import sys
from setuptools import setup
from io import open

Expand All @@ -9,6 +10,12 @@
# PyPI can't process links with anchors
long_description = re.sub(r'<(.*)#.*>`_', '<\g<1>>`_', long_description)

if sys.version_info >= (2,7):
requests_install_requires = 'requests >=2.9.1'
else:
# Requests 2.20.0+ doesn't support Python 2.6
requests_install_requires = 'requests >=2.9.1, <2.20.0'


setup(
name = 'cloudpayments',
Expand All @@ -32,7 +39,7 @@
],

install_requires = [
'requests >=2.9.1',
requests_install_requires,
'pytz >=2015.7'
],

Expand Down

0 comments on commit 2be6393

Please sign in to comment.