90 lines
2.4 KiB
Python
90 lines
2.4 KiB
Python
import sys
|
|
from setuptools import setup, find_packages
|
|
from setuptools.command.test import test as TestCommand
|
|
|
|
version = '0.2.1'
|
|
|
|
#
|
|
# determine requirements
|
|
#
|
|
requirements = [
|
|
"WebOb >= 1.2dev", # py3 compat
|
|
"simplegeneric >= 0.8", # py3 compat
|
|
"Mako >= 0.4.0",
|
|
"WebTest >= 1.3.1" # py3 compat
|
|
]
|
|
|
|
try:
|
|
import json # noqa
|
|
except:
|
|
try:
|
|
import simplejson # noqa
|
|
except:
|
|
requirements.append("simplejson >= 2.1.1")
|
|
|
|
try:
|
|
import argparse # noqa
|
|
except:
|
|
requirements.append('argparse')
|
|
|
|
tests_require = requirements + [
|
|
'virtualenv',
|
|
'Genshi',
|
|
'Kajiki',
|
|
'Jinja2',
|
|
'gunicorn',
|
|
'mock'
|
|
]
|
|
if sys.version_info < (2, 7):
|
|
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',
|
|
'Programming Language :: Python :: 2.6',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Topic :: Internet :: WWW/HTTP :: WSGI',
|
|
'Topic :: Software Development :: Libraries :: Application Frameworks'
|
|
],
|
|
keywords='web framework wsgi object-dispatch http',
|
|
author='Jonathan LaCour',
|
|
author_email='info@pecanpy.org',
|
|
url='http://github.com/dreamhost/pecan',
|
|
license='BSD',
|
|
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
|
|
include_package_data=True,
|
|
scripts=['bin/pecan'],
|
|
zip_safe=False,
|
|
install_requires=requirements,
|
|
tests_require=tests_require,
|
|
test_suite='pecan',
|
|
entry_points="""
|
|
[pecan.command]
|
|
serve = pecan.commands:ServeCommand
|
|
shell = pecan.commands:ShellCommand
|
|
create = pecan.commands:CreateCommand
|
|
[pecan.scaffold]
|
|
base = pecan.scaffolds:BaseScaffold
|
|
[console_scripts]
|
|
pecan = pecan.commands:CommandRunner.handle_command_line
|
|
gunicorn_pecan = pecan.commands.serve:gunicorn_run
|
|
"""
|
|
)
|