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