Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-flake8-quotes for 
openSUSE:Factory checked in at 2022-12-19 14:08:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flake8-quotes (Old)
 and      /work/SRC/openSUSE:Factory/.python-flake8-quotes.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-flake8-quotes"

Mon Dec 19 14:08:18 2022 rev:8 rq:1043731 version:3.3.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-flake8-quotes/python-flake8-quotes.changes    
    2022-01-15 20:05:31.245774019 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-flake8-quotes.new.1835/python-flake8-quotes.changes
      2022-12-19 14:08:19.790684755 +0100
@@ -1,0 +2,5 @@
+Mon Dec 19 09:01:02 UTC 2022 - Martin LiÅ¡ka <[email protected]>
+
+- Add support-flake8-6.patch in order to support flake8 version 6.
+
+-------------------------------------------------------------------

New:
----
  support-flake8-6.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-flake8-quotes.spec ++++++
--- /var/tmp/diff_new_pack.YemqE2/_old  2022-12-19 14:08:20.258687180 +0100
+++ /var/tmp/diff_new_pack.YemqE2/_new  2022-12-19 14:08:20.262687201 +0100
@@ -26,6 +26,7 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/zheller/flake8-quotes/
 Source:         
https://files.pythonhosted.org/packages/source/f/flake8-quotes/flake8-quotes-%{version}.tar.gz
+Patch0:         support-flake8-6.patch
 BuildRequires:  %{python_module flake8 >= 3.3.0}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
@@ -40,6 +41,7 @@
 
 %prep
 %setup -q -n flake8-quotes-%{version}
+%patch0 -p1
 
 %build
 %python_build

++++++ support-flake8-6.patch ++++++
>From 46d1fdba5c8fb08ae95cdba07b443cd770f8feee Mon Sep 17 00:00:00 2001
From: Alexandru Fikl <[email protected]>
Date: Thu, 24 Nov 2022 08:48:03 +0200
Subject: [PATCH] update add_options for flake8 6.0

---
 flake8_quotes/__init__.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/flake8_quotes/__init__.py b/flake8_quotes/__init__.py
index 3113d7c..7344e3d 100644
--- a/flake8_quotes/__init__.py
+++ b/flake8_quotes/__init__.py
@@ -107,19 +107,19 @@ def _register_opt(parser, *args, **kwargs):
     @classmethod
     def add_options(cls, parser):
         cls._register_opt(parser, '--quotes', action='store',
-                          parse_from_config=True, type='choice',
+                          parse_from_config=True,
                           choices=sorted(cls.INLINE_QUOTES.keys()),
                           help='Deprecated alias for `--inline-quotes`')
         cls._register_opt(parser, '--inline-quotes', default="'",
-                          action='store', parse_from_config=True, 
type='choice',
+                          action='store', parse_from_config=True,
                           choices=sorted(cls.INLINE_QUOTES.keys()),
                           help="Quote to expect in all files (default: ')")
         cls._register_opt(parser, '--multiline-quotes', default=None, 
action='store',
-                          parse_from_config=True, type='choice',
+                          parse_from_config=True,
                           choices=sorted(cls.MULTILINE_QUOTES.keys()),
                           help='Quote to expect in all files (default: """)')
         cls._register_opt(parser, '--docstring-quotes', default=None, 
action='store',
-                          parse_from_config=True, type='choice',
+                          parse_from_config=True,
                           choices=sorted(cls.DOCSTRING_QUOTES.keys()),
                           help='Quote to expect in all files (default: """)')
         cls._register_opt(parser, '--avoid-escape', default=None, 
action='store_true',

Reply via email to