Codebase list python-werkzeug / a369104
Import python-werkzeug_0.11.15+dfsg1.orig.tar.gz Ondřej Nový 7 years ago
5 changed file(s) with 35 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
55 - "3.3"
66 - "3.4"
77 - "3.5"
8 - "3.6-dev"
9 - "nightly"
810
911 install:
1012 # Travis uses an outdated PyPy, this installs the most recent one.
00 Werkzeug Changelog
11 ==================
2
3 Version 0.11.15
4 ---------------
5
6 Released on December 30th 2016.
7
8 - Bugfix for the bugfix in the previous release.
9
10 Version 0.11.14
11 ---------------
12
13 Released on December 30th 2016.
14
15 - Check if platform can fork before importing ``ForkingMixIn``, raise exception
16 when creating ``ForkingWSGIServer`` on such a platform, see PR ``#999``.
217
318 Version 0.11.13
419 ---------------
00 [tox]
1 envlist = py26, py27, pypy, py33, py34, py35
1 envlist = py26, py27, pypy, py33, py34, py35, py36
22
33 [testenv]
44 passenv = LANG
1919 from werkzeug._compat import iteritems
2020
2121 # the version. Usually set automatically by a script.
22 __version__ = '0.11.13'
22 __version__ = '0.11.15'
2323
2424
2525 # This import magic raises concerns quite often which is why the implementation
4040 import socket
4141 import sys
4242 import signal
43
44
45 can_fork = hasattr(os, "fork")
46
4347
4448 try:
4549 import ssl
6165
6266
6367 try:
64 from SocketServer import ThreadingMixIn, ForkingMixIn
68 import SocketServer as socketserver
6569 from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
6670 except ImportError:
67 from socketserver import ThreadingMixIn, ForkingMixIn
71 import socketserver
6872 from http.server import HTTPServer, BaseHTTPRequestHandler
73
74 ThreadingMixIn = socketserver.ThreadingMixIn
75
76 if can_fork:
77 ForkingMixIn = socketserver.ForkingMixIn
78 else:
79 class ForkingMixIn(object):
80 pass
6981
7082 # important: do not use relative imports here or python -m will break
7183 import werkzeug
524536
525537 def __init__(self, host, port, app, processes=40, handler=None,
526538 passthrough_errors=False, ssl_context=None, fd=None):
539 if not can_fork:
540 raise ValueError('Your platform does not support forking.')
527541 BaseWSGIServer.__init__(self, host, port, app, handler,
528542 passthrough_errors, ssl_context, fd)
529543 self.max_children = processes