!8 Upgrade package to version 0.982

From: @Gzx1999 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-10-20 12:38:31 +00:00 committed by Gitee
commit fc3209acdb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 38 additions and 19 deletions

BIN
mypy-0.982.tar.gz Normal file

Binary file not shown.

View File

@ -1,15 +1,16 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-mypy Name: python-mypy
Version: 0.901 Version: 0.982
Release: 1 Release: 1
Summary: Optional static typing for Python Summary: Optional static typing for Python
License: MIT and Python-2.0 License: MIT and Python-2.0
URL: https://github.com/python/mypy URL: https://github.com/python/mypy
Source0: https://github.com/python/mypy/archive/refs/tags/v%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/0d/75/a1ec1af4153f7b7ae825705ada667bf445418277153c76972ba0ad782bb9/mypy-0.982.tar.gz
Requires: python3-typed-ast Requires: python3-typed-ast
Requires: python3-typing-extensions Requires: python3-typing-extensions
Requires: python3-mypy-extensions Requires: python3-mypy-extensions
Requires: python3-tomli
Requires: python3-psutil Requires: python3-psutil
%description %description
@ -29,7 +30,6 @@ BuildRequires: python3-cffi
BuildRequires: gcc BuildRequires: gcc
BuildRequires: python3-pip BuildRequires: python3-pip
BuildRequires: python3-pbr BuildRequires: python3-pbr
# Needed to generate the man pages
BuildRequires: help2man BuildRequires: help2man
%description -n python3-mypy %description -n python3-mypy
Add type annotations to your Python programs, and use mypy to type Add type annotations to your Python programs, and use mypy to type
@ -73,27 +73,46 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \
--no-discard-stderr -o %{buildroot}%{_mandir}/man1/stubgen.1 \ --no-discard-stderr -o %{buildroot}%{_mandir}/man1/stubgen.1 \
%{buildroot}%{_bindir}/stubgen %{buildroot}%{_bindir}/stubgen
%files -n python3-mypy install -d -m755 %{buildroot}/%{_pkgdocdir}
%{python3_sitelib}/mypy if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
%{python3_sitelib}/mypy-*.egg-info if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
%{python3_sitelib}/mypyc if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
%{_bindir}/mypy if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
%{_bindir}/mypyc pushd %{buildroot}
%{_bindir}/dmypy if [ -d usr/lib ]; then
%{_bindir}/stubgen find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
%{_bindir}/stubtest 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 help %files -n python3-mypy -f filelist.lst
%license LICENSE %{python3_sitelib}/*
%doc README.md
%{_mandir}/man1/mypy.1* %files help -f doclist.lst
%{_mandir}/man1/stubgen.1* %{_docdir}/*
%changelog %changelog
* Tue Oct 11 2022 guozhengxin <guozhengxin@kylinos.cn> - 0.982-1
- Upgrade package to version 0.982
* Fri May 06 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 0.901-1 * Fri May 06 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 0.901-1
- Upgrade to 0.901 - Upgrade to 0.901
* Wed Jul 14 2021 huangtianhua <huangtianhua@huawei.com> -0.812-1 * Sat Aug 14 2021 huangtianhua <huangtianhua@huawei.com> -0.812-1
- Upgrade to 0.812 to support OpenStack-W - Upgrade to 0.812 to support OpenStack-W
* Wed Aug 04 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.800-2 * Wed Aug 04 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.800-2

Binary file not shown.