Chris McDonough
2011-06-26 1ba6fe34b9f37594d926cc63b6219ad61dbeebb6
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',
cbdc36 33     'PasteScript',
0f7831 34     'WebOb >= 1.0.2', # no "default_charset"; request.script_name doesnt error
813d95 35     'repoze.lru',
CM 36     'setuptools',
ba9b0e 37     'zope.component >= 3.6.0', # independent of zope.hookable
103efb 38     'zope.configuration',
1add63 39     'zope.deprecation',
813d95 40     'zope.interface >= 3.5.1',  # 3.5.0 comment: "allow to bootstrap on jython"
14b78b 41     'venusian >= 0.5', # ``codeinfo``
7534ba 42     'translationstring',
01a6e5 43     ]
612d74 44
1e0e9b 45 if platform.system() == 'Java':
bac455 46     tests_require = install_requires + ['WebTest', 'virtualenv']
1e0e9b 47 else:
1e467e 48     tests_require= install_requires + ['Sphinx', 'docutils', 
bac455 49                                        'WebTest', 'repoze.sphinx.autointerface',
CM 50                                        'virtualenv']
1e0e9b 51
a9fed7 52 if sys.version_info[:2] < (2, 6):
CM 53     install_requires.append('simplejson')
54     
b60bdb 55 setup(name='pyramid',
1ba6fe 56       version='1.1a3',
d9b52b 57       description=('The Pyramid web application development framework, a '
CM 58                    'Pylons project'),
612d74 59       long_description=README + '\n\n' +  CHANGES,
CM 60       classifiers=[
61         "Intended Audience :: Developers",
62         "Programming Language :: Python",
b60bdb 63         "Framework :: Pylons",
612d74 64         "Topic :: Internet :: WWW/HTTP",
CM 65         "Topic :: Internet :: WWW/HTTP :: WSGI",
c35ca1 66         "License :: Repoze Public License",
612d74 67         ],
e8e655 68       keywords='web wsgi pylons pyramid',
4dc529 69       author="Chris McDonough, Agendaless Consulting",
52d4fb 70       author_email="pylons-devel@googlegroups.com",
342267 71       url="http://pylonsproject.org",
612d74 72       license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
CM 73       packages=find_packages(),
74       include_package_data=True,
75       zip_safe=False,
01a6e5 76       install_requires = install_requires,
1e0e9b 77       tests_require = tests_require,
b60bdb 78       test_suite="pyramid.tests",
612d74 79       entry_points = """\
b5c35e 80         [paste.paster_create_template]
810942 81         pyramid_starter=pyramid.scaffolds:StarterProjectTemplate
CM 82         pyramid_zodb=pyramid.scaffolds:ZODBProjectTemplate
83         pyramid_routesalchemy=pyramid.scaffolds:RoutesAlchemyProjectTemplate
84         pyramid_alchemy=pyramid.scaffolds:AlchemyProjectTemplate
156375 85         [paste.paster_command]
6a3184 86         pshell=pyramid.paster:PShellCommand
90a327 87         proutes=pyramid.paster:PRoutesCommand
66cda3 88         pviews=pyramid.paster:PViewsCommand
68a711 89         [console_scripts]
CM 90         bfg2pyramid = pyramid.fixers.fix_bfg_imports:main
612d74 91       """
CM 92       )
93