15
0

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
This commit is contained in:
2021-05-19 11:52:57 +00:00
committed by Git OBS Bridge
parent 3a120e97f6
commit e52d4db723
3 changed files with 21 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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