Accepting request 676961 from devel:languages:python:pytest

OBS-URL: https://build.opensuse.org/request/show/676961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-httpbin?expand=0&rev=7
This commit is contained in:
2019-02-26 21:14:38 +00:00
committed by Git OBS Bridge
parent b165106aa9
commit 14e15708aa
4 changed files with 33 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-httpbin
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,27 +12,30 @@
# 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-%{**}}
Name: python-pytest-httpbin
Version: 0.3.0
Version: 1.0.0
Release: 0
Summary: Test your HTTP library against a local copy of httpbin
Summary: Web service for testing HTTP libraries
License: MIT
Group: Development/Languages/Python
Url: https://github.com/kevin1024/pytest-httpbin
Source: https://files.pythonhosted.org/packages/source/p/pytest-httpbin/pytest-httpbin-%{version}.tar.gz
URL: https://github.com/kevin1024/pytest-httpbin
Source: https://github.com/kevin1024/pytest-httpbin/archive/v%{version}.tar.gz
BuildRequires: %{python_module httpbin}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-httpbin
Requires: python-pytest
Requires: python-six
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
@@ -48,14 +51,17 @@ fixture.
%setup -q -n pytest-httpbin-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
%files %{python_files}
%defattr(-,root,root,-)
%doc README.md DESCRIPTION.rst
%{python_sitelib}/*
%changelog