Skip to main content

A nuitka plugin for tox

Project description

tox-nuitka

https://img.shields.io/pypi/v/tox-nuitka.svg https://img.shields.io/travis/tonybaloney/tox-nuitka.svg https://codecov.io/gh/tonybaloney/tox-nuitka/branch/master/graph/badge.svg 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

Release notes

1.0.0 (date)

  • Feature

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-nuitka-0.0.1.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

tox_nuitka-0.0.1-py2.py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 2 Python 3

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