| |
@@ -3,7 +3,7 @@
|
| |
|
| |
Name: python-%{srcname}
|
| |
Version: 0.9.1
|
| |
- Release: 15%{?dist}
|
| |
+ Release: 16%{?dist}
|
| |
Summary: Utility belt for advanced users of python-requests
|
| |
|
| |
License: ASL 2.0
|
| |
@@ -30,7 +30,6 @@
|
| |
BuildRequires: python3-devel
|
| |
BuildRequires: python3-setuptools
|
| |
BuildRequires: python3-betamax
|
| |
- BuildRequires: python3-mock
|
| |
BuildRequires: python3-pyOpenSSL
|
| |
BuildRequires: python3-pytest
|
| |
BuildRequires: python3-requests
|
| |
@@ -43,6 +42,12 @@
|
| |
%prep
|
| |
%autosetup -p1 -n toolbelt-%{version}
|
| |
|
| |
+ # https://fedoraproject.org/wiki/Changes/DeprecatePythonMock
|
| |
+ sed -i -E -e 's/^(\s*)import mock/\1from unittest import mock/' \
|
| |
+ -e 's/^(\s*)from mock import /\1from unittest.mock import /' \
|
| |
+ tests/*.py tests/*/*.py
|
| |
+
|
| |
+
|
| |
%build
|
| |
%py3_build
|
| |
|
| |
@@ -62,6 +67,9 @@
|
| |
%{python3_sitelib}/%{altname}-*.egg-info/
|
| |
|
| |
%changelog
|
| |
+ * Thu Jan 06 2022 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-16
|
| |
+ - Drop build dependency on deprecated python3-mock
|
| |
+
|
| |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-15
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
| |
|
| |