# # spec file for package python-vcrpy # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # 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 Version: 1.11.1 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 Source: https://pypi.io/packages/source/v/vcrpy/vcrpy-%{version}.tar.gz BuildRequires: python-PyYAML BuildRequires: python-contextlib2 BuildRequires: python-devel BuildRequires: python-mock BuildRequires: python-pytest 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 BuildArch: noarch %description 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. %prep %setup -q -n vcrpy-%{version} %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} %check #python setup.py test # Integration tests require internet access; # fail with 'Temporary failure in name resolution' PYTHONPATH=$PYTHONPATH:.:./tests py.test-2.7 -k "not testing_connect" tests/unit %files %defattr(-,root,root,-) %doc LICENSE.txt README.rst %{python_sitelib}/vcr %{python_sitelib}/vcrpy-%{version}-py%{py_ver}.egg-info %changelog