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


Release history Release notifications

This version

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tox-nuitka, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size tox_nuitka-0.0.1-py2.py3-none-any.whl (3.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size tox-nuitka-0.0.1.tar.gz (5.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page