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.post0.tar.gz (817.9 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.post0-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pytest-cython-0.1.1.post0.tar.gz
  • Upload date:
  • Size: 817.9 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.post0.tar.gz
Algorithm Hash digest
SHA256 8f7c079323ccdbe214e7fff82b24c97a4bf13175edf8670259447ea2319ee15d
MD5 f24330785e961eed5f9a40716a977bae
BLAKE2b-256 451239dba6aae3257d762ef56b0667971e71544ab1932825839666152c744c1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_cython-0.1.1.post0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.3 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.post0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eebc42992079584fd5c9c291b8429536a2f9829bf38fa56b53c0fffbe1f63ebc
MD5 a5eb415a1a5860544cc7cc1e7d824c79
BLAKE2b-256 44fe87a2a63bae93024b96e15ffab0d5b272bd7f93a1a39fabef501c75eaf921

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