A nuitka plugin for tox
Project description
tox-nuitka
A tox plugin to replace the default use of the CPython compiler with nuitka.
This plugin works by injecting Nuitka as a pip requirement to all test environments and then adding the Nuitka compile as a pre-test stage.
Installation
pip install tox-nuitka
Or,
pipenv install tox-nuitka
Executing tests
Each of the commands in your testenv configuration will be compiled by nuitka to execute within the pipenv virtual environment
Example tox.ini
This simple example will run pytest against your package but compile myapp/main.py using Nuitka.
[tox]
envlist = py27, py36, py37
[testenv]
nuitka = myapp/main.py
deps = pytest
commands = python -m pytest test/
Additional Nuitka configuration is available within the test environment settings.
Currently, the –module and –recurse-all flags are available like this:
nuitka_module = true
nuitka_recurse_all = true
Multiple compile targets can be provided
nuitka =
myapp/target1.py
myapp/target2.py
Release notes
1.0.0 (date)
Feature
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tox_nuitka-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 340fc308667ab7c94363ad7c6c7e7fd2ca8590d1eaa58873f48cdca9e9aa5204 |
|
MD5 | 35c6348375bbeb8c2e3d8c58f0ef9fae |
|
BLAKE2b-256 | 91705a61311c5ce9145cbb041deb3f61e7efdec8cc14aa8105367d990aed849c |