Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 43 lines (37 sloc) 1.344 kb
5775432 @hmarr Add license, ReST readme, setup.py
hmarr authored
1 from setuptools import setup, find_packages
2 import os
8ae4b11 @alexjg Added setup.py
alexjg authored
3
5775432 @hmarr Add license, ReST readme, setup.py
hmarr authored
4 DESCRIPTION = "The Python client library for the GoCardless API"
5
6 LONG_DESCRIPTION = None
7 try:
8 LONG_DESCRIPTION = open('README.rst').read()
9 except:
10 pass
11
12 # Dirty hack to get version number from __init__.py - we can't import it as it
13 # depends on requests and requests isn't installed until this file is read
14 init = os.path.join(os.path.dirname(__file__), 'gocardless', '__init__.py')
1763a1f @alexjg Fixing version line hack in setup.py
alexjg authored
15 version_line = [line for line in open(init) if line.startswith("VERSION")][0]
5775432 @hmarr Add license, ReST readme, setup.py
hmarr authored
16 version = '.'.join(str(p) for p in eval(version_line.split('=')[-1]))
8ae4b11 @alexjg Added setup.py
alexjg authored
17
5775432 @hmarr Add license, ReST readme, setup.py
hmarr authored
18 CLASSIFIERS = [
19 'Development Status :: 4 - Beta',
20 'Intended Audience :: Developers',
21 'License :: OSI Approved :: MIT License',
22 'Operating System :: OS Independent',
23 'Programming Language :: Python',
24 'Topic :: Software Development :: Libraries :: Python Modules',
25 ]
26
27 setup(
28 name='gocardless',
e3a06d7 @hmarr Fix setup.py
hmarr authored
29 version=version,
5775432 @hmarr Add license, ReST readme, setup.py
hmarr authored
30 packages=find_packages(),
31 author='GoCardless',
32 author_email='developers@{nospam}gocardless.com',
33 url='https://gocardless.com/docs/python/merchant_client_guide',
34 license='MIT',
35 include_package_data=True,
36 description=DESCRIPTION,
37 long_description=LONG_DESCRIPTION,
38 platforms=['any'],
39 classifiers=CLASSIFIERS,
40 install_requires=['requests'],
b32fdd4 @hmarr Fix test dir in setup.py
hmarr authored
41 test_suite='test',
5775432 @hmarr Add license, ReST readme, setup.py
hmarr authored
42 )
Something went wrong with that request. Please try again.