From 552c531468a88bc3395af1bb7126f36e14de2b710f7b2a83ce7ca661c87f2217 Mon Sep 17 00:00:00 2001 From: Axel Braun Date: Wed, 15 Dec 2021 07:58:18 +0000 Subject: [PATCH] Accepting request 940657 from home:pgajdos:python - fix build (testsuite run) - pytest-runner is not required for build OBS-URL: https://build.opensuse.org/request/show/940657 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydyf?expand=0&rev=3 --- python-pydyf.changes | 6 ++++++ python-pydyf.spec | 12 +++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/python-pydyf.changes b/python-pydyf.changes index 2351db4..51a4e69 100644 --- a/python-pydyf.changes +++ b/python-pydyf.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Dec 15 07:53:09 UTC 2021 - pgajdos@suse.com + +- fix build (testsuite run) +- pytest-runner is not required for build + ------------------------------------------------------------------- Thu Nov 18 16:23:51 UTC 2021 - Axel Braun diff --git a/python-pydyf.spec b/python-pydyf.spec index 1a51754..a318eff 100644 --- a/python-pydyf.spec +++ b/python-pydyf.spec @@ -27,24 +27,21 @@ Summary: A low-level PDF generator License: BSD-3-Clause URL: https://www.courtbouillon.org/pydyf Source: https://files.pythonhosted.org/packages/source/p/pydyf/pydyf-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch ## Testing -BuildRequires: %{python_module pytest-runner} -BuildRequires: %{python_module pytest-cov} -BuildRequires: %{python_module pytest-flake8} -BuildRequires: %{python_module pytest-isort} -BuildRequires: %{python_module coverage} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module Pillow} +BuildRequires: %{python_module pytest-isort} BuildRequires: gs - %python_subpackages %description A low-level PDF generator written in Python and based on PDF specification 1.7. + %prep %setup -q -n pydyf-%{version} @@ -56,6 +53,7 @@ A low-level PDF generator written in Python and based on PDF specification 1.7. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +sed -i 's:--flake8 --cov --no-cov-on-fail::' pyproject.toml %pytest tests/test_pydyf.py %files %{python_files}