Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop conditional dependencies #401

Merged
merged 2 commits into from
Feb 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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