Ai
1 Star 0 Fork 3

zhangxianting/python-pytype

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-pytype.spec 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
%global pypi_name pytype
Name: python-%{pypi_name}
Version: 2023.9.19
Release: 2
Summary: Python type inferencer
License: Apache 2.0
URL: https://github.com/google/pytype
Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
Patch1: 0001-fix-parse-error-py.patch
Patch2: 0001-Increase-the-upper-limit-version-of-networkx-to-fix-install.patch
%description
Pytype checks and infers types for your Python code - without requiring type annotations.
%package -n python3-%{pypi_name}
Summary: Python type inferencer
Provides: python-%{pypi_name}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-pybind11
BuildRequires: gcc-c++
%description -n python3-%{pypi_name}
Pytype checks and infers types for your Python code - without requiring type annotations.
%prep
%autosetup -p1 -n %{pypi_name}-%{version}
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitearch}/pytype*.dist-info/
%{python3_sitearch}/pytype/
%{python3_sitearch}/pytype_extensions/
%{python3_sitearch}/third_party/
%{_bindir}/*
%changelog
* Tue Apr 02 2024 zhangxianting <zhangxianting@uniontech.com> - 2023.9.19-2
- Increase the upper limit version of networkx to fix install, networkx<3.2 to networkx<=3.2
* Wed Sep 20 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 2023.9.19-1
- Init package.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangxianting/python-pytype.git
git@gitee.com:zhangxianting/python-pytype.git
zhangxianting
python-pytype
python-pytype
master

搜索帮助