diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 14:09:34 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 14:09:34 +0000 |
commit | 7e86825f53b7f077d92ecf8f66dd7cd75c96e980 (patch) | |
tree | 88be451df68150150eefc0ee19baf86ed43bb9a6 | |
parent | 36e56fecbe0eece6bd25bea2fb7c12b3eb9439aa (diff) |
automatic import of python-mypy
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-mypy.spec | 97 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 99 insertions, 0 deletions
@@ -0,0 +1 @@ +/mypy-1.1.1.tar.gz diff --git a/python-mypy.spec b/python-mypy.spec new file mode 100644 index 0000000..f5610bb --- /dev/null +++ b/python-mypy.spec @@ -0,0 +1,97 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mypy +Version: 1.1.1 +Release: 1 +Summary: Optional static typing for Python +License: MIT License +URL: http://www.mypy-lang.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/62/54/be80f8d01f5cf72f774a77f9f750527a6fa733f09f78b1da30e8fa3914e6/mypy-1.1.1.tar.gz + +Requires: python3-typing-extensions +Requires: python3-mypy-extensions +Requires: python3-tomli +Requires: python3-typed-ast +Requires: python3-psutil +Requires: python3-pip +Requires: python3-typed-ast +Requires: python3-lxml + +%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-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%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-1.1.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-mypy -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.1-1 +- Package Spec generated @@ -0,0 +1 @@ +7c5bcf138bff4e54785a95de8d917397 mypy-1.1.1.tar.gz |