thedrow / tox-pyo3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tox-pyo3

PyPI version

Python versions

See Build Status on Travis CI

See Build Status on AppVeyor

Build a rust extension using PyO3 using tox


An extremely basic plugin that builds Rust extensions within tox virtualenvs.

Features

  • Runs maturin develop

Requirements

  • maturin must be installed somewhere in your system
  • A rust compiler

Installation

You can install "tox-pyo3" via pip from PyPI:

$ pip install tox-pyo3

Usage

  • When you set pyo3=true in your testenv this plugin automatically detects if Cargo.toml is present and if so, it will compile the extension

Example:

`ini [testenv] pyo3 = True`

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "tox-pyo3" is free and open source software

Issues

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

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%