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