14
0

Accepting request 969201 from home:mcalabkova:branches:devel:languages:python

- do not use mock

OBS-URL: https://build.opensuse.org/request/show/969201
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-memcached?expand=0&rev=34
This commit is contained in:
2022-04-11 13:49:23 +00:00
committed by Git OBS Bridge
parent b7e167ac39
commit 825daec582
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 11 13:02:07 UTC 2022 - Markéta Machová <mmachova@suse.com>
- do not use mock
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jun 3 11:51:18 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com> Wed Jun 3 11:51:18 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-python-memcached # spec file for package python-python-memcached
# #
# Copyright (c) 2020 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
@@ -26,7 +26,6 @@ License: Python-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/linsomniac/python-memcached URL: https://github.com/linsomniac/python-memcached
Source: https://github.com/linsomniac/python-memcached/archive/%{version}.tar.gz Source: https://github.com/linsomniac/python-memcached/archive/%{version}.tar.gz
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six} BuildRequires: %{python_module six}
@@ -56,6 +55,7 @@ for more information.
sed -i \ sed -i \
-e 's:#!/usr/bin/env python::' \ -e 's:#!/usr/bin/env python::' \
memcache.py memcache.py
sed -i 's/import mock/import unittest.mock as mock/' tests/test_memcache.py
%build %build
%python_build %python_build