Steve Piercy
2016-11-29 968bebc0d1cbb6d85eb446b41c0f4560383c3022
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 PY2 = py_version[0] == 2
602453 24
fa0da6 25 if (3, 0) <= py_version < (3, 4):
MM 26     warnings.warn(
27         'On Python 3, Pyramid only supports Python 3.4 or better',
28         UserWarning,
29     )
30 elif py_version < (2, 7):
31     raise RuntimeError('On Python 2, Pyramid requires Python 2.7 or better')
e6c2d2 32
612d74 33 here = os.path.abspath(os.path.dirname(__file__))
357b40 34 try:
e2ec94 35     with open(os.path.join(here, 'README.rst')) as f:
eb3cee 36         README = f.read()
TL 37     with open(os.path.join(here, 'CHANGES.txt')) as f:
38         CHANGES = f.read()
357b40 39 except IOError:
CM 40     README = CHANGES = ''
01a6e5 41
764b5d 42 install_requires = [
c9b78f 43     'setuptools',
0506e7 44     'WebOb >= 1.3.1', # request.domain and CookieProfile
c9b78f 45     'repoze.lru >= 0.4', # py3 compat
0dde01 46     'zope.interface >= 3.8.0',  # has zope.interface.registry
c9b78f 47     'zope.deprecation >= 3.5.0', # py3 compat
e4b8fa 48     'venusian >= 1.0a3', # ``ignore``
c9b78f 49     'translationstring >= 0.4', # py3 compat
337960 50     'PasteDeploy >= 1.5.0', # py3 compat
1b7d85 51     'hupper',
01a6e5 52     ]
e6c2d2 53
a3744b 54 tests_require = [
c9b78f 55     'WebTest >= 1.3.1', # py3 compat
e6c2d2 56     ]
CM 57
fa0da6 58 if PY2:
90da3b 59     tests_require.append('zope.component>=3.11.0')
c75e50 60
aca78f 61 docs_extras = [
1779c2 62     'Sphinx >= 1.3.5',
aca78f 63     'docutils',
CM 64     'repoze.sphinx.autointerface',
5699df 65     'pylons_sphinx_latesturl',
896349 66     'pylons-sphinx-themes',
50dd2e 67     'sphinxcontrib-programoutput',
90da3b 68     ]
CM 69
70 testing_extras = tests_require + [
71     'nose',
72     'coverage',
73     'virtualenv', # for scaffolding tests
aca78f 74     ]
1e0e9b 75
b60bdb 76 setup(name='pyramid',
51cc63 77       version='1.8.dev0',
78b41e 78       description='The Pyramid Web Framework, a Pylons project',
764b5d 79       long_description=README + '\n\n' + CHANGES,
612d74 80       classifiers=[
764b5d 81           "Development Status :: 6 - Mature",
BJR 82           "Intended Audience :: Developers",
83           "Programming Language :: Python",
84           "Programming Language :: Python :: 2.7",
85           "Programming Language :: Python :: 3",
86           "Programming Language :: Python :: 3.4",
87           "Programming Language :: Python :: 3.5",
c8a5e0 88           "Programming Language :: Python :: 3.6",
764b5d 89           "Programming Language :: Python :: Implementation :: CPython",
BJR 90           "Programming Language :: Python :: Implementation :: PyPy",
91           "Framework :: Pyramid",
92           "Topic :: Internet :: WWW/HTTP",
93           "Topic :: Internet :: WWW/HTTP :: WSGI",
94           "License :: Repoze Public License",
95       ],
e8e655 96       keywords='web wsgi pylons pyramid',
4dc529 97       author="Chris McDonough, Agendaless Consulting",
b4ecce 98       author_email="pylons-discuss@googlegroups.com",
afd04c 99       url="https://trypyramid.com",
612d74 100       license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
CM 101       packages=find_packages(),
102       include_package_data=True,
103       zip_safe=False,
764b5d 104       install_requires=install_requires,
BJR 105       extras_require={
106           'testing': testing_extras,
107           'docs': docs_extras,
a3744b 108           },
764b5d 109       tests_require=tests_require,
beb87d 110       test_suite="pyramid.tests",
764b5d 111       entry_points="""\
a30a39 112         [pyramid.scaffold]
CM 113         starter=pyramid.scaffolds:StarterProjectTemplate
114         zodb=pyramid.scaffolds:ZODBProjectTemplate
115         alchemy=pyramid.scaffolds:AlchemyProjectTemplate
b7350e 116         [pyramid.pshell_runner]
MM 117         python=pyramid.scripts.pshell:python_shell_runner
68a711 118         [console_scripts]
a30a39 119         pcreate = pyramid.scripts.pcreate:main
0e0cb7 120         pserve = pyramid.scripts.pserve:main
337960 121         pshell = pyramid.scripts.pshell:main
CM 122         proutes = pyramid.scripts.proutes:main
123         pviews = pyramid.scripts.pviews:main
124         ptweens = pyramid.scripts.ptweens:main
4eab20 125         prequest = pyramid.scripts.prequest:main
b210ce 126         pdistreport = pyramid.scripts.pdistreport:main
0e0cb7 127         [paste.server_runner]
CM 128         wsgiref = pyramid.scripts.pserve:wsgiref_server_runner
a0e3cb 129         cherrypy = pyramid.scripts.pserve:cherrypy_server_runner
612d74 130       """
CM 131       )