Chris McDonough
2011-12-15 02ad73df386ffbf1affbd92df839adf838474cbd
commit | author | age
612d74 1 ##############################################################################
CM 2 #
92e9f8 3 # Copyright (c) 2008-2011 Agendaless Consulting and Contributors.
612d74 4 # All Rights Reserved.
CM 5 #
6 # This software is subject to the provisions of the BSD-like license at
7 # http://www.repoze.org/LICENSE.txt.  A copy of the license should accompany
8 # this distribution.  THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL
9 # EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO,
10 # THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND
11 # FITNESS FOR A PARTICULAR PURPOSE
12 #
13 ##############################################################################
14
15 import os
1e0e9b 16 import platform
a9fed7 17 import sys
612d74 18
CM 19 from setuptools import setup, find_packages
20
21 here = os.path.abspath(os.path.dirname(__file__))
357b40 22 try:
90d620 23     README = open(os.path.join(here, 'README.rst')).read()
357b40 24     CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
CM 25 except IOError:
26     README = CHANGES = ''
01a6e5 27
CM 28 install_requires=[
7534ba 29     'Chameleon >= 1.2.3',
81e648 30     'Mako >= 0.3.6', # strict_undefined
e218b2 31     'Paste > 1.7', # temp version pin to prevent PyPi install failure :-(
cb349c 32     'PasteDeploy',
eef972 33     'PasteScript >= 1.7.4', # "here" in logging fileConfig
0f7831 34     'WebOb >= 1.0.2', # no "default_charset"; request.script_name doesnt error
813d95 35     'repoze.lru',
CM 36     'setuptools',
92bb88 37     'zope.component >= 3.6.0', # independent of zope.hookable
CM 38     'zope.interface >= 3.5.1',   # 3.5.0 comment: "allow to bootstrap on jython"
79ef3d 39     'zope.deprecation',
1aeae3 40     'venusian >= 1.0a1', # ``onerror``
7534ba 41     'translationstring',
01a6e5 42     ]
612d74 43
1e0e9b 44 if platform.system() == 'Java':
0dde01 45     tests_require = install_requires + [
CM 46         'WebTest',
47         'virtualenv',
48         ]
1e0e9b 49 else:
0dde01 50     tests_require= install_requires + [
CM 51         'Sphinx',
52         'docutils',
53         'repoze.sphinx.autointerface',
54         'WebTest', 
55         'virtualenv',
56         ]
1e0e9b 57
a9fed7 58 if sys.version_info[:2] < (2, 6):
CM 59     install_requires.append('simplejson')
60     
b60bdb 61 setup(name='pyramid',
02ad73 62       version='1.2.5',
d9b52b 63       description=('The Pyramid web application development framework, a '
CM 64                    'Pylons project'),
612d74 65       long_description=README + '\n\n' +  CHANGES,
CM 66       classifiers=[
67         "Intended Audience :: Developers",
68         "Programming Language :: Python",
b60bdb 69         "Framework :: Pylons",
612d74 70         "Topic :: Internet :: WWW/HTTP",
CM 71         "Topic :: Internet :: WWW/HTTP :: WSGI",
c35ca1 72         "License :: Repoze Public License",
612d74 73         ],
e8e655 74       keywords='web wsgi pylons pyramid',
4dc529 75       author="Chris McDonough, Agendaless Consulting",
52d4fb 76       author_email="pylons-devel@googlegroups.com",
342267 77       url="http://pylonsproject.org",
612d74 78       license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
CM 79       packages=find_packages(),
80       include_package_data=True,
81       zip_safe=False,
01a6e5 82       install_requires = install_requires,
1e0e9b 83       tests_require = tests_require,
beb87d 84       test_suite="pyramid.tests",
612d74 85       entry_points = """\
b5c35e 86         [paste.paster_create_template]
810942 87         pyramid_starter=pyramid.scaffolds:StarterProjectTemplate
CM 88         pyramid_zodb=pyramid.scaffolds:ZODBProjectTemplate
89         pyramid_routesalchemy=pyramid.scaffolds:RoutesAlchemyProjectTemplate
90         pyramid_alchemy=pyramid.scaffolds:AlchemyProjectTemplate
156375 91         [paste.paster_command]
6a3184 92         pshell=pyramid.paster:PShellCommand
90a327 93         proutes=pyramid.paster:PRoutesCommand
66cda3 94         pviews=pyramid.paster:PViewsCommand
b4843b 95         ptweens=pyramid.paster:PTweensCommand
68a711 96         [console_scripts]
CM 97         bfg2pyramid = pyramid.fixers.fix_bfg_imports:main
210f7d 98         [paste.server_runner]
CM 99         wsgiref = pyramid.paster:wsgiref_server_runner
100         cherrypy = pyramid.paster:cherrypy_server_runner
612d74 101       """
CM 102       )
103