Debian Codegraph @

PKG-INFO

raw
1 Metadata-Version: 2.4
2 Name: pytest-cython
3 Version: 0.4.0
4 Summary: A plugin for testing Cython extension modules.
5 Author-email: Logan Page <[email protected]>, Richard Shadrach <[email protected]>
6 Project-URL: Documentation, https://github.com/lgpage/pytest-cython/tree/main#readme
7 Project-URL: Source, https://github.com/lgpage/pytest-cython
8 Project-URL: Tracker, https://github.com/lgpage/pytest-cython/issues
9 Keywords: pytest,py.test,cython,doctest
10 Classifier: Development Status :: 5 - Production/Stable
11 Classifier: Intended Audience :: Developers
12 Classifier: Programming Language :: Python
13 Classifier: Programming Language :: Python :: 3
14 Classifier: Programming Language :: Python :: Implementation :: CPython
15 Classifier: Topic :: Software Development :: Testing
16 Classifier: Topic :: Utilities
17 Requires-Python: >=3.8
18 Description-Content-Type: text/markdown
19 License-File: LICENSE.md
20 Requires-Dist: pytest>=8
21 Provides-Extra: lint
22 Requires-Dist: pre-commit; extra == "lint"
23 Requires-Dist: mypy; extra == "lint"
24 Requires-Dist: codespell; extra == "lint"
25 Provides-Extra: test
26 Requires-Dist: pytest; extra == "test"
27 Provides-Extra: dev
28 Requires-Dist: pytest-cython[lint,test]; extra == "dev"
29 Dynamic: license-file
30
31 # Overview
32
33 [![PyPI Package latest release](https://img.shields.io/pypi/v/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
34 [![PyPI Package monthly downloads](https://img.shields.io/pypi/dm/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
35 [![PyPI Wheel](https://img.shields.io/pypi/wheel/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
36 [![Supported versions](https://img.shields.io/pypi/pyversions/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
37 [![Supported implementations](https://img.shields.io/pypi/implementation/pytest-cython.svg?style=flat)](https://pypi.org/project/pytest-cython)
38 [![Conda Version](https://img.shields.io/conda/vn/conda-forge/pytest-cython.svg)](https://anaconda.org/conda-forge/pytest-cython)
39 [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/pytest-cython.svg)](https://anaconda.org/conda-forge/pytest-cython)
40
41 [![CI Lint Status](https://github.com/lgpage/pytest-cython/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/lgpage/pytest-cython/actions/workflows/lint.yml?query=branch%3Amain)
42 [![CI Test Status](https://github.com/lgpage/pytest-cython/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/lgpage/pytest-cython/actions/workflows/test.yml?query=branch%3Amain)
43
44 This [pytest](https://github.com/pytest-dev/pytest) plugin allows for the doctesting of C/C++ extension modules for
45 Python created through [cython](https://cython.org/).
46
47 ## Installation
48
49 You can install `pytest-cython` via [pip](https://pypi.org/project/pip/) from [PyPI](https://pypi.org):
50
51 ``` shell
52 pip install pytest-cython
53 ```
54
55 ## Usage
56
57 Basic usage:
58
59 ``` shell
60 pytest --doctest-cython
61 ```
62
63 You can also run the doctests for a single `.pyx` file as such:
64
65 ``` shell
66 pytest --doctest-cython path/to/module.pyx
67 ```
68
69 ### Notes
70
71 - The pytest option `--import-mode=importlib` is not supported, though we would like it to be.
72 - When using the pytest option `--import-mode=prepend` with packages that are installed in a
73 non-editable fashion, you must set the environment variable `PY_IGNORE_IMPORTMISMATCH=1`.
74
75 ## Compatibility
76
77 The following table describes the versions of Pytest and Cython the each version of the pytest-cython plugin is
78 compatible with.
79
80 | Version | Pytest | Cython |
81 | ------- | ------ | ------- |
82 | 0.4.x | 9 | 3 |
83 | 0.3.x | 8 | 0.29, 3 |
84 | 0.2.x | 6, 7 | 0.29, 3 |
85
86 ## Issues
87
88 If you encounter any problems, please [file an issue](https://github.com/lgpage/pytest-cython/issues) along with a
89 detailed description.
90
91 ## Acknowledgements
92
93 This [pytest](https://github.com/pytest-dev/pytest) plugin was generated with
94 [cookiecutter](https://github.com/cookiecutter/cookiecutter) along with [\@hackebrot](https://github.com/hackebrot)'s
95 [cookiecutter-pytest-plugin](https://github.com/pytest-dev/cookiecutter-pytest-plugin) and
96 [\@ionelmc](https://github.com/ionelmc)'s [cookiecutter-pylibrary](https://github.com/ionelmc/cookiecutter-pylibrary)
97 templates.