2015-02-09 15:55:41 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-vcrpy
|
|
|
|
#
|
2017-07-06 11:31:44 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-02-09 15:55:41 +00:00
|
|
|
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-vcrpy
|
2017-07-06 11:31:44 +00:00
|
|
|
Version: 1.11.1
|
2015-02-09 15:55:41 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Automatically mock your HTTP interactions to simplify and speed up testing
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Url: https://github.com/kevin1024/vcrpy
|
2016-09-21 11:08:59 +00:00
|
|
|
Source: https://pypi.io/packages/source/v/vcrpy/vcrpy-%{version}.tar.gz
|
2015-02-09 15:55:41 +00:00
|
|
|
BuildRequires: python-PyYAML
|
|
|
|
BuildRequires: python-contextlib2
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-mock
|
2017-07-06 11:31:44 +00:00
|
|
|
BuildRequires: python-pytest
|
2015-02-09 15:55:41 +00:00
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-six
|
|
|
|
BuildRequires: python-wrapt
|
|
|
|
Requires: python-PyYAML
|
|
|
|
Requires: python-contextlib2
|
|
|
|
Requires: python-mock
|
|
|
|
Requires: python-six
|
|
|
|
Requires: python-wrapt
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-09-21 11:08:59 +00:00
|
|
|
BuildArch: noarch
|
2015-02-09 15:55:41 +00:00
|
|
|
|
|
|
|
%description
|
2016-01-27 13:57:19 +00:00
|
|
|
Record your test suite's HTTP interactions and replay them during future test
|
|
|
|
runs for fast, deterministic, accurate tests.
|
|
|
|
|
|
|
|
This is a Python version of Ruby's VCR library.
|
2015-02-09 15:55:41 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n vcrpy-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
|
|
|
%check
|
2016-01-27 13:57:19 +00:00
|
|
|
#python setup.py test
|
|
|
|
# Integration tests require internet access;
|
|
|
|
# fail with 'Temporary failure in name resolution'
|
2017-07-06 11:31:44 +00:00
|
|
|
PYTHONPATH=$PYTHONPATH:.:./tests py.test-2.7 -k "not testing_connect" tests/unit
|
2015-02-09 15:55:41 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2016-09-21 11:08:59 +00:00
|
|
|
%doc LICENSE.txt README.rst
|
|
|
|
%{python_sitelib}/vcr
|
|
|
|
%{python_sitelib}/vcrpy-%{version}-py%{py_ver}.egg-info
|
2015-02-09 15:55:41 +00:00
|
|
|
|
|
|
|
%changelog
|