!3 Drop the python-nose dependency
Merge pull request !3 from lyn/openEuler-22.03-LTS-Next
This commit is contained in:
commit
6503883471
@ -2,7 +2,7 @@
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.7.4
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Parameterized testing with any Python test framework
|
||||
|
||||
License: BSD
|
||||
@ -21,7 +21,6 @@ BuildArch: noarch
|
||||
Summary: %{summary}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-nose
|
||||
BuildRequires: python3-nose2
|
||||
BuildRequires: python3-pytest
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
@ -40,14 +39,6 @@ Python 3 version.
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
sed -i 's|^import mock|from unittest import mock|' parameterized/test.py
|
||||
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
||||
nosetests-%{python3_version} -v
|
||||
nose2-%{python3_version} -v
|
||||
py.test-%{python3_version} -v parameterized/test.py
|
||||
%{__python3} -m unittest -v parameterized.test
|
||||
|
||||
%files -n python3-%{srcname}
|
||||
%license LICENSE.txt
|
||||
%doc CHANGELOG.txt README.rst
|
||||
@ -55,5 +46,8 @@ py.test-%{python3_version} -v parameterized/test.py
|
||||
%{python3_sitelib}/%{srcname}/
|
||||
|
||||
%changelog
|
||||
* Sat Jan 8 2022 liyanan <liyanan32@huawei.com> - 0.7.4-2
|
||||
- Drop the python-nose dependency
|
||||
|
||||
* Thu Jun 11 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.7.4-1
|
||||
- build for openEuler
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user