commit
5ac2287a9c
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# python-mypy
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
Optional static typing for Python
|
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
|||||||
# python-mypy
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
Optional static typing for Python
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
|
||||||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
BIN
mypy-0.800.tar.gz
Normal file
BIN
mypy-0.800.tar.gz
Normal file
Binary file not shown.
93
python-mypy.spec
Normal file
93
python-mypy.spec
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: python-mypy
|
||||||
|
Version: 0.800
|
||||||
|
Release: 1
|
||||||
|
Summary: Optional static typing for Python
|
||||||
|
License: MIT and Python-2.0
|
||||||
|
URL: https://github.com/python/mypy
|
||||||
|
Source0: https://github.com/python/mypy/archive/v%{version}/mypy-%{version}.tar.gz
|
||||||
|
|
||||||
|
Requires: python3-typed-ast
|
||||||
|
Requires: python3-typing-extensions
|
||||||
|
Requires: python3-mypy-extensions
|
||||||
|
Requires: python3-psutil
|
||||||
|
|
||||||
|
%description
|
||||||
|
Add type annotations to your Python programs, and use mypy to type
|
||||||
|
check them. Mypy is essentially a Python linter on steroids, and it
|
||||||
|
can catch many programming errors by analyzing your program, without
|
||||||
|
actually having to run it. Mypy has a powerful type system with
|
||||||
|
features such as type inference, gradual typing, generics and union
|
||||||
|
types.
|
||||||
|
|
||||||
|
%package -n python3-mypy
|
||||||
|
Summary: Optional static typing for Python
|
||||||
|
Provides: python-mypy
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-cffi
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: gdb
|
||||||
|
# Needed to generate the man pages
|
||||||
|
BuildRequires: help2man
|
||||||
|
%description -n python3-mypy
|
||||||
|
Add type annotations to your Python programs, and use mypy to type
|
||||||
|
check them. Mypy is essentially a Python linter on steroids, and it
|
||||||
|
can catch many programming errors by analyzing your program, without
|
||||||
|
actually having to run it. Mypy has a powerful type system with
|
||||||
|
features such as type inference, gradual typing, generics and union
|
||||||
|
types.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Development documents and examples for mypy
|
||||||
|
Provides: python3-mypy-doc
|
||||||
|
%description help
|
||||||
|
Add type annotations to your Python programs, and use mypy to type
|
||||||
|
check them. Mypy is essentially a Python linter on steroids, and it
|
||||||
|
can catch many programming errors by analyzing your program, without
|
||||||
|
actually having to run it. Mypy has a powerful type system with
|
||||||
|
features such as type inference, gradual typing, generics and union
|
||||||
|
types.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n mypy-0.800
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
rm -vrf %{buildroot}%{python3_sitelib}/mypy/{test,typeshed/tests}
|
||||||
|
ln -s /usr/share/typeshed %{buildroot}%{python3_sitelib}/mypy/typeshed
|
||||||
|
|
||||||
|
# Generate man pages
|
||||||
|
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
|
||||||
|
|
||||||
|
%files -n python3-mypy
|
||||||
|
%{python3_sitelib}/mypy
|
||||||
|
%{python3_sitelib}/mypy-*.egg-info
|
||||||
|
%{python3_sitelib}/mypyc
|
||||||
|
%{_bindir}/mypy
|
||||||
|
%{_bindir}/mypyc
|
||||||
|
%{_bindir}/dmypy
|
||||||
|
%{_bindir}/stubgen
|
||||||
|
%{_bindir}/stubtest
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{_mandir}/man1/mypy.1*
|
||||||
|
%{_mandir}/man1/stubgen.1*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Feb 01 2021 yanglongkang <yanglongkang@huawei.com> - 0.800-1
|
||||||
|
- Package init
|
||||||
4
python-mypy.yaml
Normal file
4
python-mypy.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: python/mypy
|
||||||
|
tag_prefix: ^v
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user