From e52d4db7230f450962c11b3c3c27f9baccef332e5149d0060cf57648108f2f15 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 19 May 2021 11:52:57 +0000 Subject: [PATCH] Accepting request 894299 from home:pgajdos:python - added patches fix https://gitlab.com/pycqa/flake8-polyfill/-/issues/3 + python-flake8-polyfill-tool-pytest.patch OBS-URL: https://build.opensuse.org/request/show/894299 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-polyfill?expand=0&rev=8 --- python-flake8-polyfill-tool-pytest.patch | 10 ++++++++++ python-flake8-polyfill.changes | 7 +++++++ python-flake8-polyfill.spec | 5 ++++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 python-flake8-polyfill-tool-pytest.patch diff --git a/python-flake8-polyfill-tool-pytest.patch b/python-flake8-polyfill-tool-pytest.patch new file mode 100644 index 0000000..cf21484 --- /dev/null +++ b/python-flake8-polyfill-tool-pytest.patch @@ -0,0 +1,10 @@ +-- a/setup.cfg ++++ b/setup.cfg +@@ -1,7 +1,7 @@ + [bdist_wheel] + universal = 1 + +-[pytest] ++[tool:pytest] + norecursedirs = .git .* *.egg* old docs dist build + addopts = -rw diff --git a/python-flake8-polyfill.changes b/python-flake8-polyfill.changes index a749480..47ad9ea 100644 --- a/python-flake8-polyfill.changes +++ b/python-flake8-polyfill.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed May 19 10:42:19 UTC 2021 - pgajdos@suse.com + +- added patches + fix https://gitlab.com/pycqa/flake8-polyfill/-/issues/3 + + python-flake8-polyfill-tool-pytest.patch + ------------------------------------------------------------------- Wed May 19 07:13:03 UTC 2021 - pgajdos@suse.com diff --git a/python-flake8-polyfill.spec b/python-flake8-polyfill.spec index 15cb45e..4223610 100644 --- a/python-flake8-polyfill.spec +++ b/python-flake8-polyfill.spec @@ -27,6 +27,8 @@ URL: https://gitlab.com/pycqa/flake8-polyfill Source: https://files.pythonhosted.org/packages/source/f/flake8-polyfill/flake8-polyfill-%{version}.tar.gz # https://gitlab.com/pycqa/flake8-polyfill/-/merge_requests/8 Patch0: python-flake8-polyfill-use-unittest-mock.patch +# https://gitlab.com/pycqa/flake8-polyfill/-/issues/3 +Patch1: python-flake8-polyfill-tool-pytest.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -48,6 +50,7 @@ Flake8 plugins that intend to support Flake8 2.x and 3.x simultaneously. %prep %setup -q -n flake8-polyfill-%{version} %patch0 -p1 +%patch1 -p1 %build %python_build @@ -58,7 +61,7 @@ Flake8 plugins that intend to support Flake8 2.x and 3.x simultaneously. %check # tests/test_stdin.py: we do not have pep8 module in TW -%pytest -c /dev/null tests/test_options.py +%pytest tests/test_options.py %files %{python_files} %doc AUTHORS.rst CHANGELOG.rst README.rst