commit:     389cfb3a33a03514a53d0918e9398822f82884d7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  6 03:14:03 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Sep  6 09:25:07 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=389cfb3a

dev-python/httpbin: Remove the annoying swagger warning

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/httpbin/files/httpbin-0.10.1-optional-flasgger.patch       | 4 +---
 .../httpbin/{httpbin-0.10.2.ebuild => httpbin-0.10.2-r1.ebuild}       | 0
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/dev-python/httpbin/files/httpbin-0.10.1-optional-flasgger.patch 
b/dev-python/httpbin/files/httpbin-0.10.1-optional-flasgger.patch
index d4695173dad5..b9f5cc6f8469 100644
--- a/dev-python/httpbin/files/httpbin-0.10.1-optional-flasgger.patch
+++ b/dev-python/httpbin/files/httpbin-0.10.1-optional-flasgger.patch
@@ -34,15 +34,13 @@ index a82c1b8..77576a4 100644
  
  from . import filters
  from .helpers import (
-@@ -165,7 +168,10 @@ swagger_config = {
+@@ -165,7 +168,8 @@ swagger_config = {
      "specs_route": "/",
  }
  
 -swagger = Swagger(app, sanitizer=NO_SANITIZER, template=template, 
config=swagger_config)
 +if Swagger is not None:
 +    swagger = Swagger(app, sanitizer=NO_SANITIZER, template=template, 
config=swagger_config)
-+else:
-+    app.logger.warning("Swagger not found, legacy index will be used.")
  
  # Set up Bugsnag exception tracking, if desired. To use Bugsnag, install the
  # Bugsnag Python client with the command "pip install bugsnag", and set the

diff --git a/dev-python/httpbin/httpbin-0.10.2.ebuild 
b/dev-python/httpbin/httpbin-0.10.2-r1.ebuild
similarity index 100%
rename from dev-python/httpbin/httpbin-0.10.2.ebuild
rename to dev-python/httpbin/httpbin-0.10.2-r1.ebuild

Reply via email to