15
0

- Update to 1.3.0:

* Minor fixes collection
- Switch to github for tests
- Run tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httmock?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2019-03-04 13:31:52 +00:00
committed by Git OBS Bridge
parent 654eacee4b
commit c0321073c1
4 changed files with 17 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-httmock
#
# 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
@@ -18,13 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-httmock
Version: 1.2.6
Version: 1.3.0
Release: 0
Summary: A mocking library for requests
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/patrys/httmock
Source: https://files.pythonhosted.org/packages/source/h/httmock/httmock-%{version}.tar.gz
Source: https://github.com/patrys/httmock/archive/%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -53,6 +53,9 @@ You can use it to mock third-party APIs and test libraries that use
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m unittest discover
%files %{python_files}
%doc README.md
%license LICENSE