diff options
author | Marcel Hellkamp <marc@gsites.de> | 2017-03-25 17:53:27 +0100 |
---|---|---|
committer | Juerg Haefliger <juergh@protonmail.com> | 2022-05-24 09:03:45 +0200 |
commit | 6e9c55ac25993e12eb9674c4b11c8673c55cfd54 (patch) | |
tree | 133877c09f2a5df962377adef8224f223f6a7d30 | |
parent | a3ba0eb30e7becdfe0eb83dc2babaa40847cd7d0 (diff) | |
download | bottle-6e9c55ac25993e12eb9674c4b11c8673c55cfd54.tar.gz |
Added depr warning for the outdated cherrypy server adapter.
If you are using this adapter, simply switch to 'cheroot'
This should fix some recent and some very old issues regarding cherrypy:
fix #947 Leave explicit the maxima version supported the CherryPy (<= 9.0.0)
fix #932 Add ServerAdapter (fix CherryPy ServerAdapter)
fix #685 Update CherryPy SSL to use latest API and work on Py3
fix #574 Allow custom bind_addr for CherryPy
(backported from commit be90814117008e6f19a2d8d5c67b876787888aa6)
[juergh: Adjust context, drop modifications of test/travis-requirements.txt
which does not exist in 0.12.]
Signed-off-by: Juerg Haefliger <juergh@protonmail.com>
-rw-r--r-- | bottle.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2793,7 +2793,11 @@ class WSGIRefServer(ServerAdapter): class CherryPyServer(ServerAdapter): def run(self, handler): # pragma: no cover - from cherrypy import wsgiserver + depr(0, 13, "The wsgi server part of cherrypy was split into a new " + "project called 'cheroot'.", "Use the 'cheroot' server " + "adapter instead of cherrypy.") + from cherrypy import wsgiserver # This will fail for CherryPy >= 9 + self.options['bind_addr'] = (self.host, self.port) self.options['wsgi_app'] = handler |