Chris McDonough
2011-02-05 1e3082082f90680de629eed83dde1e2294bae47a
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',
2d7993 34     'WebOb >= 1.0', # no "default_charset"
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',
71903a 56       version='1.0',
b60bdb 57       description='The Pyramid web application framework, a Pylons project',
612d74 58       long_description=README + '\n\n' +  CHANGES,
CM 59       classifiers=[
60         "Intended Audience :: Developers",
61         "Programming Language :: Python",
b60bdb 62         "Framework :: Pylons",
612d74 63         "Topic :: Internet :: WWW/HTTP",
CM 64         "Topic :: Internet :: WWW/HTTP :: WSGI",
c35ca1 65         "License :: Repoze Public License",
612d74 66         ],
b60bdb 67       keywords='web wsgi pylons pyramid bfg',
4dc529 68       author="Chris McDonough, Agendaless Consulting",
52d4fb 69       author_email="pylons-devel@googlegroups.com",
e7b5fe 70       url="http://docs.pylonsproject.org",
612d74 71       license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
CM 72       packages=find_packages(),
73       include_package_data=True,
74       zip_safe=False,
01a6e5 75       install_requires = install_requires,
1e0e9b 76       tests_require = tests_require,
b60bdb 77       test_suite="pyramid.tests",
612d74 78       entry_points = """\
b5c35e 79         [paste.paster_create_template]
b60bdb 80         pyramid_starter=pyramid.paster:StarterProjectTemplate
CM 81         pyramid_zodb=pyramid.paster:ZODBProjectTemplate
82         pyramid_routesalchemy=pyramid.paster:RoutesAlchemyProjectTemplate
83         pyramid_alchemy=pyramid.paster:AlchemyProjectTemplate
156375 84         [paste.paster_command]
6a3184 85         pshell=pyramid.paster:PShellCommand
90a327 86         proutes=pyramid.paster:PRoutesCommand
68a711 87         [console_scripts]
CM 88         bfg2pyramid = pyramid.fixers.fix_bfg_imports:main
612d74 89       """
CM 90       )
91