14
0

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:
2022-04-06 14:52:18 +00:00
committed by Git OBS Bridge
parent 78170e27c8
commit e1232257d3
2 changed files with 9 additions and 3 deletions

View File

@@ -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 Fri May 28 06:53:23 UTC 2021 - pgajdos@suse.com

View File

@@ -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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 base}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
# /SECTION # /SECTION
BuildRequires: fdupes BuildRequires: fdupes
@@ -75,6 +74,8 @@ original Sigil implementation, like:
%check %check
%if %{with test} %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 %pyunittest discover -v
%endif %endif