Michael Merickel
2017-04-02 bd1cce29c9d5e618c4682e7c5a37ea574aee9817
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
1b7d85 37     'hupper',
01a6e5 38     ]
e6c2d2 39
a3744b 40 tests_require = [
c9b78f 41     'WebTest >= 1.3.1', # py3 compat
6c3f4f 42     'zope.component >= 4.0', # py3 compat
e6c2d2 43     ]
CM 44
c75e50 45
aca78f 46 docs_extras = [
1779c2 47     'Sphinx >= 1.3.5',
aca78f 48     'docutils',
CM 49     'repoze.sphinx.autointerface',
5699df 50     'pylons_sphinx_latesturl',
896349 51     'pylons-sphinx-themes',
b7f994 52     'sphinxcontrib-autoprogram',
90da3b 53     ]
CM 54
55 testing_extras = tests_require + [
56     'nose',
57     'coverage',
b2a749 58     'virtualenv',  # for scaffolding tests
aca78f 59     ]
1e0e9b 60
b60bdb 61 setup(name='pyramid',
b38bbf 62       version='1.9.dev0',
78b41e 63       description='The Pyramid Web Framework, a Pylons project',
764b5d 64       long_description=README + '\n\n' + CHANGES,
612d74 65       classifiers=[
764b5d 66           "Development Status :: 6 - Mature",
BJR 67           "Intended Audience :: Developers",
68           "Programming Language :: Python",
69           "Programming Language :: Python :: 2.7",
70           "Programming Language :: Python :: 3",
71           "Programming Language :: Python :: 3.4",
72           "Programming Language :: Python :: 3.5",
c8a5e0 73           "Programming Language :: Python :: 3.6",
764b5d 74           "Programming Language :: Python :: Implementation :: CPython",
BJR 75           "Programming Language :: Python :: Implementation :: PyPy",
76           "Framework :: Pyramid",
77           "Topic :: Internet :: WWW/HTTP",
78           "Topic :: Internet :: WWW/HTTP :: WSGI",
79           "License :: Repoze Public License",
80       ],
e8e655 81       keywords='web wsgi pylons pyramid',
4dc529 82       author="Chris McDonough, Agendaless Consulting",
b4ecce 83       author_email="pylons-discuss@googlegroups.com",
afd04c 84       url="https://trypyramid.com",
612d74 85       license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
CM 86       packages=find_packages(),
87       include_package_data=True,
88       zip_safe=False,
8b96cf 89       python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
764b5d 90       install_requires=install_requires,
BJR 91       extras_require={
92           'testing': testing_extras,
93           'docs': docs_extras,
a3744b 94           },
764b5d 95       tests_require=tests_require,
beb87d 96       test_suite="pyramid.tests",
764b5d 97       entry_points="""\
a30a39 98         [pyramid.scaffold]
CM 99         starter=pyramid.scaffolds:StarterProjectTemplate
100         zodb=pyramid.scaffolds:ZODBProjectTemplate
101         alchemy=pyramid.scaffolds:AlchemyProjectTemplate
b7350e 102         [pyramid.pshell_runner]
MM 103         python=pyramid.scripts.pshell:python_shell_runner
68a711 104         [console_scripts]
a30a39 105         pcreate = pyramid.scripts.pcreate:main
0e0cb7 106         pserve = pyramid.scripts.pserve:main
337960 107         pshell = pyramid.scripts.pshell:main
CM 108         proutes = pyramid.scripts.proutes:main
109         pviews = pyramid.scripts.pviews:main
110         ptweens = pyramid.scripts.ptweens:main
4eab20 111         prequest = pyramid.scripts.prequest:main
b210ce 112         pdistreport = pyramid.scripts.pdistreport: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       )