comparison setup.py @ 32:fdddfd434bbd 0.3.2a

- Remove dependency on distribute - Tidy up pypi package contents
author Ben Croston <ben@croston.org>
date Sat, 19 Oct 2013 21:23:45 +0100
parents a99009a7013c
children
comparison
equal deleted inserted replaced
31:183a9b11c78f 32:fdddfd434bbd
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 import distribute_setup 2 from distutils.core import setup
3 distribute_setup.use_setuptools() 3 try:
4 from setuptools import setup, find_packages 4 from distutils.command.build_py import build_py_2to3 as build_py
5 import platform 5 except ImportError:
6 from distutils.command.build_py import build_py
6 7
7 classifiers = ['Development Status :: 3 - Alpha', 8 classifiers = ['Development Status :: 3 - Alpha',
8 'Operating System :: OS Independent', 9 'Operating System :: OS Independent',
9 'License :: OSI Approved :: MIT License', 10 'License :: OSI Approved :: MIT License',
10 'Intended Audience :: Developers', 11 'Intended Audience :: Developers',
11 'Programming Language :: Python :: 2.7', 12 'Programming Language :: Python :: 2.7',
12 'Programming Language :: Python :: 3', 13 'Programming Language :: Python :: 3',
13 'Topic :: Software Development', 14 'Topic :: Software Development',
14 'Topic :: Internet :: WWW/HTTP :: WSGI'] 15 'Topic :: Internet :: WWW/HTTP :: WSGI']
15 16
16 extra = {}
17 if platform.python_version().startswith('3'):
18 extra['use_2to3'] = True
19
20 setup(name = 'AuthRPC', 17 setup(name = 'AuthRPC',
21 version = '0.3.1a', 18 version = '0.3.2a',
22 packages = find_packages(), 19 packages = ['AuthRPC', 'AuthRPC.server', 'AuthRPC.client'],
23 install_requires = 'WebOb>=1.2b3', 20 install_requires = 'WebOb>=1.2.3',
24 author = 'Ben Croston', 21 author = 'Ben Croston',
25 author_email = 'ben@croston.org', 22 author_email = 'ben@croston.org',
26 description = 'A JSONRPC-like client and server with additions to enable authenticated requests', 23 description = 'A JSONRPC-like client and server with additions to enable authenticated requests',
27 long_description = open('README.txt').read() + open('CHANGELOG.txt').read(), 24 long_description = open('README.txt').read() + open('CHANGELOG.txt').read(),
28 license = 'MIT', 25 license = 'MIT',
29 keywords = 'json, rpc, wsgi, auth', 26 keywords = 'json, rpc, wsgi, auth',
30 url = 'http://www.wyre-it.co.uk/authrpc/', 27 url = 'http://www.wyre-it.co.uk/authrpc/',
31 classifiers = classifiers, 28 classifiers = classifiers,
32 platforms = ['Any'], 29 platforms = ['Any'],
33 test_suite = 'AuthRPC.tests.suite', 30 cmdclass = {'build_py': build_py})
34 **extra)
35