Skip to main content
https://img.shields.io/pypi/v/retox.svg https://img.shields.io/travis/tonybaloney/retox.svg https://codecov.io/gh/tonybaloney/retox/branch/master/graph/badge.svg Updates Python 3

A command line service that runs your tox tests in parallel, using threading and multicore CPUs.

See your tox environments in a dashboard and automatically watch source folders for file changes and re-run tests.

See : https://github.com/tonybaloney/retox/raw/master/docs/_static/screenshot.jpeg for an example screenshot

https://github.com/tonybaloney/retox/raw/master/docs/_static/retox_demo.gif

Requirements

Linux users may need to install libncurses5-dev before using Tox. If you see an error “ImportError: No module named ‘_curses’” this is because of the Requirement.

Usage

To install, run

pip install retox

Then from any project that has a tox.ini file setup and using tox, you can simply run

retox

This will start the service, from where you can press (b) to rebuild on demand.

Watching folders

Retox can watch one or many directories for file changes and re-run the tox environments when changes are detected

retox -w my_project_folder -w my_test_folder

Excluding paths

Retox will ignore files matching a given regex:

retox -w my_project_folder --exclude='.*\.(swp|pyc)$'

Tox support

Any tox arguments can be given to the command, and using –help to get a full list of commands. Tox arguments will be passed to all virtualenvs

retox -e py27,py36

multicore configuration

The number of concurrent processes in the threadpool can be set using the -n parameter. By default this will be equal to the number of CPU’s on the OS. If you want to expand or throttle this, use the flag to change the size of the threadpool.

retox -n 4

Logging

2 files will be created - .retox.log, which is a file for all runs of the logs for the virtual environments. This can be handy to tail to see live output .retox.json - a JSON file with the virtualenv tasks and specific command output.

Credits

This was inspired by the detox project, which was created by the tox development team. I worked and then significantly changed the way it works to support re-running environments with ease.

Release files for retox 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for retox 1.5.0
File Size Uploaded
retox-1.5.0.tar.gz 525.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for retox 1.5.0
File Interpreter ABI Platform
retox-1.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 538.9 kB

Release files / retox-1.5.0.tar.gz

Download URL retox-1.5.0.tar.gz
Size 525.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f5efe91399d31ea91d6e251ed6da21702d38ea35d75576691993975b14acbcb5
BLAKE2b-256 checksum
How to use checksums
bfc520e8acd7fc527b98c409278cb8c72c966119f3870769f225a4fd105d73d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / retox-1.5.0-py3-none-any.whl

Download URL retox-1.5.0-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75be7719f3753d635391c803fea808a8a42149dd457c0d480fccd8d15c7d28da
BLAKE2b-256 checksum
How to use checksums
0bbdfc0ab02848a0b3c00ac871e0be5f4ba1645b6748989be945b483b0fabd11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page