Michael Merickel
2017-01-25 263308594666398bf2a9edb6ee2fac9ddc71bfdf
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:
e2ec94 33     with open(os.path.join(here, 'README.rst')) as f:
eb3cee 34         README = f.read()
TL 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',
0506e7 42     'WebOb >= 1.3.1', # request.domain and CookieProfile
c9b78f 43     'repoze.lru >= 0.4', # py3 compat
CM 44     'zope.deprecation >= 3.5.0', # py3 compat
e4b8fa 45     'venusian >= 1.0a3', # ``ignore``
c9b78f 46     'translationstring >= 0.4', # py3 compat
337960 47     'PasteDeploy >= 1.5.0', # py3 compat
01a6e5 48     ]
e6c2d2 49
cbe0ee 50 # 3.8.0 inclues zope.interface.registry
MM 51 # zope.interface breaks on python 3.2
52 if PY3 and py_version < (3, 3):
53     install_requires.append('zope.interface >= 3.8.0,<4.2.0')
54 else:
55     install_requires.append('zope.interface >= 3.8.0')
56
a3744b 57 tests_require = [
a673a6 58     'WebTest >= 1.3.1, <= 2.0.23',  # py3 compat
e6c2d2 59     ]
CM 60
795253 61 if not PY3:
90da3b 62     tests_require.append('zope.component>=3.11.0')
c75e50 63
aca78f 64 docs_extras = [
8a5dc0 65     'Sphinx >= 1.3.5',
aca78f 66     'docutils',
CM 67     'repoze.sphinx.autointerface',
e2c74a 68     'pylons_sphinx_latesturl',
61b82f 69     'pylons-sphinx-themes',
3665ec 70     'sphinxcontrib-programoutput',
90da3b 71     ]
CM 72
73 testing_extras = tests_require + [
74     'nose',
75     'coverage',
76     'virtualenv', # for scaffolding tests
aca78f 77     ]
1e0e9b 78
b60bdb 79 setup(name='pyramid',
105c59 80       version='1.6.5',
78b41e 81       description='The Pyramid Web Framework, a Pylons project',
612d74 82       long_description=README + '\n\n' +  CHANGES,
CM 83       classifiers=[
77005d 84         "Development Status :: 6 - Mature",
612d74 85         "Intended Audience :: Developers",
CM 86         "Programming Language :: Python",
502f71 87         "Programming Language :: Python :: 2.6",
CM 88         "Programming Language :: Python :: 2.7",
89         "Programming Language :: Python :: 3",
90         "Programming Language :: Python :: 3.2",
2d964c 91         "Programming Language :: Python :: 3.3",
32200c 92         "Programming Language :: Python :: 3.4",
879fd8 93         "Programming Language :: Python :: 3.5",
2de102 94         "Programming Language :: Python :: Implementation :: CPython",
CM 95         "Programming Language :: Python :: Implementation :: PyPy",
4aafed 96         "Framework :: Pyramid",
612d74 97         "Topic :: Internet :: WWW/HTTP",
CM 98         "Topic :: Internet :: WWW/HTTP :: WSGI",
c35ca1 99         "License :: Repoze Public License",
612d74 100         ],
e8e655 101       keywords='web wsgi pylons pyramid',
4dc529 102       author="Chris McDonough, Agendaless Consulting",
b4ecce 103       author_email="pylons-discuss@googlegroups.com",
1636ef 104       url="https://trypyramid.com",
612d74 105       license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
CM 106       packages=find_packages(),
107       include_package_data=True,
108       zip_safe=False,
01a6e5 109       install_requires = install_requires,
a3744b 110       extras_require = {
90da3b 111           'testing':testing_extras,
aca78f 112           'docs':docs_extras,
a3744b 113           },
1e0e9b 114       tests_require = tests_require,
beb87d 115       test_suite="pyramid.tests",
612d74 116       entry_points = """\
a30a39 117         [pyramid.scaffold]
CM 118         starter=pyramid.scaffolds:StarterProjectTemplate
119         zodb=pyramid.scaffolds:ZODBProjectTemplate
120         alchemy=pyramid.scaffolds:AlchemyProjectTemplate
ed91c2 121         [pyramid.pshell_runner]
MM 122         python=pyramid.scripts.pshell:python_shell_runner
68a711 123         [console_scripts]
a30a39 124         pcreate = pyramid.scripts.pcreate:main
0e0cb7 125         pserve = pyramid.scripts.pserve:main
337960 126         pshell = pyramid.scripts.pshell:main
CM 127         proutes = pyramid.scripts.proutes:main
128         pviews = pyramid.scripts.pviews:main
129         ptweens = pyramid.scripts.ptweens:main
4eab20 130         prequest = pyramid.scripts.prequest:main
b210ce 131         pdistreport = pyramid.scripts.pdistreport:main
0e0cb7 132         [paste.server_runner]
CM 133         wsgiref = pyramid.scripts.pserve:wsgiref_server_runner
a0e3cb 134         cherrypy = pyramid.scripts.pserve:cherrypy_server_runner
612d74 135       """
CM 136       )
137