comparison setup.py @ 22:9459d63c1558

Added full support for Python 3
author Ben Croston <ben@croston.org>
date Sun, 01 Jan 2012 15:50:18 +0000
parents 4b62687da58a
children 346114023528
comparison
equal deleted inserted replaced
21:6df12f09f4f4 22:9459d63c1558
11 'Programming Language :: Python :: 2.7', 11 'Programming Language :: Python :: 2.7',
12 'Programming Language :: Python :: 3', 12 'Programming Language :: Python :: 3',
13 'Topic :: Software Development', 13 'Topic :: Software Development',
14 'Topic :: Internet :: WWW/HTTP :: WSGI'] 14 'Topic :: Internet :: WWW/HTTP :: WSGI']
15 15
16 install_requires = []
17 exclude = []
18 extra = {} 16 extra = {}
19
20 if platform.python_version().startswith('2'):
21 # we can build server with python 2
22 install_requires.append('webob>=1.0.0')
23
24 if platform.python_version().startswith('3'): 17 if platform.python_version().startswith('3'):
25 # we can't build server with python 3
26 exclude.append('AuthRPC.server')
27 extra['use_2to3'] = True 18 extra['use_2to3'] = True
28 19
29 setup(name = 'AuthRPC', 20 setup(name = 'AuthRPC',
30 version = '0.0.2a', 21 version = '0.1.0a',
31 packages = find_packages(exclude=exclude), 22 packages = find_packages(),
32 install_requires = install_requires, 23 install_requires = 'WebOb>=1.2b2',
33 author = 'Ben Croston', 24 author = 'Ben Croston',
34 author_email = 'ben@croston.org', 25 author_email = 'ben@croston.org',
35 description = 'A JSONRPC-like client and server with additions to enable authenticated requests', 26 description = 'A JSONRPC-like client and server with additions to enable authenticated requests',
36 long_description = open('README.txt').read(), 27 long_description = open('README.txt').read() + open('CHANGELOG.txt').read(),
37 license = 'MIT', 28 license = 'MIT',
38 keywords = 'json, rpc, wsgi, auth', 29 keywords = 'json, rpc, wsgi, auth',
39 url = 'http://www.wyre-it.co.uk/authrpc/', 30 url = 'http://www.wyre-it.co.uk/authrpc/',
40 classifiers = classifiers, 31 classifiers = classifiers,
41 platforms = ['Any'], 32 platforms = ['Any'],