forked from pool/python-requests-toolbelt
Accepting request 855341 from home:mcepl:branches:devel:tools:scm
- Add remove_mock.patch to remove dependency on the external mock OBS-URL: https://build.opensuse.org/request/show/855341 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-toolbelt?expand=0&rev=16
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-requests-toolbelt
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,6 +26,9 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/requests/toolbelt
|
||||
Source: https://files.pythonhosted.org/packages/source/r/requests-toolbelt/requests-toolbelt-%{version}.tar.gz
|
||||
Patch0: fix-tests.patch
|
||||
# PATCH-FIX-UPSTREAM remove_mock.patch bsc#[0-9]+ mcepl@suse.com
|
||||
# remove dependency on the external mock package
|
||||
Patch1: remove_mock.patch
|
||||
BuildRequires: %{python_module requests >= 2.12.2}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@@ -34,7 +37,6 @@ Requires: python-requests >= 2.12.2
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module betamax >= 0.5.0}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pyOpenSSL}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
@@ -47,8 +49,8 @@ really belong in ``requests`` proper. The minimum tested requests version is
|
||||
some idiosyncracies prevent effective or sane testing on that version.
|
||||
|
||||
%prep
|
||||
%setup -q -n requests-toolbelt-%{version}
|
||||
%patch0 -p1
|
||||
%autosetup -p1 -n requests-toolbelt-%{version}
|
||||
|
||||
rm -rf requests_toolbelt.egg-info
|
||||
# requires network access
|
||||
rm -v tests/test_multipart_encoder.py
|
||||
|
Reference in New Issue
Block a user