summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 08:12:28 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 08:12:28 +0000
commit1ea38741228f66452475acacef7ba679475ed534 (patch)
treebaea2fe843f72b362f485a5938bdfe9bdc76f798
parent3ec522ad1437461b4ead3f9e8d9e5e2d9451ac20 (diff)
automatic import of python-pytest-cythonopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-pytest-cython.spec235
-rw-r--r--sources1
3 files changed, 237 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d95d4f4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pytest-cython-0.2.1.tar.gz
diff --git a/python-pytest-cython.spec b/python-pytest-cython.spec
new file mode 100644
index 0000000..f9cfa9f
--- /dev/null
+++ b/python-pytest-cython.spec
@@ -0,0 +1,235 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pytest-cython
+Version: 0.2.1
+Release: 1
+Summary: A plugin for testing Cython extension modules
+License: MIT
+URL: https://github.com/lgpage/pytest-cython
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d8/c3/3d36b558b624d3a2846d215667672dd4e468ee91066fc71074d16062171d/pytest-cython-0.2.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-pytest
+
+%description
+# Overview
+
+[![PyPI Package latest release](https://img.shields.io/pypi/v/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+[![PyPI Package monthly downloads](https://img.shields.io/pypi/dm/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+[![PyPI Wheel](https://img.shields.io/pypi/wheel/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+[![Supported versions](https://img.shields.io/pypi/pyversions/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+[![Supported implementations](https://img.shields.io/pypi/implementation/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+
+[![CI Check Status](https://github.com/lgpage/pytest-cython/actions/workflows/python-check.yml/badge.svg?branch=main)](https://github.com/lgpage/pytest-cython/actions/workflows/python-check.yml?query=branch%3Amain)
+[![CI Tests Status](https://github.com/lgpage/pytest-cython/actions/workflows/python-test.yml/badge.svg?branch=main)](https://github.com/lgpage/pytest-cython/actions/workflows/python-test.yml?query=branch%3Amain)
+[![Documentation Status](https://readthedocs.org/projects/pytest-cython/badge/?style=flat)](https://readthedocs.org/projects/pytest-cython)
+
+This [pytest](https://github.com/pytest-dev/pytest) plugin allows for the doctesting of C extension modules for
+Python, specifically created through [cython](https://cython.org/).
+
+## Installation
+
+You can install "pytest-cython" via [pip](https://pypi.org/project/pip/) from [PyPI](https://pypi.org):
+
+``` shell
+pip install pytest-cython
+```
+
+## Usage
+
+Basic usage:
+
+``` shell
+pytest --doctest-cython
+```
+
+You can also run the doctests for a single `.pyx` file as such:
+
+``` shell
+pytest --doctest-cython path/to/module.pyx
+```
+
+### Note
+
+It is assumed that the C extension modules have been build in place before running `py.test` and there is a
+matching Cython `.pyx` file
+
+## Issues
+
+If you encounter any problems, please [file an issue](https://github.com/lgpage/pytest-cython/issues) along with a
+detailed description.
+
+## Acknowledgements
+
+This [pytest](https://github.com/pytest-dev/pytest) plugin was generated with
+[cookiecutter](https://github.com/cookiecutter/cookiecutter) along with [\@hackebrot](https://github.com/hackebrot)'s
+[cookiecutter-pytest-plugin](https://github.com/pytest-dev/cookiecutter-pytest-plugin) and
+[\@ionelmc](https://github.com/ionelmc)'s [cookiecutter-pylibrary](https://github.com/ionelmc/cookiecutter-pylibrary)
+templates.
+
+
+%package -n python3-pytest-cython
+Summary: A plugin for testing Cython extension modules
+Provides: python-pytest-cython
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pytest-cython
+# Overview
+
+[![PyPI Package latest release](https://img.shields.io/pypi/v/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+[![PyPI Package monthly downloads](https://img.shields.io/pypi/dm/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+[![PyPI Wheel](https://img.shields.io/pypi/wheel/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+[![Supported versions](https://img.shields.io/pypi/pyversions/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+[![Supported implementations](https://img.shields.io/pypi/implementation/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+
+[![CI Check Status](https://github.com/lgpage/pytest-cython/actions/workflows/python-check.yml/badge.svg?branch=main)](https://github.com/lgpage/pytest-cython/actions/workflows/python-check.yml?query=branch%3Amain)
+[![CI Tests Status](https://github.com/lgpage/pytest-cython/actions/workflows/python-test.yml/badge.svg?branch=main)](https://github.com/lgpage/pytest-cython/actions/workflows/python-test.yml?query=branch%3Amain)
+[![Documentation Status](https://readthedocs.org/projects/pytest-cython/badge/?style=flat)](https://readthedocs.org/projects/pytest-cython)
+
+This [pytest](https://github.com/pytest-dev/pytest) plugin allows for the doctesting of C extension modules for
+Python, specifically created through [cython](https://cython.org/).
+
+## Installation
+
+You can install "pytest-cython" via [pip](https://pypi.org/project/pip/) from [PyPI](https://pypi.org):
+
+``` shell
+pip install pytest-cython
+```
+
+## Usage
+
+Basic usage:
+
+``` shell
+pytest --doctest-cython
+```
+
+You can also run the doctests for a single `.pyx` file as such:
+
+``` shell
+pytest --doctest-cython path/to/module.pyx
+```
+
+### Note
+
+It is assumed that the C extension modules have been build in place before running `py.test` and there is a
+matching Cython `.pyx` file
+
+## Issues
+
+If you encounter any problems, please [file an issue](https://github.com/lgpage/pytest-cython/issues) along with a
+detailed description.
+
+## Acknowledgements
+
+This [pytest](https://github.com/pytest-dev/pytest) plugin was generated with
+[cookiecutter](https://github.com/cookiecutter/cookiecutter) along with [\@hackebrot](https://github.com/hackebrot)'s
+[cookiecutter-pytest-plugin](https://github.com/pytest-dev/cookiecutter-pytest-plugin) and
+[\@ionelmc](https://github.com/ionelmc)'s [cookiecutter-pylibrary](https://github.com/ionelmc/cookiecutter-pylibrary)
+templates.
+
+
+%package help
+Summary: Development documents and examples for pytest-cython
+Provides: python3-pytest-cython-doc
+%description help
+# Overview
+
+[![PyPI Package latest release](https://img.shields.io/pypi/v/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+[![PyPI Package monthly downloads](https://img.shields.io/pypi/dm/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+[![PyPI Wheel](https://img.shields.io/pypi/wheel/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+[![Supported versions](https://img.shields.io/pypi/pyversions/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+[![Supported implementations](https://img.shields.io/pypi/implementation/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
+
+[![CI Check Status](https://github.com/lgpage/pytest-cython/actions/workflows/python-check.yml/badge.svg?branch=main)](https://github.com/lgpage/pytest-cython/actions/workflows/python-check.yml?query=branch%3Amain)
+[![CI Tests Status](https://github.com/lgpage/pytest-cython/actions/workflows/python-test.yml/badge.svg?branch=main)](https://github.com/lgpage/pytest-cython/actions/workflows/python-test.yml?query=branch%3Amain)
+[![Documentation Status](https://readthedocs.org/projects/pytest-cython/badge/?style=flat)](https://readthedocs.org/projects/pytest-cython)
+
+This [pytest](https://github.com/pytest-dev/pytest) plugin allows for the doctesting of C extension modules for
+Python, specifically created through [cython](https://cython.org/).
+
+## Installation
+
+You can install "pytest-cython" via [pip](https://pypi.org/project/pip/) from [PyPI](https://pypi.org):
+
+``` shell
+pip install pytest-cython
+```
+
+## Usage
+
+Basic usage:
+
+``` shell
+pytest --doctest-cython
+```
+
+You can also run the doctests for a single `.pyx` file as such:
+
+``` shell
+pytest --doctest-cython path/to/module.pyx
+```
+
+### Note
+
+It is assumed that the C extension modules have been build in place before running `py.test` and there is a
+matching Cython `.pyx` file
+
+## Issues
+
+If you encounter any problems, please [file an issue](https://github.com/lgpage/pytest-cython/issues) along with a
+detailed description.
+
+## Acknowledgements
+
+This [pytest](https://github.com/pytest-dev/pytest) plugin was generated with
+[cookiecutter](https://github.com/cookiecutter/cookiecutter) along with [\@hackebrot](https://github.com/hackebrot)'s
+[cookiecutter-pytest-plugin](https://github.com/pytest-dev/cookiecutter-pytest-plugin) and
+[\@ionelmc](https://github.com/ionelmc)'s [cookiecutter-pylibrary](https://github.com/ionelmc/cookiecutter-pylibrary)
+templates.
+
+
+%prep
+%autosetup -n pytest-cython-0.2.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-pytest-cython -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..3d532bb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+104dfb0dfff506835cdc66f897efd6e9 pytest-cython-0.2.1.tar.gz