Correct %check to run tests

(cherry picked from commit 6246787a114f027e6453dc17a5625e50c319abcc)
This commit is contained in:
huangtianhua 2021-11-15 10:12:22 +08:00 committed by openeuler-sync-bot
parent 45bf7477e5
commit 616c272a4d

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0
Name: python-flake8-import-order
Version: 0.18.1
Release: 1
Release: 2
Summary: Flake8 and pylama plugin that checks the ordering of import statements.
License: LGPLv3 and MIT and GPLv3
URL: https://github.com/PyCQA/flake8-import-order
@ -25,7 +25,6 @@ BuildRequires: python3-pycodestyle
BuildRequires: python3-enum34
BuildRequires: python3-pylama
BuildRequires: python3-flake8
BuildRequires: python3-pycodestyle
BuildRequires: python3-pyflakes
BuildRequires: python3-pytest
# General requires
@ -34,7 +33,6 @@ Requires: python3-pylama
Requires: python3-pycodestyle
Requires: python3-setuptools
Requires: python3-enum34
Requires: python3-pycodestyle
Requires: python3-pyflakes
%description -n python3-flake8-import-order
A flake8 and Pylama plugin that checks the ordering of your imports. It does
@ -48,7 +46,7 @@ A flake8 and Pylama plugin that checks the ordering of your imports. It does
not check anything else about the imports. Merely that they are grouped and ordered correctly.
%prep
%autosetup -n flake8-import-order-0.18.1
%autosetup -n flake8-import-order-%{version}
%build
%py3_build
@ -83,7 +81,8 @@ mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
%{__python3} setup.py test
%{__python3} setup.py develop --user
%{__python3} -m pytest -v
%files -n python3-flake8-import-order -f filelist.lst
%dir %{python3_sitelib}/*
@ -93,5 +92,8 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
* Tue Nov 16 2021 OpenStack_SIG <openstack@openeuler.org> - 0.18.1-2
- Correct %check to run tests
* Tue Jul 13 2021 OpenStack_SIG <openstack@openeuler.org> - 0.18.1-1
- Package Spec generate