Skip to main content

tox-monorepo

This plugin changes {toxinidir} to be the directory that executes the tox command, rather than where the tox.ini actually lives on disk. This allows a monorepo to easily share a single tox.ini file rather than have to keep copies up to date.

Features

Once installed, tox-monorepo will actively post-process the loaded tox config and replace all instances of {toxinidir} with a reference to the current working directory.

Note that if there are any out-of-ordinary changes present within your tox config, it is highly likely that this plugin has not been tested with them. Reference Contributing section for how to reach out if issues crop up.

Requirements

Tested on tox 3.1+, Python 2.7+

Installation

You can install "tox-monorepo" via pip from PyPI:

pip install tox-monorepo

Usage

Install the plugin, then try to reference a tox config from within a package directory.

tox -c <otherpath>/to/tox.ini

Note that all the .tox folder + any environments are now created relative to the directory that executed tox.

Complete Set of Updated Config Values

Base Config Values:

{toxinidir}
{toxworkdir}
{temp_dir}
{setupdir}
{distdir}
{sdistsrc}
{logdir}

Env-Specific Config Values

{commands}
{commands_pre}
{commands_post}
{envdir}
{changedir}
{envtmpdir}
{envlogdir}

Contributing

Contributions are very welcome, though the plugin is extremely straightforward and shouldn't really require updates. Just submit a PR or an Issue on the the current repo!

License

Distributed under the terms of the MIT license, tox-monorepo is free and open source software.

Issues

If you encounter any problems, please file an issue along with tox-monorepo in the title.

Release files for tox-monorepo 0.1.2

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

Built distribution (wheel)

Table of built distributions (wheels) for tox-monorepo 0.1.2
File Interpreter ABI Platform
tox_monorepo-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / tox_monorepo-0.1.2-py2.py3-none-any.whl

Download URL tox_monorepo-0.1.2-py2.py3-none-any.whl
Size 3.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
01f771bbe8acd1741f73cb2e6a974fc158a0ffa7c58c3568e19914540e3dd998
BLAKE2b-256 checksum
How to use checksums
227586af01dbc72b7224c8c2e71d706c608b0d69b622062bb26c932eb0a9420c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

2 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