Chris McDonough
2013-08-30 00bb95f513ddcedcaf025bb528e4d7f20b1f7a4b
commit | author | age
612d74 1 ##############################################################################
CM 2 #
b23b13 3 # Copyright (c) 2008-2013 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:
eb3cee 33     with open(os.path.join(here, 'README.txt')) as f:
TL 34         README = f.read()
35     with open(os.path.join(here, 'CHANGES.txt')) as f:
36         CHANGES = f.read()
357b40 37 except IOError:
CM 38     README = CHANGES = ''
01a6e5 39
CM 40 install_requires=[
c9b78f 41     'setuptools',
7534ba 42     'Chameleon >= 1.2.3',
81e648 43     'Mako >= 0.3.6', # strict_undefined
ebcdc7 44     'WebOb >= 1.2b3', # request.path_info is unicode
c9b78f 45     'repoze.lru >= 0.4', # py3 compat
0dde01 46     'zope.interface >= 3.8.0',  # has zope.interface.registry
c9b78f 47     'zope.deprecation >= 3.5.0', # py3 compat
e4b8fa 48     'venusian >= 1.0a3', # ``ignore``
c9b78f 49     'translationstring >= 0.4', # py3 compat
337960 50     'PasteDeploy >= 1.5.0', # py3 compat
01a6e5 51     ]
e6c2d2 52
a3744b 53 tests_require = [
c9b78f 54     'WebTest >= 1.3.1', # py3 compat
e6c2d2 55     ]
CM 56
795253 57 if not PY3:
90da3b 58     tests_require.append('zope.component>=3.11.0')
c75e50 59
aca78f 60 docs_extras = [
CM 61     'Sphinx',
62     'docutils',
63     'repoze.sphinx.autointerface',
90da3b 64     ]
CM 65
66 testing_extras = tests_require + [
67     'nose',
50f23d 68     'nose-selecttests',
90da3b 69     'coverage',
CM 70     'virtualenv', # for scaffolding tests
aca78f 71     ]
1e0e9b 72
b60bdb 73 setup(name='pyramid',
00bb95 74       version='1.5a1',
83fefb 75       description=('The Pyramid Web Framework, a '
d9b52b 76                    'Pylons project'),
612d74 77       long_description=README + '\n\n' +  CHANGES,
CM 78       classifiers=[
79         "Intended Audience :: Developers",
80         "Programming Language :: Python",
502f71 81         "Programming Language :: Python :: 2.6",
CM 82         "Programming Language :: Python :: 2.7",
83         "Programming Language :: Python :: 3",
84         "Programming Language :: Python :: 3.2",
2d964c 85         "Programming Language :: Python :: 3.3",
2de102 86         "Programming Language :: Python :: Implementation :: CPython",
CM 87         "Programming Language :: Python :: Implementation :: PyPy",
4aafed 88         "Framework :: Pyramid",
612d74 89         "Topic :: Internet :: WWW/HTTP",
CM 90         "Topic :: Internet :: WWW/HTTP :: WSGI",
c35ca1 91         "License :: Repoze Public License",
612d74 92         ],
e8e655 93       keywords='web wsgi pylons pyramid',
4dc529 94       author="Chris McDonough, Agendaless Consulting",
b4ecce 95       author_email="pylons-discuss@googlegroups.com",
342267 96       url="http://pylonsproject.org",
612d74 97       license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
CM 98       packages=find_packages(),
99       include_package_data=True,
100       zip_safe=False,
01a6e5 101       install_requires = install_requires,
a3744b 102       extras_require = {
90da3b 103           'testing':testing_extras,
aca78f 104           'docs':docs_extras,
a3744b 105           },
1e0e9b 106       tests_require = tests_require,
beb87d 107       test_suite="pyramid.tests",
612d74 108       entry_points = """\
a30a39 109         [pyramid.scaffold]
CM 110         starter=pyramid.scaffolds:StarterProjectTemplate
111         zodb=pyramid.scaffolds:ZODBProjectTemplate
112         alchemy=pyramid.scaffolds:AlchemyProjectTemplate
68a711 113         [console_scripts]
CM 114         bfg2pyramid = pyramid.fixers.fix_bfg_imports:main
a30a39 115         pcreate = pyramid.scripts.pcreate:main
0e0cb7 116         pserve = pyramid.scripts.pserve:main
337960 117         pshell = pyramid.scripts.pshell:main
CM 118         proutes = pyramid.scripts.proutes:main
119         pviews = pyramid.scripts.pviews:main
120         ptweens = pyramid.scripts.ptweens:main
4eab20 121         prequest = pyramid.scripts.prequest:main
b210ce 122         pdistreport = pyramid.scripts.pdistreport:main
0e0cb7 123         [paste.server_runner]
CM 124         wsgiref = pyramid.scripts.pserve:wsgiref_server_runner
a0e3cb 125         cherrypy = pyramid.scripts.pserve:cherrypy_server_runner
612d74 126       """
CM 127       )
128