| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* test_sync_write_decode_surrogate: utf-8 decode
When SyncWrite decodes bytes as utf-8, it should replace unknown
sequences with the unicode surrogate codepoint instead of crashing the
program.
Test case for #2969
* SyncWrite: decode with errors='surrogateescape'
Avoid bubbling UnicodeDecodeError up from stream handling internals.
Tox has no way of knowing that the bytestream emitted by a command will
be valid utf-8, even if utf-8 is ostensibly the "correct" encoding for
the stream. It's always possible for an arbitrary command to return
non-utf-8 bytes, and this situation should not break tox.
Fix #2969
|
| |
|
|
|
|
|
|
| |
--exit-and-dump-after flag (#2597)
Resolves https://github.com/tox-dev/tox/issues/2567
Resolves https://github.com/tox-dev/tox/issues/2595
|
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
| |
|
|
|
|
| |
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
|
| |
|
|
|
|
|
|
|
| |
This happens if you declare configuration for a packaging environment.
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Seems sending CTRL_C event on Windows to a new process group does not
work in general. It registers on cmd.exe and powershell.exe on its own,
however is ignored on powershell when ran within Windows Terminal or
Wezterm. Sending CTRL_BREAK seems to work, but on the later brings down
the shell itself.
However, Windows works differently with signals than Linux. On Linux
only the root process gets the signal. On Windows when a signal is sent
to a process all processes within that process group will get an
instance of that signal. This means that on Windows we don't need to
forward signals. All child automatically gets it. The only thing we do is
escalate the unanswered interrupt to process kill (there's no SIGTERM on
Windows).
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
|
|
|
|
|
|
|
|
|
| |
* Add support for TOX_LIMITED_SHEBANG
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Fix Windows
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
|
| |
|
|
|
|
| |
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add support for allowlist_externals
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Apply suggestions from code review
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
|
|
|
|
|
|
|
|
| |
- Add documentation for the plugin interface
- Introduce the installer abstraction
- Rework how we handle tox deps section, requirement and constraint files
- Support for escaping comments in tox.ini configs
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
| |
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
| |
|
|
|
| |
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
| |
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
|
|
|
| |
This allows users to force isatty until we fix
https://github.com/tox-dev/tox/issues/1773.
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
|
|
|
| |
For now sacrificed isatty support on subprocess-es, see
https://github.com/tox-dev/tox/issues/1773 for more details.
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To support -r/-c/etc within deps we consider the deps section itself a
requirements file. We forward this as such to the installer. We validate
and traverse the entries within the requirements file, build the keys
so we know when we need to rebuild the tox environment. If only add
operation has been observed do not recreate the environment, bur rather
just update it with a new requirement file install.
Also added a mechanism into tox.pytest that allows enabling a short
circuit into the execute API. This is useful for example to auto
pass all install steps with success and a noop.
All install steps now have a run id starting with install. Run ids
have been altered to use the _ over the - as separator. This is to
bring it inline with how the PEP-517 backend uses the function name as
run it, and as such uses the _ as separator.
Fold legacy dev build requires package install into install-deps from a
dedicated step.
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
|
|
| |
Part of this unify the sequential and parallel execution engines.
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- move environment marker always at start of output
- use single char logging level representation
- skip support for parallel runs
- rework parallel run to collect output per env, and also collect
logging lines, fix logging timestamps by materializing the log messages
when they are emited (collect the resulting output, instead replaying
the log records at a later stage)
- support for the -c file to specify tox configuration file at custom
path
- fix PEP-517 implementation by implementing a new type hinted PEP-517
frontend/backend interface
- add a executor for PEP-517 communication that starts up just one
process and then reuses that one process for all subsequent messages,
this also collects stdout/stderr for executed commands
- introduce async executor for the commands (alongside the current sync)
- add prefix to threads to ease of identification in debugging
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
|
|
|
| |
- devenv mode: don't run tests and ensure there's only one target
environment selected
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
|
| |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|