From 858970037f47fdac2ce009e10025ef846e0799f6789172e8bfd463400943fb4c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 10 May 2023 02:47:02 +0000 Subject: [PATCH] - Actually run the testsuite. - Add a missing Requires on python-rich OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-enrich?expand=0&rev=5 --- python-enrich.changes | 6 ++++++ python-enrich.spec | 14 +++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/python-enrich.changes b/python-enrich.changes index def13e4..078824d 100644 --- a/python-enrich.changes +++ b/python-enrich.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 10 02:46:11 UTC 2023 - Steve Kowalik + +- Actually run the testsuite. +- Add a missing Requires on python-rich + ------------------------------------------------------------------- Fri May 5 11:56:47 UTC 2023 - Johannes Kastl diff --git a/python-enrich.spec b/python-enrich.spec index fe84fda..04dc6d2 100644 --- a/python-enrich.spec +++ b/python-enrich.spec @@ -27,9 +27,13 @@ URL: https://github.com/pycontribs/enrich Source: https://files.pythonhosted.org/packages/source/e/enrich/enrich-%{version}.tar.gz Patch0: remove_setuptools_scm.patch BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module rich} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-rich BuildArch: noarch %python_subpackages @@ -38,8 +42,7 @@ Extends the python-rich library functionality with a set of changes that were not accepted to rich itself. %prep -%setup -q -n enrich-%{version} -%patch0 -p1 +%autosetup -p1 -n enrich-%{version} sed -i 's/__VERSION__/%version/' setup.py sed -i '/_scm/ d' setup.cfg @@ -50,7 +53,12 @@ sed -i '/_scm/ d' setup.cfg %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +# gh#pycontribs/enrich#40 +%pytest -k 'not test_rich_console_ex' + %files %{python_files} -%{python_sitelib}/enrich* +%{python_sitelib}/enrich +%{python_sitelib}/enrich-%{version}*info %changelog