2 Star 0 Fork 2

OpenCloudOS Stream/python3-mypy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python3-mypy.spec 2.63 KB
一键复制 编辑 原始数据 按行查看 历史
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.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/python3-mypy.git
git@gitee.com:opencloudos-stream/python3-mypy.git
opencloudos-stream
python3-mypy
python3-mypy
master

搜索帮助