From 7e86825f53b7f077d92ecf8f66dd7cd75c96e980 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 9 Mar 2023 14:09:34 +0000 Subject: automatic import of python-mypy --- .gitignore | 1 + python-mypy.spec | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 99 insertions(+) create mode 100644 python-mypy.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..861f0db 100644 --- a/.gitignore +++ b/.gitignore @@ -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 - 1.1.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..8d24d92 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +7c5bcf138bff4e54785a95de8d917397 mypy-1.1.1.tar.gz -- cgit v1.2.3