Chris McDonough
2012-02-26 cf973d67fcae67f517d407a3f1bc3cb191def5b6
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
a9fed7 16 import sys
612d74 17
CM 18 from setuptools import setup, find_packages
19
795253 20 if sys.version_info[:2] < (2, 6):
CM 21     raise RuntimeError('Requires Python 2.6 or better')
22
e6c2d2 23 PY3 = sys.version_info[0] == 3
CM 24
612d74 25 here = os.path.abspath(os.path.dirname(__file__))
357b40 26 try:
90d620 27     README = open(os.path.join(here, 'README.rst')).read()
357b40 28     CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
CM 29 except IOError:
30     README = CHANGES = ''
01a6e5 31
CM 32 install_requires=[
c9b78f 33     'setuptools',
7534ba 34     'Chameleon >= 1.2.3',
81e648 35     'Mako >= 0.3.6', # strict_undefined
0e131e 36     'WebOb >= 1.2dev', # response.text / py3 compat
c9b78f 37     'repoze.lru >= 0.4', # py3 compat
0dde01 38     'zope.interface >= 3.8.0',  # has zope.interface.registry
c9b78f 39     'zope.deprecation >= 3.5.0', # py3 compat
e4b8fa 40     'venusian >= 1.0a3', # ``ignore``
c9b78f 41     'translationstring >= 0.4', # py3 compat
337960 42     'PasteDeploy >= 1.5.0', # py3 compat
01a6e5 43     ]
e6c2d2 44
CM 45 tests_require = install_requires + [
c9b78f 46     'WebTest >= 1.3.1', # py3 compat
e6c2d2 47     'virtualenv',
CM 48     ]
49
795253 50 if not PY3:
e6c2d2 51     tests_require.extend([
0dde01 52         'Sphinx',
CM 53         'docutils',
54         'repoze.sphinx.autointerface',
55         'zope.component>=3.11.0',
e6c2d2 56         ])
1e0e9b 57
b60bdb 58 setup(name='pyramid',
cf973d 59       version='1.3b1',
d9b52b 60       description=('The Pyramid web application development framework, a '
CM 61                    'Pylons project'),
612d74 62       long_description=README + '\n\n' +  CHANGES,
CM 63       classifiers=[
64         "Intended Audience :: Developers",
65         "Programming Language :: Python",
502f71 66         "Programming Language :: Python :: 2.6",
CM 67         "Programming Language :: Python :: 2.7",
68         "Programming Language :: Python :: 3",
69         "Programming Language :: Python :: 3.2",
2de102 70         "Programming Language :: Python :: Implementation :: CPython",
CM 71         "Programming Language :: Python :: Implementation :: PyPy",
b60bdb 72         "Framework :: Pylons",
612d74 73         "Topic :: Internet :: WWW/HTTP",
CM 74         "Topic :: Internet :: WWW/HTTP :: WSGI",
c35ca1 75         "License :: Repoze Public License",
612d74 76         ],
e8e655 77       keywords='web wsgi pylons pyramid',
4dc529 78       author="Chris McDonough, Agendaless Consulting",
52d4fb 79       author_email="pylons-devel@googlegroups.com",
342267 80       url="http://pylonsproject.org",
612d74 81       license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
CM 82       packages=find_packages(),
83       include_package_data=True,
84       zip_safe=False,
01a6e5 85       install_requires = install_requires,
1e0e9b 86       tests_require = tests_require,
beb87d 87       test_suite="pyramid.tests",
612d74 88       entry_points = """\
a30a39 89         [pyramid.scaffold]
CM 90         starter=pyramid.scaffolds:StarterProjectTemplate
91         zodb=pyramid.scaffolds:ZODBProjectTemplate
92         alchemy=pyramid.scaffolds:AlchemyProjectTemplate
68a711 93         [console_scripts]
CM 94         bfg2pyramid = pyramid.fixers.fix_bfg_imports:main
a30a39 95         pcreate = pyramid.scripts.pcreate:main
0e0cb7 96         pserve = pyramid.scripts.pserve:main
337960 97         pshell = pyramid.scripts.pshell:main
CM 98         proutes = pyramid.scripts.proutes:main
99         pviews = pyramid.scripts.pviews:main
100         ptweens = pyramid.scripts.ptweens:main
4eab20 101         prequest = pyramid.scripts.prequest:main
0e0cb7 102         [paste.server_runner]
CM 103         wsgiref = pyramid.scripts.pserve:wsgiref_server_runner
a0e3cb 104         cherrypy = pyramid.scripts.pserve:cherrypy_server_runner
612d74 105       """
CM 106       )
107