Skip to main content

Build a rust extension using PyO3 using tox.

Project description

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.

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

tox-pyo3-1.0.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

tox_pyo3-1.0.0-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tox-pyo3-1.0.0.tar.gz.

File metadata

  • Download URL: tox-pyo3-1.0.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for tox-pyo3-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4dff480f281944f45f765aebbfb7790ed0f0e677c3e1c022c026e352f7ceb9bd
MD5 a792c7eca37f7457338337951aa2adbb
BLAKE2b-256 d93bc7e556466a18d6edd91f870eea12a9ccafbcfb395c2bdec37cd952a4a22d

See more details on using hashes here.

File details

Details for the file tox_pyo3-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: tox_pyo3-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for tox_pyo3-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7e4d4f898aec940d797134ed2693234e5dc4691c862454a5505d6a87089c4de9
MD5 2583430504b7dc6c75f1d88b356ce9a9
BLAKE2b-256 4cbfab0ea752d13c575715ef94cf141e361e9927b8745b4bbba625fa075b0716

See more details on using hashes here.

Supported by

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