Steve Piercy
2018-09-22 e22970cd21eb36c2a658c843bb5cb4f59d77fd19
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
fa0da6 17 import warnings
612d74 18
CM 19 from setuptools import setup, find_packages
20
602453 21 py_version = sys.version_info[:2]
795253 22
fa0da6 23 if (3, 0) <= py_version < (3, 4):
MM 24     warnings.warn(
25         'On Python 3, Pyramid only supports Python 3.4 or better',
26         UserWarning,
27     )
28 elif py_version < (2, 7):
29     raise RuntimeError('On Python 2, Pyramid requires Python 2.7 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
764b5d 40 install_requires = [
c9b78f 41     'setuptools',
2ae320 42     'WebOb >= 1.7.0rc2', # Response.has_body
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
1b7d85 49     'hupper',
01a6e5 50     ]
e6c2d2 51
a3744b 52 tests_require = [
c9b78f 53     'WebTest >= 1.3.1', # py3 compat
6c3f4f 54     'zope.component >= 4.0', # py3 compat
e6c2d2 55     ]
CM 56
c75e50 57
aca78f 58 docs_extras = [
167f35 59     'Sphinx >= 1.8.1',
aca78f 60     'docutils',
CM 61     'repoze.sphinx.autointerface',
5699df 62     'pylons_sphinx_latesturl',
167f35 63     'pylons-sphinx-themes >= 1.0.8',
b7f994 64     'sphinxcontrib-autoprogram',
90da3b 65     ]
CM 66
67 testing_extras = tests_require + [
68     'nose',
69     'coverage',
05ae94 70     'virtualenv',  # for scaffolding tests
aca78f 71     ]
1e0e9b 72
b60bdb 73 setup(name='pyramid',
296152 74       version='1.8.5',
78b41e 75       description='The Pyramid Web Framework, a Pylons project',
764b5d 76       long_description=README + '\n\n' + CHANGES,
612d74 77       classifiers=[
764b5d 78           "Development Status :: 6 - Mature",
BJR 79           "Intended Audience :: Developers",
80           "Programming Language :: Python",
81           "Programming Language :: Python :: 2.7",
82           "Programming Language :: Python :: 3",
83           "Programming Language :: Python :: 3.4",
84           "Programming Language :: Python :: 3.5",
c8a5e0 85           "Programming Language :: Python :: 3.6",
764b5d 86           "Programming Language :: Python :: Implementation :: CPython",
BJR 87           "Programming Language :: Python :: Implementation :: PyPy",
88           "Framework :: Pyramid",
89           "Topic :: Internet :: WWW/HTTP",
90           "Topic :: Internet :: WWW/HTTP :: WSGI",
91           "License :: Repoze Public License",
92       ],
e8e655 93       keywords='web wsgi pylons pyramid',
4dc529 94       author="Chris McDonough, Agendaless Consulting",
b4ecce 95       author_email="pylons-discuss@googlegroups.com",
afd04c 96       url="https://trypyramid.com",
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,
764b5d 101       install_requires=install_requires,
BJR 102       extras_require={
103           'testing': testing_extras,
104           'docs': docs_extras,
a3744b 105           },
764b5d 106       tests_require=tests_require,
beb87d 107       test_suite="pyramid.tests",
764b5d 108       entry_points="""\
a30a39 109         [pyramid.scaffold]
CM 110         starter=pyramid.scaffolds:StarterProjectTemplate
111         zodb=pyramid.scaffolds:ZODBProjectTemplate
112         alchemy=pyramid.scaffolds:AlchemyProjectTemplate
b7350e 113         [pyramid.pshell_runner]
MM 114         python=pyramid.scripts.pshell:python_shell_runner
68a711 115         [console_scripts]
a30a39 116         pcreate = pyramid.scripts.pcreate:main
0e0cb7 117         pserve = pyramid.scripts.pserve:main
337960 118         pshell = pyramid.scripts.pshell:main
CM 119         proutes = pyramid.scripts.proutes:main
120         pviews = pyramid.scripts.pviews:main
121         ptweens = pyramid.scripts.ptweens:main
4eab20 122         prequest = pyramid.scripts.prequest:main
b210ce 123         pdistreport = pyramid.scripts.pdistreport:main
0e0cb7 124         [paste.server_runner]
CM 125         wsgiref = pyramid.scripts.pserve:wsgiref_server_runner
a0e3cb 126         cherrypy = pyramid.scripts.pserve:cherrypy_server_runner
612d74 127       """
CM 128       )