Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

tonybaloney/tox-nuitka

Repository files navigation

tox-nuitka

image

image

image

Updates

Python 3

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

About

A tox plugin for executing via nuitka

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published