summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 04:41:30 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 04:41:30 +0000
commit61401e1ea73b3ca76c5174ba9c24baca4d0809bb (patch)
treecb5bc40b782d12c143cce2298c4faca4529b4473
parent9fdae0743737cb43e8d165e972c5e4169b5cf4f5 (diff)
automatic import of python-monkeytype
-rw-r--r--.gitignore1
-rw-r--r--python-monkeytype.spec90
-rw-r--r--sources1
3 files changed, 92 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3566b18 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/MonkeyType-23.3.0.tar.gz
diff --git a/python-monkeytype.spec b/python-monkeytype.spec
new file mode 100644
index 0000000..9e978fb
--- /dev/null
+++ b/python-monkeytype.spec
@@ -0,0 +1,90 @@
+%global _empty_manifest_terminate_build 0
+Name: python-MonkeyType
+Version: 23.3.0
+Release: 1
+Summary: Generating type annotations from sampled production types
+License: BSD
+URL: https://github.com/Instagram/MonkeyType
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/de/66/7006d51ed537648107c28086f8c390030b4b4c5524b77598a3bbb657d3ec/MonkeyType-23.3.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-mypy-extensions
+Requires: python3-libcst
+Requires: python3-black
+Requires: python3-isort
+Requires: python3-flake8
+Requires: python3-pytest
+Requires: python3-mypy
+Requires: python3-sphinx
+Requires: python3-twine
+Requires: python3-tox
+Requires: python3-libcst
+Requires: python3-importlib-metadata
+
+%description
+MonkeyType collects runtime types of function arguments and return values, and
+can automatically generate stub files or even add draft type annotations
+directly to your Python code based on the types collected at runtime.
+
+%package -n python3-MonkeyType
+Summary: Generating type annotations from sampled production types
+Provides: python-MonkeyType
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-MonkeyType
+MonkeyType collects runtime types of function arguments and return values, and
+can automatically generate stub files or even add draft type annotations
+directly to your Python code based on the types collected at runtime.
+
+%package help
+Summary: Development documents and examples for MonkeyType
+Provides: python3-MonkeyType-doc
+%description help
+MonkeyType collects runtime types of function arguments and return values, and
+can automatically generate stub files or even add draft type annotations
+directly to your Python code based on the types collected at runtime.
+
+%prep
+%autosetup -n MonkeyType-23.3.0
+
+%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-MonkeyType -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 23.3.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..b82c39a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+50b9870663017326ab91a5a7fb56a397 MonkeyType-23.3.0.tar.gz