Imported Debian patch 1.5.2-1
Piotr Ożarowski
10 years ago
0 | 0 | Metadata-Version: 1.0 |
1 | 1 | Name: PasteDeploy |
2 | Version: 1.5.0 | |
2 | Version: 1.5.2 | |
3 | 3 | Summary: Load, configure, and compose WSGI applications and servers |
4 | 4 | Home-page: http://pythonpaste.org/deploy/ |
5 | 5 | Author: Alex Gronholm |
16 | 16 | |
17 | 17 | For the latest changes see the `news file |
18 | 18 | <http://pythonpaste.org/deploy/news.html>`_. |
19 | ||
20 | 19 | Keywords: web wsgi application server |
21 | 20 | Platform: UNKNOWN |
22 | Classifier: Development Status :: 5 - Production/Stable | |
21 | Classifier: Development Status :: 6 - Mature | |
23 | 22 | Classifier: Intended Audience :: Developers |
24 | 23 | Classifier: License :: OSI Approved :: MIT License |
25 | 24 | Classifier: Programming Language :: Python |
29 | 28 | Classifier: Programming Language :: Python :: 3 |
30 | 29 | Classifier: Programming Language :: Python :: 3.1 |
31 | 30 | Classifier: Programming Language :: Python :: 3.2 |
31 | Classifier: Programming Language :: Python :: 3.3 | |
32 | 32 | Classifier: Topic :: Internet :: WWW/HTTP |
33 | 33 | Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content |
34 | 34 | Classifier: Topic :: Internet :: WWW/HTTP :: WSGI |
0 | 0 | Metadata-Version: 1.0 |
1 | 1 | Name: PasteDeploy |
2 | Version: 1.5.0 | |
2 | Version: 1.5.2 | |
3 | 3 | Summary: Load, configure, and compose WSGI applications and servers |
4 | 4 | Home-page: http://pythonpaste.org/deploy/ |
5 | 5 | Author: Alex Gronholm |
16 | 16 | |
17 | 17 | For the latest changes see the `news file |
18 | 18 | <http://pythonpaste.org/deploy/news.html>`_. |
19 | ||
20 | 19 | Keywords: web wsgi application server |
21 | 20 | Platform: UNKNOWN |
22 | Classifier: Development Status :: 5 - Production/Stable | |
21 | Classifier: Development Status :: 6 - Mature | |
23 | 22 | Classifier: Intended Audience :: Developers |
24 | 23 | Classifier: License :: OSI Approved :: MIT License |
25 | 24 | Classifier: Programming Language :: Python |
29 | 28 | Classifier: Programming Language :: Python :: 3 |
30 | 29 | Classifier: Programming Language :: Python :: 3.1 |
31 | 30 | Classifier: Programming Language :: Python :: 3.2 |
31 | Classifier: Programming Language :: Python :: 3.3 | |
32 | 32 | Classifier: Topic :: Internet :: WWW/HTTP |
33 | 33 | Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content |
34 | 34 | Classifier: Topic :: Internet :: WWW/HTTP :: WSGI |
0 | 0 | MANIFEST.in |
1 | README | |
2 | setup.cfg | |
1 | 3 | setup.py |
2 | 4 | PasteDeploy.egg-info/PKG-INFO |
3 | 5 | 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 | ||
0 | 6 | pastedeploy (1.5.0-5) unstable; urgency=medium |
1 | 7 | |
2 | 8 | * python-pastedeploy-tpl Breaks/Replaces python-pastedeploy << 1.5.0-4 |
0 | 0 | Paste Deployment News |
1 | 1 | ===================== |
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. | |
2 | 22 | |
3 | 23 | 1.5.0 |
4 | 24 | ----- |
16 | 16 | from ConfigParser import ConfigParser |
17 | 17 | from urllib import unquote |
18 | 18 | iteritems = lambda d: d.iteritems() |
19 | dictkeys = lambda d: d.keys() | |
19 | 20 | |
20 | 21 | def reraise(t, e, tb): |
21 | 22 | exec('raise t, e, tb', dict(t=t, e=e, tb=tb)) |
24 | 25 | from configparser import ConfigParser |
25 | 26 | from urllib.parse import unquote |
26 | 27 | iteritems = lambda d: d.items() |
28 | dictkeys = lambda d: list(d.keys()) | |
27 | 29 | |
28 | 30 | def reraise(t, e, tb): |
29 | exec('raise e from tb', dict(e=e, tb=tb)) | |
31 | raise e.with_traceback(tb) |
268 | 268 | if 'HTTP_X_FORWARDED_HOST' in environ: |
269 | 269 | environ['HTTP_HOST'] = environ.pop('HTTP_X_FORWARDED_HOST').split(',')[0] |
270 | 270 | 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] | |
272 | 272 | if 'HTTP_X_FORWARDED_SCHEME' in environ: |
273 | 273 | environ['wsgi.url_scheme'] = environ.pop('HTTP_X_FORWARDED_SCHEME') |
274 | 274 | elif 'HTTP_X_FORWARDED_PROTO' in environ: |
2 | 2 | from paste.deploy.compat import basestring |
3 | 3 | |
4 | 4 | |
5 | truthy = frozenset(['true', 'yes', 'on', 'y', 't', '1']) | |
6 | falsy = frozenset(['false', 'no', 'off', 'n', 'f', '0']) | |
7 | ||
8 | ||
5 | 9 | def asbool(obj): |
6 | 10 | if isinstance(obj, basestring): |
7 | 11 | obj = obj.strip().lower() |
8 | if obj in ['true', 'yes', 'on', 'y', 't', '1']: | |
12 | if obj in truthy: | |
9 | 13 | return True |
10 | elif obj in ['false', 'no', 'off', 'n', 'f', '0']: | |
14 | elif obj in falsy: | |
11 | 15 | return False |
12 | 16 | else: |
13 | 17 | raise ValueError("String is not true/false: %r" % obj) |
6 | 6 | |
7 | 7 | import pkg_resources |
8 | 8 | |
9 | from paste.deploy.compat import ConfigParser, unquote, iteritems | |
9 | from paste.deploy.compat import ConfigParser, unquote, iteritems, dictkeys | |
10 | 10 | from paste.deploy.util import fix_call, lookup_object |
11 | 11 | |
12 | 12 | __all__ = ['loadapp', 'loadserver', 'loadfilter', 'appconfig'] |
492 | 492 | # This will work with 'server' and 'filter', otherwise it |
493 | 493 | # could fail but there is an error message already for |
494 | 494 | # bad protocols |
495 | context.protocol = 'paste.%s_factory' % context_protocol | |
495 | context.protocol = 'paste.%s_factory' % section_protocol | |
496 | 496 | |
497 | 497 | return context |
498 | 498 | |
654 | 654 | dist.location, |
655 | 655 | ', '.join(_flatten(object_type.egg_protocols)), |
656 | 656 | ', '.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 {}) | |
658 | 658 | for prot in protocol_options] or '(no entry points)')))) |
659 | 659 | if len(possible) > 1: |
660 | 660 | raise LookupError( |
0 | 0 | import cgi |
1 | 1 | |
2 | from paste.deploy import CONFIG | |
2 | from paste.deploy.config import CONFIG | |
3 | 3 | |
4 | 4 | |
5 | 5 | def application(environ, start_response): |
20 | 20 | % (key, cgi.escape(repr(value)))) |
21 | 21 | content.append('</table></body></html>') |
22 | 22 | return content |
23 | ⏎ |
31 | 31 | if kwargs and args: |
32 | 32 | args += ', ' |
33 | 33 | if kwargs: |
34 | kwargs = kwargs.items() | |
35 | kwargs.sort() | |
34 | kwargs = sorted(kwargs.items()) | |
36 | 35 | args += ', '.join(['%s=...' % n for n, v in kwargs]) |
37 | 36 | gotspec = '(%s)' % args |
38 | 37 | msg = '%s; got %s, wanted %s' % (exc_info[1], gotspec, argspec) |
0 | import os | |
1 | ||
0 | 2 | 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() | |
1 | 7 | |
2 | 8 | |
3 | 9 | 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, | |
20 | 14 | 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 | ], | |
38 | 33 | 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/', | |
44 | 39 | license='MIT', |
45 | 40 | namespace_packages=['paste'], |
46 | 41 | packages=find_packages(exclude=['tests']), |
49 | 44 | test_suite='nose.collector', |
50 | 45 | tests_require=['nose>=0.11'], |
51 | 46 | extras_require={ |
52 | 'Config': [], | |
53 | 'Paste': ['Paste'], | |
54 | }, | |
47 | 'Config': [], | |
48 | 'Paste': ['Paste'], | |
49 | }, | |
55 | 50 | entry_points=""" |
56 | 51 | [paste.filter_app_factory] |
57 | 52 | config = paste.deploy.config:make_config_filter [Config] |
59 | 54 | |
60 | 55 | [paste.paster_create_template] |
61 | 56 | paste_deploy=paste.deploy.paster_templates:PasteDeploy |
62 | """, | |
57 | """ | |
63 | 58 | ) |