- 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:
parent
e52ac64447
commit
55cac90fb1
@ -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>
|
Mon Jul 17 16:25:53 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-requests-mock
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Source: https://files.pythonhosted.org/packages/source/r/requests-mock/requests-mock-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module fixtures}
|
BuildRequires: %{python_module fixtures}
|
||||||
BuildRequires: %{python_module pbr}
|
BuildRequires: %{python_module pbr}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module purl}
|
BuildRequires: %{python_module purl}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module requests >= 2.3}
|
BuildRequires: %{python_module requests >= 2.3}
|
||||||
BuildRequires: %{python_module requests-futures}
|
BuildRequires: %{python_module requests-futures}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
%if 0%{suse_version} >= 1550 || (0%{?suse_version} == 1500 && 0%{?sle_version} >= 154000)
|
%if 0%{suse_version} >= 1550 || (0%{?suse_version} == 1500 && 0%{?sle_version} >= 154000)
|
||||||
BuildRequires: %{python_module dbm}
|
BuildRequires: %{python_module dbm}
|
||||||
@ -40,9 +42,7 @@ BuildRequires: python3-dbm
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
Requires: python-requests >= 2.3
|
Requires: python-requests >= 2.3
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
Requires: python-urllib3 < 2
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires: python-dbm
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -53,10 +53,10 @@ You should checkout the docs for more information.
|
|||||||
%autosetup -p1 -n requests-mock-%{version}
|
%autosetup -p1 -n requests-mock-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -65,6 +65,7 @@ You should checkout the docs for more information.
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc AUTHORS README.rst ChangeLog
|
%doc AUTHORS README.rst ChangeLog
|
||||||
%{python_sitelib}/requests_mock*
|
%{python_sitelib}/requests_mock
|
||||||
|
%{python_sitelib}/requests_mock-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user