diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:55:19 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:55:19 +0000 |
| commit | 8d8aa65dc352a5d7c5221b55b1d40c1c7a370f5b (patch) | |
| tree | 43b9cb7159d7c1ff1ecb224847323c533da15498 | |
| parent | 68b200415d372e84b03272bc614619aaa6f781f1 (diff) | |
automatic import of python-pytest-monkeytype
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pytest-monkeytype.spec | 162 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 164 insertions, 0 deletions
@@ -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 + +[](https://travis-ci.org/mariusvniekerk/pytest-monkeytype) +[](https://opensource.org/licenses/Apache-2.0) +[](https://pypi.python.org/pypi/pytest-monkeytype) +[](https://pypi.python.org/pypi/pytest-monkeytype) +[](https://pypi.python.org/pypi/pytest-monkeytype) +[](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 + +[](https://travis-ci.org/mariusvniekerk/pytest-monkeytype) +[](https://opensource.org/licenses/Apache-2.0) +[](https://pypi.python.org/pypi/pytest-monkeytype) +[](https://pypi.python.org/pypi/pytest-monkeytype) +[](https://pypi.python.org/pypi/pytest-monkeytype) +[](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 + +[](https://travis-ci.org/mariusvniekerk/pytest-monkeytype) +[](https://opensource.org/licenses/Apache-2.0) +[](https://pypi.python.org/pypi/pytest-monkeytype) +[](https://pypi.python.org/pypi/pytest-monkeytype) +[](https://pypi.python.org/pypi/pytest-monkeytype) +[](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 @@ -0,0 +1 @@ +ce91ff782227ddc5ad92e6b1c5f050ab pytest-monkeytype-1.1.0.tar.gz |
