Mercurial > hg > AuthRPC
comparison setup.py @ 4:ad5a8748afcf
Add test framework
author | Ben Croston <ben@croston.org> |
---|---|
date | Wed, 31 Aug 2011 21:35:14 +0100 |
parents | 43595981978d |
children | 685479d1f0a7 |
comparison
equal
deleted
inserted
replaced
3:43595981978d | 4:ad5a8748afcf |
---|---|
3 distribute_setup.use_setuptools() | 3 distribute_setup.use_setuptools() |
4 from setuptools import setup, find_packages | 4 from setuptools import setup, find_packages |
5 import platform | 5 import platform |
6 | 6 |
7 classifiers = ['Development Status :: 3 - Alpha', | 7 classifiers = ['Development Status :: 3 - Alpha', |
8 'Operating System :: Microsoft :: Windows', | 8 'Operating System :: OS Independent', |
9 'Operating System :: Unix', | |
10 "Operating System :: MacOS :: MacOS X", | |
11 'License :: OSI Approved :: MIT License', | 9 'License :: OSI Approved :: MIT License', |
10 'Intended Audience :: Developers', | |
11 'Programming Language :: Python :: 2.6', | |
12 'Programming Language :: Python :: 2.7', | 12 'Programming Language :: Python :: 2.7', |
13 'Programming Language :: Python :: 3', | 13 'Programming Language :: Python :: 3', |
14 'Topic :: Software Development', | 14 'Topic :: Software Development', |
15 'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware', | 15 'Topic :: Internet :: WWW/HTTP :: WSGI'] |
16 'Topic :: Internet :: WWW/HTTP :: HTTP Servers'] | 16 |
17 install_requires = [] | |
18 exclude = [] | |
19 extra = {} | |
17 | 20 |
18 if platform.python_version().startswith('2'): | 21 if platform.python_version().startswith('2'): |
19 # python 2.x | 22 # we can build server with python 2 |
20 packages = find_packages() | 23 install_requires.append('webob>=1.0.0') |
21 install_requires = ['webob>=1.0.0'] | 24 extra['test_suite'] = 'wibble.tests.suite' |
22 else: | 25 |
23 # assume python 3.x | 26 if platform.python_version().startswith('3'): |
24 packages = find_packages(exclude=['server']) | 27 # we can't build server with python 3 |
25 install_requires = [] | 28 exclude.append('wibble.server') |
29 extra['use_2to3'] = True | |
26 | 30 |
27 setup(name = 'Wibble', | 31 setup(name = 'Wibble', |
28 version = '0.0.1a', | 32 version = '0.0.1a', |
29 packages = packages, | 33 packages = find_packages(exclude=exclude), |
30 install_requires = install_requires, | 34 install_requires = install_requires, |
31 author = 'Ben Croston', | 35 author = 'Ben Croston', |
32 author_email = 'ben@croston.org', | 36 author_email = 'ben@croston.org', |
33 description = 'Stick two pencils up your nose, underpants on your head then run this module.', | 37 description = 'Stick two pencils up your nose, underpants on your head then run this module.', |
34 long_description = open('README.txt').read(), | 38 long_description = open('README.txt').read(), |
35 license = 'MIT', | 39 license = 'MIT', |
36 keywords = 'jsonrpc', | 40 keywords = 'jsonrpc', |
37 url = 'http://www.wyre-it.co.uk/wibble/', | 41 url = 'http://www.wyre-it.co.uk/wibble/', |
38 classifiers = classifiers, | 42 classifiers = classifiers, |
39 use_2to3 = True) | 43 platforms = ['Any'], |
44 **extra) | |
40 | 45 |