diff --git a/ignore-selectable-groups-warning.patch b/ignore-selectable-groups-warning.patch new file mode 100644 index 0000000..9cf3d45 --- /dev/null +++ b/ignore-selectable-groups-warning.patch @@ -0,0 +1,21 @@ +From d34581b83f75e12e2c021577aa2523eea8a9b590 Mon Sep 17 00:00:00 2001 +From: Anthony Sottile +Date: Sun, 15 Aug 2021 18:47:16 -0400 +Subject: [PATCH] test using python3.10 + +--- + .github/workflows/main.yml | 3 +++ + pytest.ini | 4 +++- + tests/integration/test_main.py | 8 ++++++-- + tests/unit/test_plugin_type_manager.py | 21 +++++++-------------- + 4 files changed, 19 insertions(+), 17 deletions(-) + +Index: flake8-3.9.2/pytest.ini +=================================================================== +--- flake8-3.9.2.orig/pytest.ini ++++ flake8-3.9.2/pytest.ini +@@ -8,3 +8,4 @@ filterwarnings = + # python3 raises this when importing setuptools + ignore:the imp module is deprecated in favour of importlib.*:PendingDeprecationWarning + ignore:the imp module is deprecated in favour of importlib.*:DeprecationWarning ++ ignore:SelectableGroups:DeprecationWarning diff --git a/python-flake8.changes b/python-flake8.changes index 371bd5c..5d0e190 100644 --- a/python-flake8.changes +++ b/python-flake8.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 24 09:06:44 UTC 2021 - Steve Kowalik + +- Add ignore-selectable-groups-warning.patch: + * Ignore unfixed warning. + ------------------------------------------------------------------- Sun Jun 6 12:34:59 UTC 2021 - Dirk Müller diff --git a/python-flake8.spec b/python-flake8.spec index e9aeaee..6a216de 100644 --- a/python-flake8.spec +++ b/python-flake8.spec @@ -26,6 +26,7 @@ License: MIT URL: https://gitlab.com/pycqa/flake8 Source: https://files.pythonhosted.org/packages/source/f/flake8/flake8-%{version}.tar.gz Patch0: fix-mock-patch-with-python3.4.patch +Patch1: ignore-selectable-groups-warning.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros