Files
deb-python-pecan/setup.py
2012-03-08 13:07:58 -05:00

82 lines
2.4 KiB
Python

from setuptools import setup, find_packages
version = '0.1.0'
#
# determine requirements
#
requirements = [
"WebOb >= 1.0.0",
"WebCore >= 1.0.0",
"simplegeneric >= 0.7",
"Mako >= 0.4.0",
"Paste >= 1.7.5.1",
"PasteScript >= 1.7.3",
"formencode >= 1.2.2",
"WebTest >= 1.2.2"
]
try:
import json
except:
try:
import simplejson
except:
requirements.append("simplejson >= 2.1.1")
test_suite = 'pecan.tests.collector'
try:
from unittest import TestLoader
assert hasattr(TestLoader, 'discover')
tests_require = []
except:
tests_require = ['unittest2']
#
# call setup
#
setup(
name = 'pecan',
version = version,
description = "A WSGI object-dispatching web framework, designed to be lean and fast, with few dependancies.",
long_description = None,
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Software Development :: Libraries :: Application Frameworks'
],
keywords = 'web framework wsgi object-dispatch http',
author = 'Jonathan LaCour, Ryan Petrello, Mark McClain, Yoann Roman, Jeremy Jones, Alfredo Deza, Benjamin W. Smith',
author_email = 'jonathan@cleverdevil.org',
url = 'http://github.com/pecan/pecan',
license = 'BSD',
packages = find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data = True,
scripts = ['bin/pecan'],
zip_safe = False,
install_requires = requirements,
test_suite = 'pecan',
entry_points = """
[paste.paster_command]
pecan-serve = pecan.commands:ServeCommand
pecan-shell = pecan.commands:ShellCommand
pecan-create = pecan.commands:CreateCommand
[paste.paster_create_template]
pecan-base = pecan.templates:BaseTemplate
[console_scripts]
pecan = pecan.commands:CommandRunner.handle_command_line
""",
)