- Drop unneeded Requires, and also no longer restrict urllib3.

- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=58
This commit is contained in:
Steve Kowalik 2024-03-13 06:31:16 +00:00 committed by Git OBS Bridge
parent e52ac64447
commit 55cac90fb1
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 13 06:30:28 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Drop unneeded Requires, and also no longer restrict urllib3.
- Switch to pyproject macros.
-------------------------------------------------------------------
Mon Jul 17 16:25:53 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-requests-mock
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -26,11 +26,13 @@ URL: https://github.com/jamielennox/requests-mock
Source: https://files.pythonhosted.org/packages/source/r/requests-mock/requests-mock-%{version}.tar.gz
BuildRequires: %{python_module fixtures}
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module purl}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.3}
BuildRequires: %{python_module requests-futures}
BuildRequires: %{python_module six}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
%if 0%{suse_version} >= 1550 || (0%{?suse_version} == 1500 && 0%{?sle_version} >= 154000)
BuildRequires: %{python_module dbm}
@ -40,9 +42,7 @@ BuildRequires: python3-dbm
BuildRequires: fdupes
Requires: python-requests >= 2.3
Requires: python-six
Requires: python-urllib3 < 2
BuildArch: noarch
Requires: python-dbm
%python_subpackages
%description
@ -53,10 +53,10 @@ You should checkout the docs for more information.
%autosetup -p1 -n requests-mock-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@ -65,6 +65,7 @@ You should checkout the docs for more information.
%files %{python_files}
%license LICENSE
%doc AUTHORS README.rst ChangeLog
%{python_sitelib}/requests_mock*
%{python_sitelib}/requests_mock
%{python_sitelib}/requests_mock-%{version}.dist-info
%changelog