Skip to content

Commit

Permalink
Merge pull request #302 from scbedd/feature/tox-monorepo-parallel-bug…
Browse files Browse the repository at this point in the history
…fixes

Updating Env Log Outputs
  • Loading branch information
weshaggard authored Dec 3, 2019
2 parents 2f9e6e9 + 7434583 commit 1cf2bea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion packages/python-packages/tox-monorepo/tox_monorepo/monorepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ def update_env(old_path, new_path, environment_config):
environment_config.envtmpdir = py.path.local(
environment_config.envtmpdir.strpath.replace(old_path, new_path)
)
environment_config.envlogdir = py.path.local(
environment_config.envlogdir.strpath.replace(old_path, new_path)
)


# update the cachedir
environment_config.setenv["TOX_ENV_DIR"] = environment_config.setenv[
"TOX_ENV_DIR"
].replace(old_path, new_path)


@hookimpl
def tox_configure(config):
invocationcwd = config.invocationcwd.strpath
Expand Down Expand Up @@ -79,5 +82,10 @@ def tox_configure(config):
config.sdistsrc.strpath.replace(original_toxinipath, invocationcwd)
)

if config.logdir:
config.logdir = py.path.local(
config.logdir.strpath.replace(original_toxinipath, invocationcwd)
)

for environment_name, environment_config in config.envconfigs.items():
update_env(original_toxinipath, invocationcwd, environment_config)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

VERSION = "0.1.1"
VERSION = "0.1.2"

0 comments on commit 1cf2bea

Please sign in to comment.