Upgrade the installation method to pyproject
This commit is contained in:
parent
05eb0096d0
commit
ec2d73f42a
@ -1,7 +1,7 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-pytest-mypy
|
Name: python-pytest-mypy
|
||||||
Version: 0.10.3
|
Version: 0.10.3
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Mypy static type checker plugin for Pytest
|
Summary: Mypy static type checker plugin for Pytest
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/dbader/pytest-mypy
|
URL: https://github.com/dbader/pytest-mypy
|
||||||
@ -54,10 +54,10 @@ pytest-flake8 plugin does for flake8.
|
|||||||
%autosetup -n pytest-mypy-%{version}
|
%autosetup -n pytest-mypy-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{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.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
|
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
|
||||||
pushd %{buildroot}
|
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
|
touch doclist.lst
|
||||||
if [ -d usr/share/man ]; then
|
if [ -d usr/share/man ]; then
|
||||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
mv %{buildroot}/filelist.lst .
|
|
||||||
mv %{buildroot}/doclist.lst .
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
%files -n python3-pytest-mypy -f filelist.lst
|
%check
|
||||||
%dir %{python3_sitelib}/*
|
%{__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
|
%files help -f doclist.lst
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Dec 23 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.10.3-1
|
||||||
- Update package to version 0.10.3
|
- Update package to version 0.10.3
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user