From 37dc99c26f54a86837c89c46738f586c9b61526a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 20 Jan 2017 09:06:49 +0100 Subject: [PATCH] Revert "Switch from CherryPy to cheroot" This reverts commit 1ab2b3af83412cefdef71ecb2c30401c5355d801. See https://github.com/cherrypy/cheroot/pull/2 --- 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, 7 insertions(+), 6 deletions(-) diff --git a/misc/requirements/requirements-tests-git.txt b/misc/requirements/requirements-tests-git.txt index 68f93bc7a..fa89aa4de 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/cheroot.git +git+https://github.com/cherrypy/cherrypy.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 d0d6cf4b3..b75ac8206 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 -cheroot==5.0.1 +CherryPy==8.9.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 2f81ed911..523d8bfe4 100644 --- a/misc/requirements/requirements-tests.txt-raw +++ b/misc/requirements/requirements-tests.txt-raw @@ -1,5 +1,5 @@ beautifulsoup4 -cheroot +CherryPy coverage Flask httpbin diff --git a/scripts/dev/freeze_tests.py b/scripts/dev/freeze_tests.py index 082d4e999..9c57b10e1 100755 --- a/scripts/dev/freeze_tests.py +++ b/scripts/dev/freeze_tests.py @@ -55,7 +55,8 @@ 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', 'cheroot', 'pstats'] + 'httpbin', 'jinja2.ext', 'cherrypy.wsgiserver', + '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 73903a7ea..0fa1d7139 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 cheroot.wsgi +import cherrypy.wsgiserver import flask @@ -135,7 +135,7 @@ def log_request(response): return response -class WSGIServer(cheroot.wsgi.WSGIServer): +class WSGIServer(cherrypy.wsgiserver.CherryPyWSGIServer): """A custom WSGIServer that prints a line on stderr when it's ready.