Accepting request 1085937 from devel:languages:python

- Actually run the testsuite.
- Add a missing Requires on python-rich

OBS-URL: https://build.opensuse.org/request/show/1085937
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-enrich?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2023-05-10 14:19:32 +00:00 committed by Git OBS Bridge
commit ace05ae778
2 changed files with 17 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 10 02:46:11 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Actually run the testsuite.
- Add a missing Requires on python-rich
-------------------------------------------------------------------
Fri May 5 11:56:47 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>

View File

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