diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 554f36e1e00185a8e46a7e6c321d6b8e6741ec0f..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -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/) diff --git a/README.md b/README.md deleted file mode 100644 index 64c17759a2ad577d162c6d479ee719d87d8ec5df..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -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/) diff --git a/mypy-0.800.tar.gz b/mypy-0.800.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..668d3411217b369b03dbed86c561aa903f0626e3 Binary files /dev/null and b/mypy-0.800.tar.gz differ diff --git a/python-mypy.spec b/python-mypy.spec new file mode 100644 index 0000000000000000000000000000000000000000..78d94f56977b4598d9c9a370c7f950ffb06394d6 --- /dev/null +++ b/python-mypy.spec @@ -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 - 0.800-1 +- Package init diff --git a/python-mypy.yaml b/python-mypy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e13e61a69463ce271b81ad46d115749dfcc89fb9 --- /dev/null +++ b/python-mypy.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: python/mypy +tag_prefix: ^v +separator: "."