2015-04-24 16:30:55 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-requests-mock
|
|
|
|
#
|
2024-03-13 07:31:16 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2015-04-24 16:30:55 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 14:59:54 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-04-24 16:30:55 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-21 15:37:38 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2015-04-24 16:30:55 +02:00
|
|
|
Name: python-requests-mock
|
2024-04-06 14:17:01 +02:00
|
|
|
Version: 1.12.1
|
2015-04-24 16:30:55 +02:00
|
|
|
Release: 0
|
2019-09-16 09:32:26 +02:00
|
|
|
Summary: Module to mock out responses from the requests package
|
2015-04-24 16:30:55 +02:00
|
|
|
License: Apache-2.0
|
2019-09-10 12:49:45 +02:00
|
|
|
URL: https://github.com/jamielennox/requests-mock
|
2017-06-06 10:24:19 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/r/requests-mock/requests-mock-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module fixtures}
|
2024-03-13 07:31:16 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-06-07 13:55:11 +02:00
|
|
|
BuildRequires: %{python_module purl}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module requests >= 2.3}
|
2023-01-07 23:57:14 +01:00
|
|
|
BuildRequires: %{python_module requests-futures}
|
2024-04-06 14:17:01 +02:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2024-03-13 07:31:16 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-12-09 12:58:26 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-02-01 21:41:07 +01:00
|
|
|
%if 0%{suse_version} >= 1550 || (0%{?suse_version} == 1500 && 0%{?sle_version} >= 154000)
|
2020-12-09 12:58:26 +01:00
|
|
|
BuildRequires: %{python_module dbm}
|
|
|
|
%else
|
|
|
|
BuildRequires: python3-dbm
|
|
|
|
%endif
|
2017-06-06 10:24:19 +02:00
|
|
|
BuildRequires: fdupes
|
2019-05-07 15:47:22 +02:00
|
|
|
Requires: python-requests >= 2.3
|
2018-12-04 18:21:24 +01:00
|
|
|
BuildArch: noarch
|
2017-06-06 10:24:19 +02:00
|
|
|
%python_subpackages
|
2015-04-24 16:30:55 +02:00
|
|
|
|
|
|
|
%description
|
2017-06-06 10:24:19 +02:00
|
|
|
requests-mock provides a building block to stub out the HTTP requests portions of your testing code.
|
|
|
|
You should checkout the docs for more information.
|
2015-04-24 16:30:55 +02:00
|
|
|
|
|
|
|
%prep
|
2022-07-22 13:15:57 +02:00
|
|
|
%autosetup -p1 -n requests-mock-%{version}
|
2015-04-24 16:30:55 +02:00
|
|
|
|
|
|
|
%build
|
2024-03-13 07:31:16 +01:00
|
|
|
%pyproject_wheel
|
2015-04-24 16:30:55 +02:00
|
|
|
|
|
|
|
%install
|
2024-03-13 07:31:16 +01:00
|
|
|
%pyproject_install
|
2019-06-07 13:55:11 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2015-04-24 16:30:55 +02:00
|
|
|
|
|
|
|
%check
|
2023-02-01 21:41:07 +01:00
|
|
|
%pytest tests
|
2015-04-24 16:30:55 +02:00
|
|
|
|
2017-06-06 10:24:19 +02:00
|
|
|
%files %{python_files}
|
2018-12-04 18:21:24 +01:00
|
|
|
%license LICENSE
|
2024-04-06 14:17:01 +02:00
|
|
|
%doc README.rst
|
2024-03-13 07:31:16 +01:00
|
|
|
%{python_sitelib}/requests_mock
|
|
|
|
%{python_sitelib}/requests_mock-%{version}.dist-info
|
2015-04-24 16:30:55 +02:00
|
|
|
|
|
|
|
%changelog
|