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
File details
Details for the file tox-nuitka-0.0.1.tar.gz
.
File metadata
- Download URL: tox-nuitka-0.0.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 247c7a21099d1472cd6473fccda7d0f435b02dd14926032214539b4076addfcd |
|
MD5 | 59562435a119414697bd60b29c1961df |
|
BLAKE2b-256 | 1b073c9a1099544dcd735d41754834a18adca890bd5b05df63a330f566a4cd0b |
File details
Details for the file tox_nuitka-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: tox_nuitka-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 340fc308667ab7c94363ad7c6c7e7fd2ca8590d1eaa58873f48cdca9e9aa5204 |
|
MD5 | 35c6348375bbeb8c2e3d8c58f0ef9fae |
|
BLAKE2b-256 | 91705a61311c5ce9145cbb041deb3f61e7efdec8cc14aa8105367d990aed849c |