Correct %check to run tests
(cherry picked from commit 6246787a114f027e6453dc17a5625e50c319abcc)
This commit is contained in:
parent
45bf7477e5
commit
616c272a4d
@ -1,7 +1,7 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-flake8-import-order
|
Name: python-flake8-import-order
|
||||||
Version: 0.18.1
|
Version: 0.18.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Flake8 and pylama plugin that checks the ordering of import statements.
|
Summary: Flake8 and pylama plugin that checks the ordering of import statements.
|
||||||
License: LGPLv3 and MIT and GPLv3
|
License: LGPLv3 and MIT and GPLv3
|
||||||
URL: https://github.com/PyCQA/flake8-import-order
|
URL: https://github.com/PyCQA/flake8-import-order
|
||||||
@ -25,7 +25,6 @@ BuildRequires: python3-pycodestyle
|
|||||||
BuildRequires: python3-enum34
|
BuildRequires: python3-enum34
|
||||||
BuildRequires: python3-pylama
|
BuildRequires: python3-pylama
|
||||||
BuildRequires: python3-flake8
|
BuildRequires: python3-flake8
|
||||||
BuildRequires: python3-pycodestyle
|
|
||||||
BuildRequires: python3-pyflakes
|
BuildRequires: python3-pyflakes
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
# General requires
|
# General requires
|
||||||
@ -34,7 +33,6 @@ Requires: python3-pylama
|
|||||||
Requires: python3-pycodestyle
|
Requires: python3-pycodestyle
|
||||||
Requires: python3-setuptools
|
Requires: python3-setuptools
|
||||||
Requires: python3-enum34
|
Requires: python3-enum34
|
||||||
Requires: python3-pycodestyle
|
|
||||||
Requires: python3-pyflakes
|
Requires: python3-pyflakes
|
||||||
%description -n python3-flake8-import-order
|
%description -n python3-flake8-import-order
|
||||||
A flake8 and Pylama plugin that checks the ordering of your imports. It does
|
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.
|
not check anything else about the imports. Merely that they are grouped and ordered correctly.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n flake8-import-order-0.18.1
|
%autosetup -n flake8-import-order-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -83,7 +81,8 @@ mv %{buildroot}/filelist.lst .
|
|||||||
mv %{buildroot}/doclist.lst .
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py develop --user
|
||||||
|
%{__python3} -m pytest -v
|
||||||
|
|
||||||
%files -n python3-flake8-import-order -f filelist.lst
|
%files -n python3-flake8-import-order -f filelist.lst
|
||||||
%dir %{python3_sitelib}/*
|
%dir %{python3_sitelib}/*
|
||||||
@ -93,5 +92,8 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Jul 13 2021 OpenStack_SIG <openstack@openeuler.org> - 0.18.1-1
|
||||||
- Package Spec generate
|
- Package Spec generate
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user