Skip to main content

A plugin for testing Cython extension modules

Project description

Overview

docs

Documentation Status

tests

Travis-CI Build Status AppVeyor Build Status Requirements Status

package

PyPI Package latest release PyPI Package monthly downloads PyPI Wheel Supported versions Supported implementations

This Pytest plugin allows for the doctesting of C extension modules for Python, specifically created through Cython.

Installation

You can install “pytest-cython” via pip from PyPI:

pip install pytest-cython

Usage

Basic usage:

py.test --doctest-cython

Note

  • It is assumed that the C extension modules have been build inplace before running py.test and there is a matching Cython .pyx file

  • The embedsignature Cython compiler directive must be set to True

Contributing

Contributions are very welcome. Tests can be run with tox:

tox

License

  • Free software: MIT license

Distributed under the terms of the MIT license, “pytest-cython” is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Acknowledgements

This Pytest plugin was generated with Cookiecutter along with @hackebrot’s Cookiecutter-pytest-plugin and @ionelmc’s cookiecutter-pylibrary templates.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-cython-0.1.1.tar.gz (817.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_cython-0.1.1-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-cython-0.1.1.tar.gz.

File metadata

  • Download URL: pytest-cython-0.1.1.tar.gz
  • Upload date:
  • Size: 817.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.0

File hashes

Hashes for pytest-cython-0.1.1.tar.gz
Algorithm Hash digest
SHA256 93d80c38c38029b8cd97a6eff3972225cb69c489ee5cac54e668ff76f6200a90
MD5 be564123a709fca21df182ea6e9b7df6
BLAKE2b-256 334258396d62f615a15d2db6d5d763653582cf5056633945e0b141920234463e

See more details on using hashes here.

File details

Details for the file pytest_cython-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_cython-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.0

File hashes

Hashes for pytest_cython-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 192cc9ef078b068e007a9efa1b85c9dc8806ce5d9fa4db026a7ef317e8f27955
MD5 9aa8ec7cc6397c82783d0bce6dc7db59
BLAKE2b-256 9f57e5ac68d4e71204099f67ff52df7f4627cc3ffbc96c4344d14ab4e7a2c9fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page