Skip to content

Commit

Permalink
Drop conditional dependencies (#401)
Browse files Browse the repository at this point in the history
Drop conditional dependencies for python <= 2.5
  • Loading branch information
Moutix authored and brandur-stripe committed Feb 27, 2018
1 parent 8ad3452 commit c41ae0f
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,6 @@
path, script = os.path.split(sys.argv[0])
os.chdir(os.path.abspath(path))

install_requires = []

if sys.version_info < (2, 6):
warnings.warn(
'Python 2.5 is no longer officially supported by Stripe. '
'If you have any questions, please file an issue on Github or '
'contact us at support@stripe.com.',
DeprecationWarning)
install_requires.append('requests >= 0.8.8, < 0.10.1')
install_requires.append('ssl')
else:
install_requires.append('requests >= 0.8.8')


with open('LONG_DESCRIPTION.rst') as f:
long_description = f.read()
Expand All @@ -32,14 +19,6 @@
with open(os.path.join('stripe', 'version.py')) as f:
exec(f.read(), version_contents)

# Get simplejson if we don't already have json
if sys.version_info < (3, 0):
try:
from util import json
except ImportError:
install_requires.append('simplejson')


setup(
name='stripe',
version=version_contents['VERSION'],
Expand All @@ -52,7 +31,9 @@
packages=['stripe', 'stripe.api_resources',
'stripe.api_resources.abstract'],
package_data={'stripe': ['data/ca-certificates.crt']},
install_requires=install_requires,
install_requires=[
'requests >= 0.8.8',
],
test_suite='tests',
tests_require=['unittest2', 'mock'],
classifiers=[
Expand Down

0 comments on commit c41ae0f

Please sign in to comment.