Switch from CherryPy to cheroot

The WSGIServer got split off from CherryPy in a separate project
This commit is contained in:
Florian Bruhin 2017-01-20 08:07:55 +01:00
parent 79ef728af1
commit 1ab2b3af83
5 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,5 @@
bzr+lp:beautifulsoup
git+https://github.com/cherrypy/cherrypy.git
git+https://github.com/cherrypy/cheroot.git
hg+https://bitbucket.org/ned/coveragepy
git+https://github.com/micheles/decorator.git
git+https://github.com/pallets/flask.git

View File

@ -1,7 +1,7 @@
# This file is automatically generated by scripts/dev/recompile_requirements.py
beautifulsoup4==4.5.3
CherryPy==8.9.1
cheroot==5.0.1
click==6.7
coverage==4.3.4
decorator==4.0.11

View File

@ -1,5 +1,5 @@
beautifulsoup4
CherryPy
cheroot
coverage
Flask
httpbin

View File

@ -55,8 +55,7 @@ def get_build_exe_options():
opts = freeze.get_build_exe_options(skip_html=True)
opts['includes'] += pytest.freeze_includes()
opts['includes'] += ['unittest.mock', 'PyQt5.QtTest', 'hypothesis', 'bs4',
'httpbin', 'jinja2.ext', 'cherrypy.wsgiserver',
'pstats']
'httpbin', 'jinja2.ext', 'cheroot', 'pstats']
httpbin_dir = os.path.dirname(httpbin.__file__)
opts['include_files'] += [

View File

@ -31,7 +31,7 @@ import threading
from httpbin.core import app
from httpbin.structures import CaseInsensitiveDict
import cherrypy.wsgiserver
import cheroot.wsgi
import flask
@ -135,7 +135,7 @@ def log_request(response):
return response
class WSGIServer(cherrypy.wsgiserver.CherryPyWSGIServer):
class WSGIServer(cheroot.wsgi.WSGIServer):
"""A custom WSGIServer that prints a line on stderr when it's ready.