From 1ab2b3af83412cefdef71ecb2c30401c5355d801 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 20 Jan 2017 08:07:55 +0100 Subject: [PATCH] Switch from CherryPy to cheroot The WSGIServer got split off from CherryPy in a separate project --- misc/requirements/requirements-tests-git.txt | 2 +- misc/requirements/requirements-tests.txt | 2 +- misc/requirements/requirements-tests.txt-raw | 2 +- scripts/dev/freeze_tests.py | 3 +-- tests/end2end/fixtures/webserver_sub.py | 4 ++-- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/misc/requirements/requirements-tests-git.txt b/misc/requirements/requirements-tests-git.txt index fa89aa4de..68f93bc7a 100644 --- a/misc/requirements/requirements-tests-git.txt +++ b/misc/requirements/requirements-tests-git.txt @@ -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 diff --git a/misc/requirements/requirements-tests.txt b/misc/requirements/requirements-tests.txt index b75ac8206..d0d6cf4b3 100644 --- a/misc/requirements/requirements-tests.txt +++ b/misc/requirements/requirements-tests.txt @@ -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 diff --git a/misc/requirements/requirements-tests.txt-raw b/misc/requirements/requirements-tests.txt-raw index 523d8bfe4..2f81ed911 100644 --- a/misc/requirements/requirements-tests.txt-raw +++ b/misc/requirements/requirements-tests.txt-raw @@ -1,5 +1,5 @@ beautifulsoup4 -CherryPy +cheroot coverage Flask httpbin diff --git a/scripts/dev/freeze_tests.py b/scripts/dev/freeze_tests.py index 9c57b10e1..082d4e999 100755 --- a/scripts/dev/freeze_tests.py +++ b/scripts/dev/freeze_tests.py @@ -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'] += [ diff --git a/tests/end2end/fixtures/webserver_sub.py b/tests/end2end/fixtures/webserver_sub.py index 0fa1d7139..73903a7ea 100644 --- a/tests/end2end/fixtures/webserver_sub.py +++ b/tests/end2end/fixtures/webserver_sub.py @@ -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.