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',
|
|
11 'Programming Language :: Python :: 2.6',
|
0
|
12 'Programming Language :: Python :: 2.7',
|
|
13 'Programming Language :: Python :: 3',
|
|
14 'Topic :: Software Development',
|
4
|
15 'Topic :: Internet :: WWW/HTTP :: WSGI']
|
|
16
|
|
17 install_requires = []
|
|
18 exclude = []
|
|
19 extra = {}
|
0
|
20
|
|
21 if platform.python_version().startswith('2'):
|
4
|
22 # we can build server with python 2
|
|
23 install_requires.append('webob>=1.0.0')
|
|
24 extra['test_suite'] = 'wibble.tests.suite'
|
|
25
|
|
26 if platform.python_version().startswith('3'):
|
|
27 # we can't build server with python 3
|
|
28 exclude.append('wibble.server')
|
|
29 extra['use_2to3'] = True
|
0
|
30
|
|
31 setup(name = 'Wibble',
|
|
32 version = '0.0.1a',
|
4
|
33 packages = find_packages(exclude=exclude),
|
0
|
34 install_requires = install_requires,
|
|
35 author = 'Ben Croston',
|
|
36 author_email = 'ben@croston.org',
|
|
37 description = 'Stick two pencils up your nose, underpants on your head then run this module.',
|
|
38 long_description = open('README.txt').read(),
|
|
39 license = 'MIT',
|
|
40 keywords = 'jsonrpc',
|
4
|
41 url = 'http://www.wyre-it.co.uk/wibble/',
|
|
42 classifiers = classifiers,
|
|
43 platforms = ['Any'],
|
|
44 **extra)
|
0
|
45
|