!3 Upgrade the installation method to pyproject
From: @li-miaomiao_zhr Reviewed-by: @xiyuanwang Signed-off-by: @xiyuanwang
This commit is contained in:
commit
45380f062c
@ -1,7 +1,7 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-pytest-mypy
|
||||
Version: 0.10.3
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Mypy static type checker plugin for Pytest
|
||||
License: MIT
|
||||
URL: https://github.com/dbader/pytest-mypy
|
||||
@ -54,10 +54,10 @@ pytest-flake8 plugin does for flake8.
|
||||
%autosetup -n pytest-mypy-%{version}
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||
@ -67,33 +67,28 @@ if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
|
||||
pushd %{buildroot}
|
||||
if [ -d usr/lib ]; then
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib64 ]; then
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/bin ]; then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ]; then
|
||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
touch doclist.lst
|
||||
if [ -d usr/share/man ]; then
|
||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
mv %{buildroot}/doclist.lst .
|
||||
|
||||
%files -n python3-pytest-mypy -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
%check
|
||||
%{__python3} setup.py test
|
||||
|
||||
%files -n python3-pytest-mypy
|
||||
%{python3_sitelib}/__pycache__/pytest_mypy.*
|
||||
%{python3_sitelib}/pytest_mypy-*.dist-info/
|
||||
%{python3_sitelib}/pytest_mypy.py
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Thu Jul 6 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 0.10.3-2
|
||||
- Upgrade the installation method to pyproject
|
||||
|
||||
* Fri Dec 23 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.10.3-1
|
||||
- Update package to version 0.10.3
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user