Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-flasgger for openSUSE:Factory
checked in at 2025-01-29 16:09:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flasgger (Old)
and /work/SRC/openSUSE:Factory/.python-flasgger.new.2316 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flasgger"
Wed Jan 29 16:09:45 2025 rev:10 rq:1239689 version:0.9.7.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-flasgger/python-flasgger.changes
2024-09-01 19:20:53.138679158 +0200
+++
/work/SRC/openSUSE:Factory/.python-flasgger.new.2316/python-flasgger.changes
2025-01-29 16:09:52.954231291 +0100
@@ -1,0 +2,8 @@
+Thu Jan 23 03:51:17 UTC 2025 - Steve Kowalik <[email protected]>
+
+- Switch to autosetup macro.
+- Clean up BuildRequires for test flavor.
+- Add patch remove-six.patch:
+ * Remove use of six.
+
+-------------------------------------------------------------------
New:
----
remove-six.patch
BETA DEBUG BEGIN:
New:- Clean up BuildRequires for test flavor.
- Add patch remove-six.patch:
* Remove use of six.
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-flasgger.spec ++++++
--- /var/tmp/diff_new_pack.6zG5CW/_old 2025-01-29 16:09:53.702262311 +0100
+++ /var/tmp/diff_new_pack.6zG5CW/_new 2025-01-29 16:09:53.702262311 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-flasgger
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -33,6 +33,8 @@
License: MIT
URL: https://github.com/flasgger/flasgger/
Source:
https://files.pythonhosted.org/packages/source/f/flasgger/flasgger-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM Based on gh#flasgger/flasgger#629
+Patch0: remove-six.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
@@ -43,19 +45,12 @@
Requires: python-jsonschema >= 3.0.1
Requires: python-mistune >= 3
Requires: python-packaging
-Requires: python-six >= 1.10
BuildArch: noarch
-
%if %{with test}
# SECTION test requirements
BuildRequires: %{python_module flasgger = %{version}}
-BuildRequires: %{python_module Flask >= 0.10}
-BuildRequires: %{python_module PyYAML >= 3.0}
-BuildRequires: %{python_module jsonschema >= 3.0.1}
BuildRequires: %{python_module marshmallow}
-BuildRequires: %{python_module mistune >= 3}
BuildRequires: %{python_module pytest >= 3.0.7}
-BuildRequires: %{python_module six >= 1.10}
# /SECTION
%endif
@@ -65,7 +60,7 @@
Flasgger is a Flask extension to extract OpenAPI=Specification from all Flask
views registered in an API.
%prep
-%setup -q -n flasgger-%{version}
+%autosetup -p1 -n flasgger-%{version}
# Examples directory is not included in PyPI release
rm tests/test_examples.py
++++++ remove-six.patch ++++++
>From 0c4f8e15c6a730a20326ba78bf725e49e8682672 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Thu, 23 Jan 2025 14:29:09 +1100
Subject: [PATCH] Remove use of six
Now that Python 2 support has been removed, we can stop using the crutch
of six to support both versions. StringLike could probably be
refactored now to be a subclass of str, but I have left that alone to
make this diff small.
---
flasgger/utils.py | 5 ++---
requirements.txt | 3 +--
setup.py | 1 -
3 files changed, 3 insertions(+), 6 deletions(-)
Index: flasgger-0.9.7.1/flasgger/utils.py
===================================================================
--- flasgger-0.9.7.1.orig/flasgger/utils.py
+++ flasgger-0.9.7.1/flasgger/utils.py
@@ -9,7 +9,6 @@ import re
import sys
import jsonschema
import yaml
-from six import string_types, text_type
from copy import deepcopy
from functools import wraps
from importlib import import_module
@@ -269,7 +268,7 @@ def swag_from(
def is_path(specs):
""" Returns True if specs is a string or pathlib.Path
"""
- is_str_path = isinstance(specs, string_types)
+ is_str_path = isinstance(specs, str)
try:
from pathlib import Path
is_py3_path = isinstance(specs, Path)
@@ -928,7 +927,7 @@ class StringLike(object):
@property
def text_type(self):
- return text_type
+ return str
class LazyString(StringLike):
Index: flasgger-0.9.7.1/setup.py
===================================================================
--- flasgger-0.9.7.1.orig/setup.py
+++ flasgger-0.9.7.1/setup.py
@@ -54,7 +54,6 @@ setup(
'PyYAML>=3.0',
'jsonschema>=3.0.1',
'mistune',
- 'six>=1.10.0',
'packaging',
],
classifiers=[