forked from pool/python-pydenticon
Accepting request 967325 from home:pgajdos:python
- do not require python-mock for build OBS-URL: https://build.opensuse.org/request/show/967325 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydenticon?expand=0&rev=14
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 6 12:38:28 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
- do not require python-mock for build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 28 06:53:23 UTC 2021 - pgajdos@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pydenticon
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -37,7 +37,6 @@ BuildRequires: %{python_module Pillow}
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
@@ -75,6 +74,8 @@ original Sigil implementation, like:
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
# https://github.com/azaghal/pydenticon/issues/11
|
||||
sed -i 's:^import mock:from unittest import mock:' tests/test_pydenticon.py
|
||||
%pyunittest discover -v
|
||||
%endif
|
||||
|
||||
|
Reference in New Issue
Block a user