summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-pytest-monkeytype.spec162
-rw-r--r--sources1
3 files changed, 164 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..82e3187 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pytest-monkeytype-1.1.0.tar.gz
diff --git a/python-pytest-monkeytype.spec b/python-pytest-monkeytype.spec
new file mode 100644
index 0000000..7c88bba
--- /dev/null
+++ b/python-pytest-monkeytype.spec
@@ -0,0 +1,162 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pytest-monkeytype
+Version: 1.1.0
+Release: 1
+Summary: pytest-monkeytype: Generate Monkeytype annotations from your pytest tests.
+License: MIT
+URL: https://github.com/mariusvniekerk/pytest-monkeytype
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0d/e3/a26e5fdbccb596d2ef918fae72ce85b85503d52fa7c8bc4857a1bec8c9d0/pytest-monkeytype-1.1.0.tar.gz
+BuildArch: noarch
+
+
+%description
+# pytest-monkeytype
+
+[![Build Status](https://travis-ci.org/mariusvniekerk/pytest-monkeytype.svg?branch=master)](https://travis-ci.org/mariusvniekerk/pytest-monkeytype)
+[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/Apache-2.0)
+[![PyPI Python](https://img.shields.io/pypi/pyversions/pytest-monkeytype.svg)](https://pypi.python.org/pypi/pytest-monkeytype)
+[![PyPI Version](https://img.shields.io/pypi/v/pytest-monkeytype.svg)](https://pypi.python.org/pypi/pytest-monkeytype)
+[![PyPI Status](https://img.shields.io/pypi/status/pytest-monkeytype.svg)](https://pypi.python.org/pypi/pytest-monkeytype)
+[![PyPI Wheel](https://img.shields.io/pypi/wheel/pytest-monkeytype.svg)](https://pypi.python.org/pypi/pytest-monkeytype)
+
+
+[MonkeyType](https://github.com/Instagram/MonkeyType) as a
+[pytest](https://docs.pytest.org/en/latest/) plugin.
+
+```
+pip install pytest-monkeytype
+
+# Generate annotations by running your pytest tests as usual:
+py.test --monkeytype-output=./monkeytype.sqlite3
+
+# Get a listing of modules annotated by monkeytype
+monkeytype list-modules
+
+# Generate a stub file for those annotations using monkeytype:
+monkeytype stub some.module
+
+# Apply these annotations directly
+monkeytype apply some.module
+```
+
+
+This project is inspired by [pytest-annotate](https://github.com/kensho-technologies/pytest-annotate)
+
+%package -n python3-pytest-monkeytype
+Summary: pytest-monkeytype: Generate Monkeytype annotations from your pytest tests.
+Provides: python-pytest-monkeytype
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pytest-monkeytype
+# pytest-monkeytype
+
+[![Build Status](https://travis-ci.org/mariusvniekerk/pytest-monkeytype.svg?branch=master)](https://travis-ci.org/mariusvniekerk/pytest-monkeytype)
+[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/Apache-2.0)
+[![PyPI Python](https://img.shields.io/pypi/pyversions/pytest-monkeytype.svg)](https://pypi.python.org/pypi/pytest-monkeytype)
+[![PyPI Version](https://img.shields.io/pypi/v/pytest-monkeytype.svg)](https://pypi.python.org/pypi/pytest-monkeytype)
+[![PyPI Status](https://img.shields.io/pypi/status/pytest-monkeytype.svg)](https://pypi.python.org/pypi/pytest-monkeytype)
+[![PyPI Wheel](https://img.shields.io/pypi/wheel/pytest-monkeytype.svg)](https://pypi.python.org/pypi/pytest-monkeytype)
+
+
+[MonkeyType](https://github.com/Instagram/MonkeyType) as a
+[pytest](https://docs.pytest.org/en/latest/) plugin.
+
+```
+pip install pytest-monkeytype
+
+# Generate annotations by running your pytest tests as usual:
+py.test --monkeytype-output=./monkeytype.sqlite3
+
+# Get a listing of modules annotated by monkeytype
+monkeytype list-modules
+
+# Generate a stub file for those annotations using monkeytype:
+monkeytype stub some.module
+
+# Apply these annotations directly
+monkeytype apply some.module
+```
+
+
+This project is inspired by [pytest-annotate](https://github.com/kensho-technologies/pytest-annotate)
+
+%package help
+Summary: Development documents and examples for pytest-monkeytype
+Provides: python3-pytest-monkeytype-doc
+%description help
+# pytest-monkeytype
+
+[![Build Status](https://travis-ci.org/mariusvniekerk/pytest-monkeytype.svg?branch=master)](https://travis-ci.org/mariusvniekerk/pytest-monkeytype)
+[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/Apache-2.0)
+[![PyPI Python](https://img.shields.io/pypi/pyversions/pytest-monkeytype.svg)](https://pypi.python.org/pypi/pytest-monkeytype)
+[![PyPI Version](https://img.shields.io/pypi/v/pytest-monkeytype.svg)](https://pypi.python.org/pypi/pytest-monkeytype)
+[![PyPI Status](https://img.shields.io/pypi/status/pytest-monkeytype.svg)](https://pypi.python.org/pypi/pytest-monkeytype)
+[![PyPI Wheel](https://img.shields.io/pypi/wheel/pytest-monkeytype.svg)](https://pypi.python.org/pypi/pytest-monkeytype)
+
+
+[MonkeyType](https://github.com/Instagram/MonkeyType) as a
+[pytest](https://docs.pytest.org/en/latest/) plugin.
+
+```
+pip install pytest-monkeytype
+
+# Generate annotations by running your pytest tests as usual:
+py.test --monkeytype-output=./monkeytype.sqlite3
+
+# Get a listing of modules annotated by monkeytype
+monkeytype list-modules
+
+# Generate a stub file for those annotations using monkeytype:
+monkeytype stub some.module
+
+# Apply these annotations directly
+monkeytype apply some.module
+```
+
+
+This project is inspired by [pytest-annotate](https://github.com/kensho-technologies/pytest-annotate)
+
+%prep
+%autosetup -n pytest-monkeytype-1.1.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-pytest-monkeytype -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..72177b4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ce91ff782227ddc5ad92e6b1c5f050ab pytest-monkeytype-1.1.0.tar.gz