forked from pyroutes/pyroutes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (44 loc) · 1.55 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python
# encoding: utf-8
from distutils.core import setup
import os
import sys
kwargs = {}
packages = ['pyroutes', 'pyroutes.http', 'pyroutes.template', 'pyroutes.contrib', 'pyroutes.middleware']
try:
import setuptools
kwargs['use_2to3'] = True
if len(sys.argv) > 1 and sys.argv[1] == 'test':
packages.append('tests')
kwargs['test_suite'] = 'tests'
except ImportError:
pass
base_dir = os.path.dirname(__file__)
long_description = open(os.path.join(base_dir, 'README.rst')).read()
setup(
name = "pyroutes",
version = "0.4.1",
author_email = '[email protected]',
author = 'Kristian Klette',
description = "A small WSGI wrapper for creating small python web apps",
license = 'GPLv2',
long_description = long_description,
url = 'http://github.com/pyroutes/pyroutes',
package_data = {'pyroutes': ['default_templates/*.xml', 'default_templates/fileserver/*.xml']},
packages = packages,
requires = ['wsgiref'],
scripts = ['bin/pyroutes-admin.py'],
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Software Development :: Libraries :: Python Modules',
'Operating System :: OS Independent',
],
**kwargs
)