Chris McDonough
2015-03-18 e3e87ac4fde343683b1475c024de11ab1edcbb74
commit | author | age
612d74 1 ##############################################################################
CM 2 #
92e9f8 3 # Copyright (c) 2008-2011 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
1e0e9b 16 import platform
a9fed7 17 import sys
612d74 18
CM 19 from setuptools import setup, find_packages
20
21 here = os.path.abspath(os.path.dirname(__file__))
357b40 22 try:
90d620 23     README = open(os.path.join(here, 'README.rst')).read()
357b40 24     CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
CM 25 except IOError:
26     README = CHANGES = ''
01a6e5 27
CM 28 install_requires=[
7534ba 29     'Chameleon >= 1.2.3',
81e648 30     'Mako >= 0.3.6', # strict_undefined
e218b2 31     'Paste > 1.7', # temp version pin to prevent PyPi install failure :-(
cb349c 32     'PasteDeploy',
cbdc36 33     'PasteScript',
004e0c 34     'WebOb >= 1.0.2, < 1.2dev', # no "default_charset"; Py3k unicode breakage
fd5bf4 35     'WebTest < 2.0dev',
813d95 36     'repoze.lru',
CM 37     'setuptools',
ba9b0e 38     'zope.component >= 3.6.0', # independent of zope.hookable
004e0c 39     'zope.configuration < 3.8dev', # actions-as-dicts
1add63 40     'zope.deprecation',
813d95 41     'zope.interface >= 3.5.1',  # 3.5.0 comment: "allow to bootstrap on jython"
14b78b 42     'venusian >= 0.5', # ``codeinfo``
7534ba 43     'translationstring',
01a6e5 44     ]
612d74 45
004e0c 46
bfaf6b 47
1e0e9b 48 if platform.system() == 'Java':
105dd6 49     docs_require = ['Sphinx >= 1.2.3']
004e0c 50     tests_require = ['WebTest']
1e0e9b 51 else:
105dd6 52     docs_require = ['Sphinx >= 1.2.3',
004e0c 53                     'repoze.sphinx.autointerface',
57e43d 54                     'pylons_sphinx_latesturl',
004e0c 55                    ]
bfaf6b 56     tests_require = ['WebTest',
004e0c 57                      'nose',
TS 58                      'coverage'
59                     ]
1e0e9b 60
a9fed7 61 if sys.version_info[:2] < (2, 6):
CM 62     install_requires.append('simplejson')
63     
b60bdb 64 setup(name='pyramid',
f9c4f3 65       version='1.1.3',
d9b52b 66       description=('The Pyramid web application development framework, a '
CM 67                    'Pylons project'),
612d74 68       long_description=README + '\n\n' +  CHANGES,
CM 69       classifiers=[
70         "Intended Audience :: Developers",
71         "Programming Language :: Python",
b60bdb 72         "Framework :: Pylons",
612d74 73         "Topic :: Internet :: WWW/HTTP",
CM 74         "Topic :: Internet :: WWW/HTTP :: WSGI",
c35ca1 75         "License :: Repoze Public License",
612d74 76         ],
e8e655 77       keywords='web wsgi pylons pyramid',
4dc529 78       author="Chris McDonough, Agendaless Consulting",
52d4fb 79       author_email="pylons-devel@googlegroups.com",
342267 80       url="http://pylonsproject.org",
612d74 81       license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
CM 82       packages=find_packages(),
83       include_package_data=True,
84       zip_safe=False,
01a6e5 85       install_requires = install_requires,
b60bdb 86       test_suite="pyramid.tests",
bfaf6b 87       tests_require=install_requires + tests_require,
004e0c 88       extras_require = {
TS 89         'testing': tests_require,
90         'docs': docs_require,
91       },
612d74 92       entry_points = """\
b5c35e 93         [paste.paster_create_template]
810942 94         pyramid_starter=pyramid.scaffolds:StarterProjectTemplate
CM 95         pyramid_zodb=pyramid.scaffolds:ZODBProjectTemplate
96         pyramid_routesalchemy=pyramid.scaffolds:RoutesAlchemyProjectTemplate
97         pyramid_alchemy=pyramid.scaffolds:AlchemyProjectTemplate
156375 98         [paste.paster_command]
6a3184 99         pshell=pyramid.paster:PShellCommand
90a327 100         proutes=pyramid.paster:PRoutesCommand
66cda3 101         pviews=pyramid.paster:PViewsCommand
68a711 102         [console_scripts]
CM 103         bfg2pyramid = pyramid.fixers.fix_bfg_imports:main
879ae2 104         [paste.server_runner]
CM 105         wsgiref = pyramid.paster:wsgiref_server_runner
106         cherrypy = pyramid.paster:cherrypy_server_runner
612d74 107       """
CM 108       )
109