-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (61 loc) · 1.87 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
import os
import sys
import djstripe
version = djstripe.__version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
print("Tagging the version on github:")
os.system("git tag -a %s -m 'version %s'" % (version, version))
os.system("git push --tags")
sys.exit()
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
INSTALL_REQUIRES = [
'django>=1.4',
'stripe>=1.9.2',
'django-model-utils>=1.4.0',
'django-braces>=1.2.1',
'django-jsonfield>=0.9.10',
'django-tables2',
'django-bootstrap-toolkit'
]
# Add ordereddict to users of Python 2.6.
if sys.version > "2.6" and sys.version < "2.7":
INSTALL_REQUIRES += ["ordereddict>=1.1"]
setup(
name='dj-stripe',
version=version,
description=djstripe.__summary__,
long_description=readme + '\n\n' + history,
author=djstripe.__author__,
author_email=djstripe.__email__,
url=djstripe.__uri__,
packages=[
'djstripe',
],
package_dir={'djstripe': 'djstripe'},
include_package_data=True,
install_requires=INSTALL_REQUIRES,
license=djstripe.__license__,
zip_safe=False,
keywords='stripe django',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3'
],
)