#2 Remove redundant dependencies on mock and nose
Merged 2 years ago by cstratak. Opened 2 years ago by cstratak.
rpms/ cstratak/python-okaara remove_nose_mock  into  rawhide

file modified
+10 -5
@@ -6,7 +6,7 @@ 

  

  Name:           python-okaara

  Version:        1.0.37

- Release:        19%{?dist}

+ Release:        20%{?dist}

  Summary:        Python command line utilities

  

  License:        GPLv2
@@ -23,10 +23,7 @@ 

  BuildRequires:  python3-devel

  BuildRequires:  python3-setuptools

  BuildRequires:  python3-babel

- BuildRequires:  python3-nose

  BuildRequires:  python3-future

- BuildRequires:  python3-mock

- %{?python_provide:%python_provide python3-%{modname}}

  

  %description -n python3-%{modname}

  Python library to facilitate the creation of command-line interfaces.
@@ -35,6 +32,11 @@ 

  %prep

  %autosetup -n %{modname}-%{name}-%{version}-%{rel}

  

+ # Use the standard library instead of a backport

+ sed -i -e 's/^import mock/from unittest import mock/' \

+        -e 's/^from mock import /from unittest.mock import /' \

+     test/*.py

+ 

  # -- build --------------------------------------------------------------------

  

  %build
@@ -62,7 +64,7 @@ 

  # -- check --------------------------------------------------------------------

  

  %check

- nosetests-%{python3_version}

+ %{python3} -m unittest discover test/

  

  # -- files --------------------------------------------------------------------

  
@@ -74,6 +76,9 @@ 

  # -- changelog ----------------------------------------------------------------

  

  %changelog

+ * Wed Mar 02 2022 Charalampos Stratakis <cstratak@redhat.com> - 1.0.37-20

+ - Remove redundant dependencies on mock and nose

+ 

  * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.37-19

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

  

no initial comment

Pull-Request has been merged by cstratak

2 years ago
Metadata