Michael Merickel
2018-10-10 851c368e3c158e264358de10446f5b5de240e534
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 ##############################################################################
21882e 14 from setuptools import find_packages, setup
BJR 15
e6c2d2 16
e42ba5 17 def readfile(name):
MM 18     with open(name) as f:
19         return f.read()
20
21882e 21
e42ba5 22 README = readfile('README.rst')
6141a7 23 CHANGES = readfile('CHANGES.rst')
01a6e5 24
764b5d 25 install_requires = [
21882e 26     'hupper',
14be69 27     'plaster',
db8aea 28     'plaster_pastedeploy',
21882e 29     'setuptools',
BJR 30     'translationstring >= 0.4',  # py3 compat
31     'venusian >= 1.0',  # ``ignore``
364bd7 32     'webob >= 1.8.3',  # Accept.parse_offer
21882e 33     'zope.deprecation >= 3.5.0',  # py3 compat
BJR 34     'zope.interface >= 3.8.0',  # has zope.interface.registry
35 ]
e6c2d2 36
a3744b 37 tests_require = [
21882e 38     'webtest >= 1.3.1',  # py3 compat
BJR 39     'zope.component >= 4.0',  # py3 compat
40 ]
e6c2d2 41
c75e50 42
aca78f 43 docs_extras = [
473663 44     'Sphinx >= 1.8.1',
aca78f 45     'docutils',
eed1d8 46     'pylons-sphinx-themes >= 1.0.8',
21882e 47     'pylons_sphinx_latesturl',
BJR 48     'repoze.sphinx.autointerface',
b7f994 49     'sphinxcontrib-autoprogram',
21882e 50 ]
90da3b 51
CM 52 testing_extras = tests_require + [
53     'coverage',
21882e 54     'nose',
b2a749 55     'virtualenv',  # for scaffolding tests
21882e 56 ]
1e0e9b 57
b60bdb 58 setup(name='pyramid',
884eb5 59       version='1.10.dev0',
78b41e 60       description='The Pyramid Web Framework, a Pylons project',
764b5d 61       long_description=README + '\n\n' + CHANGES,
612d74 62       classifiers=[
764b5d 63           "Development Status :: 6 - Mature",
BJR 64           "Intended Audience :: Developers",
65           "Programming Language :: Python",
66           "Programming Language :: Python :: 2.7",
67           "Programming Language :: Python :: 3",
68           "Programming Language :: Python :: 3.4",
69           "Programming Language :: Python :: 3.5",
c8a5e0 70           "Programming Language :: Python :: 3.6",
482075 71           "Programming Language :: Python :: 3.7",
764b5d 72           "Programming Language :: Python :: Implementation :: CPython",
BJR 73           "Programming Language :: Python :: Implementation :: PyPy",
74           "Framework :: Pyramid",
75           "Topic :: Internet :: WWW/HTTP",
76           "Topic :: Internet :: WWW/HTTP :: WSGI",
77           "License :: Repoze Public License",
78       ],
e8e655 79       keywords='web wsgi pylons pyramid',
4dc529 80       author="Chris McDonough, Agendaless Consulting",
b4ecce 81       author_email="pylons-discuss@googlegroups.com",
afd04c 82       url="https://trypyramid.com",
612d74 83       license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
f9da0b 84       packages=find_packages('src', exclude=['tests']),
MM 85       package_dir={'': 'src'},
612d74 86       include_package_data=True,
CM 87       zip_safe=False,
8b96cf 88       python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
764b5d 89       install_requires=install_requires,
BJR 90       extras_require={
e80491 91           ':python_version<"3.2"': ['repoze.lru >= 0.4'],
764b5d 92           'testing': testing_extras,
BJR 93           'docs': docs_extras,
21882e 94       },
764b5d 95       tests_require=tests_require,
f9da0b 96       test_suite="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       )