Michael Merickel
2017-07-14 d1969a17000f763838f9abe1478c2e699a71c313
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
16
17 from setuptools import setup, find_packages
e6c2d2 18
612d74 19 here = os.path.abspath(os.path.dirname(__file__))
357b40 20 try:
e2ec94 21     with open(os.path.join(here, 'README.rst')) as f:
eb3cee 22         README = f.read()
TL 23     with open(os.path.join(here, 'CHANGES.txt')) as f:
24         CHANGES = f.read()
357b40 25 except IOError:
CM 26     README = CHANGES = ''
01a6e5 27
764b5d 28 install_requires = [
c9b78f 29     'setuptools',
2ae320 30     'WebOb >= 1.7.0rc2', # Response.has_body
c9b78f 31     'repoze.lru >= 0.4', # py3 compat
0dde01 32     'zope.interface >= 3.8.0',  # has zope.interface.registry
c9b78f 33     'zope.deprecation >= 3.5.0', # py3 compat
e4b8fa 34     'venusian >= 1.0a3', # ``ignore``
c9b78f 35     'translationstring >= 0.4', # py3 compat
337960 36     'PasteDeploy >= 1.5.0', # py3 compat
14be69 37     'plaster',
db8aea 38     'plaster_pastedeploy',
1b7d85 39     'hupper',
01a6e5 40     ]
e6c2d2 41
a3744b 42 tests_require = [
c9b78f 43     'WebTest >= 1.3.1', # py3 compat
6c3f4f 44     'zope.component >= 4.0', # py3 compat
e6c2d2 45     ]
CM 46
c75e50 47
aca78f 48 docs_extras = [
1779c2 49     'Sphinx >= 1.3.5',
aca78f 50     'docutils',
CM 51     'repoze.sphinx.autointerface',
5699df 52     'pylons_sphinx_latesturl',
896349 53     'pylons-sphinx-themes',
b7f994 54     'sphinxcontrib-autoprogram',
90da3b 55     ]
CM 56
57 testing_extras = tests_require + [
58     'nose',
59     'coverage',
b2a749 60     'virtualenv',  # for scaffolding tests
aca78f 61     ]
1e0e9b 62
b60bdb 63 setup(name='pyramid',
d1969a 64       version='1.9.1',
78b41e 65       description='The Pyramid Web Framework, a Pylons project',
764b5d 66       long_description=README + '\n\n' + CHANGES,
612d74 67       classifiers=[
764b5d 68           "Development Status :: 6 - Mature",
BJR 69           "Intended Audience :: Developers",
70           "Programming Language :: Python",
71           "Programming Language :: Python :: 2.7",
72           "Programming Language :: Python :: 3",
73           "Programming Language :: Python :: 3.4",
74           "Programming Language :: Python :: 3.5",
c8a5e0 75           "Programming Language :: Python :: 3.6",
764b5d 76           "Programming Language :: Python :: Implementation :: CPython",
BJR 77           "Programming Language :: Python :: Implementation :: PyPy",
78           "Framework :: Pyramid",
79           "Topic :: Internet :: WWW/HTTP",
80           "Topic :: Internet :: WWW/HTTP :: WSGI",
81           "License :: Repoze Public License",
82       ],
e8e655 83       keywords='web wsgi pylons pyramid',
4dc529 84       author="Chris McDonough, Agendaless Consulting",
b4ecce 85       author_email="pylons-discuss@googlegroups.com",
afd04c 86       url="https://trypyramid.com",
612d74 87       license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
CM 88       packages=find_packages(),
89       include_package_data=True,
90       zip_safe=False,
8b96cf 91       python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
764b5d 92       install_requires=install_requires,
BJR 93       extras_require={
94           'testing': testing_extras,
95           'docs': docs_extras,
a3744b 96           },
764b5d 97       tests_require=tests_require,
beb87d 98       test_suite="pyramid.tests",
764b5d 99       entry_points="""\
a30a39 100         [pyramid.scaffold]
CM 101         starter=pyramid.scaffolds:StarterProjectTemplate
102         zodb=pyramid.scaffolds:ZODBProjectTemplate
103         alchemy=pyramid.scaffolds:AlchemyProjectTemplate
b7350e 104         [pyramid.pshell_runner]
MM 105         python=pyramid.scripts.pshell:python_shell_runner
68a711 106         [console_scripts]
a30a39 107         pcreate = pyramid.scripts.pcreate:main
0e0cb7 108         pserve = pyramid.scripts.pserve:main
337960 109         pshell = pyramid.scripts.pshell:main
CM 110         proutes = pyramid.scripts.proutes:main
111         pviews = pyramid.scripts.pviews:main
112         ptweens = pyramid.scripts.ptweens:main
4eab20 113         prequest = pyramid.scripts.prequest:main
b210ce 114         pdistreport = pyramid.scripts.pdistreport:main
0e0cb7 115         [paste.server_runner]
CM 116         wsgiref = pyramid.scripts.pserve:wsgiref_server_runner
a0e3cb 117         cherrypy = pyramid.scripts.pserve:cherrypy_server_runner
612d74 118       """
CM 119       )