Michael Merickel
2018-10-26 035f6cf8238211d097c991677fde6b5bc046a57b
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
0c29cf 58 setup(
MM 59     name='pyramid',
7b024b 60     version='1.10a1',
0c29cf 61     description='The Pyramid Web Framework, a Pylons project',
MM 62     long_description=README + '\n\n' + CHANGES,
63     classifiers=[
64         "Development Status :: 6 - Mature",
65         "Intended Audience :: Developers",
66         "Programming Language :: Python",
67         "Programming Language :: Python :: 2.7",
68         "Programming Language :: Python :: 3",
69         "Programming Language :: Python :: 3.4",
70         "Programming Language :: Python :: 3.5",
71         "Programming Language :: Python :: 3.6",
72         "Programming Language :: Python :: 3.7",
73         "Programming Language :: Python :: Implementation :: CPython",
74         "Programming Language :: Python :: Implementation :: PyPy",
75         "Framework :: Pyramid",
76         "Topic :: Internet :: WWW/HTTP",
77         "Topic :: Internet :: WWW/HTTP :: WSGI",
78         "License :: Repoze Public License",
79     ],
80     keywords='web wsgi pylons pyramid',
81     author="Chris McDonough, Agendaless Consulting",
82     author_email="pylons-discuss@googlegroups.com",
83     url="https://trypyramid.com",
84     license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
85     packages=find_packages('src', exclude=['tests']),
86     package_dir={'': 'src'},
87     include_package_data=True,
88     zip_safe=False,
89     python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
90     install_requires=install_requires,
91     extras_require={
92         ':python_version<"3.2"': ['repoze.lru >= 0.4'],
93         'testing': testing_extras,
94         'docs': docs_extras,
95     },
96     tests_require=tests_require,
97     test_suite="tests",
98     entry_points="""\
a30a39 99         [pyramid.scaffold]
CM 100         starter=pyramid.scaffolds:StarterProjectTemplate
101         zodb=pyramid.scaffolds:ZODBProjectTemplate
102         alchemy=pyramid.scaffolds:AlchemyProjectTemplate
b7350e 103         [pyramid.pshell_runner]
MM 104         python=pyramid.scripts.pshell:python_shell_runner
68a711 105         [console_scripts]
a30a39 106         pcreate = pyramid.scripts.pcreate:main
0e0cb7 107         pserve = pyramid.scripts.pserve:main
337960 108         pshell = pyramid.scripts.pshell:main
CM 109         proutes = pyramid.scripts.proutes:main
110         pviews = pyramid.scripts.pviews:main
111         ptweens = pyramid.scripts.ptweens:main
4eab20 112         prequest = pyramid.scripts.prequest:main
b210ce 113         pdistreport = pyramid.scripts.pdistreport:main
0e0cb7 114         [paste.server_runner]
CM 115         wsgiref = pyramid.scripts.pserve:wsgiref_server_runner
a0e3cb 116         cherrypy = pyramid.scripts.pserve:cherrypy_server_runner
0c29cf 117       """,
MM 118 )