代码拉取完成,页面将自动刷新
Summary: A static type checker for Python
Name: python3-mypy
Version: 1.5.1
Release: 3%{?dist}
License: MIT and ASL 2.0
URL: https://github.com/python/mypy
Source0: %{url}/archive/v%{version}/mypy-%{version}.tar.gz
BuildRequires: python3-devel python3-setuptools
BuildRequires: python3-typing-extensions python3-tomli
BuildRequires: help2man (python3dist(typed-ast) >= 1.4 with python3dist(typed-ast) < 2)
BuildRequires: python3dist(mypy-extensions)
Requires: python3-typing-extensions
Provides: python3-mypy = %{version}-%{release}
Provides: python-typeshed = 1:0.1-0.20191011git2
BuildArch: noarch
%description
This package provides an optional static type checker for Python.
%prep
%autosetup -n mypy-%{version} -p1
rm -vrf *.egg-info/
%build
%py3_build
%install
%py3_install
mkdir -p %{buildroot}%{_mandir}/man1
PYTHONPATH=%{buildroot}%{python3_sitelib} \
help2man --no-info --version-string 'mypy %{version}-dev' \
--no-discard-stderr -o %{buildroot}%{_mandir}/man1/mypy.1 \
%{buildroot}%{_bindir}/mypy
PYTHONPATH=%{buildroot}%{python3_sitelib} \
help2man --no-info --version-string 'mypy stubgen %{version}-dev' \
--no-discard-stderr -o %{buildroot}%{_mandir}/man1/stubgen.1 \
%{buildroot}%{_bindir}/stubgen
%pre
%pretrans -p <lua>
path = "%{python3_sitelib}/mypy/typeshed"
st = posix.stat(path)
if st and st.type == "link" then
os.remove(path)
end
%files
%license LICENSE
%doc README.md
%{python3_sitelib}/mypy
%{python3_sitelib}/mypy-*.egg-info
%{python3_sitelib}/mypyc
%{_bindir}/mypy
%{_bindir}/mypyc
%{_bindir}/dmypy
%{_bindir}/stubgen
%{_bindir}/stubtest
%{_mandir}/man1/mypy.1*
%{_mandir}/man1/stubgen.1*
%changelog
* Thu Sep 26 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.5.1-3
- Rebuilt for clarifying the packages requirement in BaseOS and AppStream
* Fri Aug 16 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.5.1-2
- Rebuilt for loongarch release
* Tue Sep 26 2023 Shuo Wang <abushwang@tencent.com> - 1.5.1-1
- update to 1.5.1
* Tue Sep 19 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 0.991-5
- Rebuilt for python 3.11
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 0.991-4
- Rebuilt for OpenCloudOS Stream 23.09
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 0.991-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 0.991-2
- Rebuilt for OpenCloudOS Stream 23
* Tue Dec 20 2022 Wang Guodong <gordonwwang@tencent.com> - 0.991-1
- package init.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。