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', |
eef972
|
33 |
'PasteScript >= 1.7.4', # "here" in logging fileConfig |
0f7831
|
34 |
'WebOb >= 1.0.2', # no "default_charset"; request.script_name doesnt error |
813d95
|
35 |
'repoze.lru', |
CM |
36 |
'setuptools', |
ba9b0e
|
37 |
'zope.component >= 3.6.0', # independent of zope.hookable |
813d95
|
38 |
'zope.interface >= 3.5.1', # 3.5.0 comment: "allow to bootstrap on jython" |
79ef3d
|
39 |
'zope.deprecation', |
1aeae3
|
40 |
'venusian >= 1.0a1', # ``onerror`` |
7534ba
|
41 |
'translationstring', |
01a6e5
|
42 |
] |
612d74
|
43 |
|
1e0e9b
|
44 |
if platform.system() == 'Java': |
bac455
|
45 |
tests_require = install_requires + ['WebTest', 'virtualenv'] |
1e0e9b
|
46 |
else: |
1e467e
|
47 |
tests_require= install_requires + ['Sphinx', 'docutils', |
bac455
|
48 |
'WebTest', 'repoze.sphinx.autointerface', |
CM |
49 |
'virtualenv'] |
1e0e9b
|
50 |
|
a9fed7
|
51 |
if sys.version_info[:2] < (2, 6): |
CM |
52 |
install_requires.append('simplejson') |
|
53 |
|
b60bdb
|
54 |
setup(name='pyramid', |
7961af
|
55 |
version='1.2a5', |
d9b52b
|
56 |
description=('The Pyramid web application development framework, a ' |
CM |
57 |
'Pylons project'), |
612d74
|
58 |
long_description=README + '\n\n' + CHANGES, |
CM |
59 |
classifiers=[ |
|
60 |
"Intended Audience :: Developers", |
|
61 |
"Programming Language :: Python", |
b60bdb
|
62 |
"Framework :: Pylons", |
612d74
|
63 |
"Topic :: Internet :: WWW/HTTP", |
CM |
64 |
"Topic :: Internet :: WWW/HTTP :: WSGI", |
c35ca1
|
65 |
"License :: Repoze Public License", |
612d74
|
66 |
], |
e8e655
|
67 |
keywords='web wsgi pylons pyramid', |
4dc529
|
68 |
author="Chris McDonough, Agendaless Consulting", |
52d4fb
|
69 |
author_email="pylons-devel@googlegroups.com", |
342267
|
70 |
url="http://pylonsproject.org", |
612d74
|
71 |
license="BSD-derived (http://www.repoze.org/LICENSE.txt)", |
CM |
72 |
packages=find_packages(), |
|
73 |
include_package_data=True, |
|
74 |
zip_safe=False, |
01a6e5
|
75 |
install_requires = install_requires, |
1e0e9b
|
76 |
tests_require = tests_require, |
beb87d
|
77 |
test_suite="pyramid.tests", |
612d74
|
78 |
entry_points = """\ |
b5c35e
|
79 |
[paste.paster_create_template] |
810942
|
80 |
pyramid_starter=pyramid.scaffolds:StarterProjectTemplate |
CM |
81 |
pyramid_zodb=pyramid.scaffolds:ZODBProjectTemplate |
|
82 |
pyramid_routesalchemy=pyramid.scaffolds:RoutesAlchemyProjectTemplate |
|
83 |
pyramid_alchemy=pyramid.scaffolds:AlchemyProjectTemplate |
156375
|
84 |
[paste.paster_command] |
6a3184
|
85 |
pshell=pyramid.paster:PShellCommand |
90a327
|
86 |
proutes=pyramid.paster:PRoutesCommand |
66cda3
|
87 |
pviews=pyramid.paster:PViewsCommand |
b4843b
|
88 |
ptweens=pyramid.paster:PTweensCommand |
68a711
|
89 |
[console_scripts] |
CM |
90 |
bfg2pyramid = pyramid.fixers.fix_bfg_imports:main |
612d74
|
91 |
""" |
CM |
92 |
) |
|
93 |
|