Codebase list pastedeploy / b50d8ec
Imported Debian patch 1.5.2-1 Piotr Ożarowski 10 years ago
14 changed file(s) with 100 addition(s) and 59 deletion(s). Raw diff Collapse all Expand all
00 Metadata-Version: 1.0
11 Name: PasteDeploy
2 Version: 1.5.0
2 Version: 1.5.2
33 Summary: Load, configure, and compose WSGI applications and servers
44 Home-page: http://pythonpaste.org/deploy/
55 Author: Alex Gronholm
1616
1717 For the latest changes see the `news file
1818 <http://pythonpaste.org/deploy/news.html>`_.
19
2019 Keywords: web wsgi application server
2120 Platform: UNKNOWN
22 Classifier: Development Status :: 5 - Production/Stable
21 Classifier: Development Status :: 6 - Mature
2322 Classifier: Intended Audience :: Developers
2423 Classifier: License :: OSI Approved :: MIT License
2524 Classifier: Programming Language :: Python
2928 Classifier: Programming Language :: Python :: 3
3029 Classifier: Programming Language :: Python :: 3.1
3130 Classifier: Programming Language :: Python :: 3.2
31 Classifier: Programming Language :: Python :: 3.3
3232 Classifier: Topic :: Internet :: WWW/HTTP
3333 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
3434 Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
00 Metadata-Version: 1.0
11 Name: PasteDeploy
2 Version: 1.5.0
2 Version: 1.5.2
33 Summary: Load, configure, and compose WSGI applications and servers
44 Home-page: http://pythonpaste.org/deploy/
55 Author: Alex Gronholm
1616
1717 For the latest changes see the `news file
1818 <http://pythonpaste.org/deploy/news.html>`_.
19
2019 Keywords: web wsgi application server
2120 Platform: UNKNOWN
22 Classifier: Development Status :: 5 - Production/Stable
21 Classifier: Development Status :: 6 - Mature
2322 Classifier: Intended Audience :: Developers
2423 Classifier: License :: OSI Approved :: MIT License
2524 Classifier: Programming Language :: Python
2928 Classifier: Programming Language :: Python :: 3
3029 Classifier: Programming Language :: Python :: 3.1
3130 Classifier: Programming Language :: Python :: 3.2
31 Classifier: Programming Language :: Python :: 3.3
3232 Classifier: Topic :: Internet :: WWW/HTTP
3333 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
3434 Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
00 MANIFEST.in
1 README
2 setup.cfg
13 setup.py
24 PasteDeploy.egg-info/PKG-INFO
35 PasteDeploy.egg-info/SOURCES.txt
0 This tool provides code to load WSGI applications and servers from
1 URIs; these URIs can refer to Python Eggs for INI-style configuration
2 files. `Paste Script <http://pythonpaste.org/script>`_ provides
3 commands to serve applications based on this configuration file.
4
5 The latest version is available in a `Mercurial repository
6 <http://bitbucket.org/ianb/pastedeploy>`_ (or a `tarball
7 <http://bitbucket.org/ianb/pastedeploy/get/tip.gz#egg=PasteDeploy-dev>`_).
8
9 For the latest changes see the `news file
10 <http://pythonpaste.org/deploy/news.html>`_.
0 pastedeploy (1.5.2-1) unstable; urgency=low
1
2 * New upstream release
3
4 -- Piotr Ożarowski <piotr@debian.org> Sun, 29 Dec 2013 11:43:06 +0100
5
06 pastedeploy (1.5.0-5) unstable; urgency=medium
17
28 * python-pastedeploy-tpl Breaks/Replaces python-pastedeploy << 1.5.0-4
00 Paste Deployment News
11 =====================
2
3 1.5.2
4 -----
5
6 * Fixed Python 3 issue in paste.deploy.util.fix_type_error()
7
8 1.5.1
9 -----
10
11 * Fixed use of the wrong variable when determining the context protocol
12
13 * Fixed invalid import of paste.deploy.Config to paste.deploy.config.Config
14
15 * Fixed multi proxy IPs bug in X-Forwarded-For header in PrefixMiddleware
16
17 * Fixed TypeError when trying to raise LookupError on Python 3
18
19 * Fixed exception reraise on Python 3
20
21 Thanks to Alexandre Conrad, Atsushi Odagiri, Pior Bastida and Tres Seaver for their contributions.
222
323 1.5.0
424 -----
1616 from ConfigParser import ConfigParser
1717 from urllib import unquote
1818 iteritems = lambda d: d.iteritems()
19 dictkeys = lambda d: d.keys()
1920
2021 def reraise(t, e, tb):
2122 exec('raise t, e, tb', dict(t=t, e=e, tb=tb))
2425 from configparser import ConfigParser
2526 from urllib.parse import unquote
2627 iteritems = lambda d: d.items()
28 dictkeys = lambda d: list(d.keys())
2729
2830 def reraise(t, e, tb):
29 exec('raise e from tb', dict(e=e, tb=tb))
31 raise e.with_traceback(tb)
268268 if 'HTTP_X_FORWARDED_HOST' in environ:
269269 environ['HTTP_HOST'] = environ.pop('HTTP_X_FORWARDED_HOST').split(',')[0]
270270 if 'HTTP_X_FORWARDED_FOR' in environ:
271 environ['REMOTE_ADDR'] = environ.pop('HTTP_X_FORWARDED_FOR')
271 environ['REMOTE_ADDR'] = environ.pop('HTTP_X_FORWARDED_FOR').split(',')[0]
272272 if 'HTTP_X_FORWARDED_SCHEME' in environ:
273273 environ['wsgi.url_scheme'] = environ.pop('HTTP_X_FORWARDED_SCHEME')
274274 elif 'HTTP_X_FORWARDED_PROTO' in environ:
22 from paste.deploy.compat import basestring
33
44
5 truthy = frozenset(['true', 'yes', 'on', 'y', 't', '1'])
6 falsy = frozenset(['false', 'no', 'off', 'n', 'f', '0'])
7
8
59 def asbool(obj):
610 if isinstance(obj, basestring):
711 obj = obj.strip().lower()
8 if obj in ['true', 'yes', 'on', 'y', 't', '1']:
12 if obj in truthy:
913 return True
10 elif obj in ['false', 'no', 'off', 'n', 'f', '0']:
14 elif obj in falsy:
1115 return False
1216 else:
1317 raise ValueError("String is not true/false: %r" % obj)
66
77 import pkg_resources
88
9 from paste.deploy.compat import ConfigParser, unquote, iteritems
9 from paste.deploy.compat import ConfigParser, unquote, iteritems, dictkeys
1010 from paste.deploy.util import fix_call, lookup_object
1111
1212 __all__ = ['loadapp', 'loadserver', 'loadfilter', 'appconfig']
492492 # This will work with 'server' and 'filter', otherwise it
493493 # could fail but there is an error message already for
494494 # bad protocols
495 context.protocol = 'paste.%s_factory' % context_protocol
495 context.protocol = 'paste.%s_factory' % section_protocol
496496
497497 return context
498498
654654 dist.location,
655655 ', '.join(_flatten(object_type.egg_protocols)),
656656 ', '.join(_flatten([
657 (pkg_resources.get_entry_info(self.spec, prot, name) or {}).keys()
657 dictkeys(pkg_resources.get_entry_info(self.spec, prot, name) or {})
658658 for prot in protocol_options] or '(no entry points)'))))
659659 if len(possible) > 1:
660660 raise LookupError(
00 import cgi
11
2 from paste.deploy import CONFIG
2 from paste.deploy.config import CONFIG
33
44
55 def application(environ, start_response):
2020 % (key, cgi.escape(repr(value))))
2121 content.append('</table></body></html>')
2222 return content
23
3131 if kwargs and args:
3232 args += ', '
3333 if kwargs:
34 kwargs = kwargs.items()
35 kwargs.sort()
34 kwargs = sorted(kwargs.items())
3635 args += ', '.join(['%s=...' % n for n, v in kwargs])
3736 gotspec = '(%s)' % args
3837 msg = '%s; got %s, wanted %s' % (exc_info[1], gotspec, argspec)
0 [wheel]
1 universal = true
2
03 [egg_info]
14 tag_build =
25 tag_date = 0
0 import os
1
02 from setuptools import setup, find_packages
3
4 here = os.path.dirname(__file__)
5 readme_path = os.path.join(here, 'README')
6 readme = open(readme_path).read()
17
28
39 setup(
4 name="PasteDeploy",
5 version='1.5.0',
6 description="Load, configure, and compose WSGI applications and servers",
7 long_description="""\
8 This tool provides code to load WSGI applications and servers from
9 URIs; these URIs can refer to Python Eggs for INI-style configuration
10 files. `Paste Script <http://pythonpaste.org/script>`_ provides
11 commands to serve applications based on this configuration file.
12
13 The latest version is available in a `Mercurial repository
14 <http://bitbucket.org/ianb/pastedeploy>`_ (or a `tarball
15 <http://bitbucket.org/ianb/pastedeploy/get/tip.gz#egg=PasteDeploy-dev>`_).
16
17 For the latest changes see the `news file
18 <http://pythonpaste.org/deploy/news.html>`_.
19 """,
10 name='PasteDeploy',
11 version='1.5.2',
12 description='Load, configure, and compose WSGI applications and servers',
13 long_description=readme,
2014 classifiers=[
21 "Development Status :: 5 - Production/Stable",
22 "Intended Audience :: Developers",
23 "License :: OSI Approved :: MIT License",
24 "Programming Language :: Python",
25 "Programming Language :: Python :: 2.5",
26 "Programming Language :: Python :: 2.6",
27 "Programming Language :: Python :: 2.7",
28 "Programming Language :: Python :: 3",
29 "Programming Language :: Python :: 3.1",
30 "Programming Language :: Python :: 3.2",
31 "Topic :: Internet :: WWW/HTTP",
32 "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
33 "Topic :: Internet :: WWW/HTTP :: WSGI",
34 "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
35 "Topic :: Software Development :: Libraries :: Python Modules",
36 "Framework :: Paste",
37 ],
15 'Development Status :: 6 - Mature',
16 'Intended Audience :: Developers',
17 'License :: OSI Approved :: MIT License',
18 'Programming Language :: Python',
19 'Programming Language :: Python :: 2.5',
20 'Programming Language :: Python :: 2.6',
21 'Programming Language :: Python :: 2.7',
22 'Programming Language :: Python :: 3',
23 'Programming Language :: Python :: 3.1',
24 'Programming Language :: Python :: 3.2',
25 'Programming Language :: Python :: 3.3',
26 'Topic :: Internet :: WWW/HTTP',
27 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
28 'Topic :: Internet :: WWW/HTTP :: WSGI',
29 'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
30 'Topic :: Software Development :: Libraries :: Python Modules',
31 'Framework :: Paste',
32 ],
3833 keywords='web wsgi application server',
39 author="Ian Bicking",
40 author_email="ianb@colorstudy.com",
41 maintainer="Alex Gronholm",
42 maintainer_email="alex.gronholm@nextday.fi",
43 url="http://pythonpaste.org/deploy/",
34 author='Ian Bicking',
35 author_email='ianb@colorstudy.com',
36 maintainer='Alex Gronholm',
37 maintainer_email='alex.gronholm@nextday.fi',
38 url='http://pythonpaste.org/deploy/',
4439 license='MIT',
4540 namespace_packages=['paste'],
4641 packages=find_packages(exclude=['tests']),
4944 test_suite='nose.collector',
5045 tests_require=['nose>=0.11'],
5146 extras_require={
52 'Config': [],
53 'Paste': ['Paste'],
54 },
47 'Config': [],
48 'Paste': ['Paste'],
49 },
5550 entry_points="""
5651 [paste.filter_app_factory]
5752 config = paste.deploy.config:make_config_filter [Config]
5954
6055 [paste.paster_create_template]
6156 paste_deploy=paste.deploy.paster_templates:PasteDeploy
62 """,
57 """
6358 )