0
|
1 #!/usr/bin/env python
|
|
2 import distribute_setup
|
|
3 distribute_setup.use_setuptools()
|
|
4 from setuptools import setup, find_packages
|
1
|
5 import platform
|
0
|
6
|
|
7 classifiers = ['Development Status :: 3 - Alpha',
|
4
|
8 'Operating System :: OS Independent',
|
0
|
9 'License :: OSI Approved :: MIT License',
|
4
|
10 'Intended Audience :: Developers',
|
0
|
11 'Programming Language :: Python :: 2.7',
|
|
12 'Programming Language :: Python :: 3',
|
|
13 'Topic :: Software Development',
|
4
|
14 'Topic :: Internet :: WWW/HTTP :: WSGI']
|
|
15
|
|
16 install_requires = []
|
|
17 exclude = []
|
|
18 extra = {}
|
0
|
19
|
|
20 if platform.python_version().startswith('2'):
|
4
|
21 # we can build server with python 2
|
|
22 install_requires.append('webob>=1.0.0')
|
|
23
|
|
24 if platform.python_version().startswith('3'):
|
|
25 # we can't build server with python 3
|
17
|
26 exclude.append('AuthRPC.server')
|
4
|
27 extra['use_2to3'] = True
|
0
|
28
|
15
|
29 setup(name = 'AuthRPC',
|
0
|
30 version = '0.0.1a',
|
4
|
31 packages = find_packages(exclude=exclude),
|
0
|
32 install_requires = install_requires,
|
|
33 author = 'Ben Croston',
|
|
34 author_email = 'ben@croston.org',
|
15
|
35 description = 'A JSONRPC-like client and server with additions to enable authentication',
|
0
|
36 long_description = open('README.txt').read(),
|
|
37 license = 'MIT',
|
15
|
38 keywords = 'json, rpc, wsgi, auth',
|
|
39 url = 'http://www.wyre-it.co.uk/authrpc/',
|
4
|
40 classifiers = classifiers,
|
|
41 platforms = ['Any'],
|
15
|
42 test_suite = 'AuthRPC.tests.suite',
|
4
|
43 **extra)
|
0
|
44
|