14
0
forked from pool/python-vcrpy

Accepting request 644399 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/644399
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-vcrpy?expand=0&rev=2
This commit is contained in:
2018-10-26 09:08:39 +00:00
committed by Git OBS Bridge
4 changed files with 27 additions and 24 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Oct 24 15:24:59 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Use noun phrase in summary and adjust descriptions.
-------------------------------------------------------------------
Wed Oct 24 13:31:40 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Version update to 2.0.1:
* Support python 3.7 (fix httplib2 and urllib2, thanks @felixonmars)
-------------------------------------------------------------------
Thu Jul 13 22:09:12 UTC 2017 - sean.marlow@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-vcrpy
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -13,37 +13,34 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-vcrpy
Version: 1.11.1
Version: 2.0.1
Release: 0
Summary: Automatically mock your HTTP interactions to simplify and speed up testing
Summary: Python module to mock and replay HTTP interactions
License: MIT
Group: Development/Languages/Python
Url: https://github.com/kevin1024/vcrpy
URL: https://github.com/kevin1024/vcrpy
Source: https://files.pythonhosted.org/packages/source/v/vcrpy/vcrpy-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module pytest-httpbin}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.5}
BuildRequires: %{python_module wrapt}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-contextlib2
BuildRequires: python2-mock
BuildRequires: python3-yarl
%endif
Requires: python-PyYAML
Requires: python-six >= 1.5
Requires: python-wrapt
BuildArch: noarch
%ifpython2
Requires: python2-contextlib2
Requires: python2-mock
@@ -51,14 +48,11 @@ Requires: python2-mock
%ifpython3
Requires: python3-yarl
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
Record your test suite's HTTP interactions and replay them during future test
runs for fast, deterministic, accurate tests.
This module records a test suite's HTTP interactions and replays them during future
test runs for deterministic tests.
This is a Python version of Ruby's VCR library.
@@ -72,16 +66,14 @@ This is a Python version of Ruby's VCR library.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}/vcr
%if %{with test}
%check
# Skip TestVCRConnection.testing_connect. Attempts
# a real connection.
%python_exec -m pytest -k "not testing_connect" tests
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE.txt README.rst
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/*
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f434fe7e05d940d576ac850709ae57a738ba40e7f317076ea8d359ced5b32320
size 63122

3
vcrpy-2.0.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57be64aa8e9883a4117d0b15de28af62275c001abcdb00b6dc2d4406073d9a4f
size 63596