summaryrefslogtreecommitdiff
path: root/src/tox/execute/local_sub_process
Commit message (Collapse)AuthorAgeFilesLines
* implement pseudo tty on stdout/stderr (#2711)Masen Furer2022-12-161-5/+63
|
* Do not set COLUMNS or LINES if already set by user (#2580)Bernát Gábor2022-12-021-3/+3
| | | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net> Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Display registered plugins with --version (#2413)Max Droy2022-09-091-1/+1
| | | | 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>
* Drop python 3.6 support (#2275)Bernát Gábor2021-11-174-29/+41
|
* Update setup changelogBernát Gábor2021-11-161-2/+9
| | | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Fix list/depends cmd creates package env as run envBernát Gábor2021-09-241-1/+2
| | | | | | | 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>
* Fix CTRL+C not working on WindowsBernát Gábor2021-09-241-8/+4
| | | | | | | | | | | | | | | | | | 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 (#2226)Bernát Gábor2021-09-201-2/+7
| | | | | | | | | * 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>
* Fix coverage for windows on local subprocessBernát Gábor2021-08-181-5/+6
| | | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Add support for execute interrupt timeouts (#2158)Bernát Gábor2021-08-151-62/+39
|
* Add support for allowlist_externals (#2134)Bernát Gábor2021-08-021-1/+14
| | | | | | | | | | | | * 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>
* Start plugin interface documentation and installer (#1991)Bernát Gábor2021-04-051-1/+1
| | | | | | | | - 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>
* Fix tox is not exiting because package env thread holding it upBernát Gábor2021-02-151-1/+5
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Add more flake8 checks (#1899)Bernát Gábor2021-02-062-3/+6
| | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Cleanup local subprocess file handlers (#1863)Bernát Gábor2021-01-221-0/+7
|
* Add support for virtualenv configuration options (#1862)Bernát Gábor2021-01-211-1/+1
| | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Better handling of set_env (#1784)Bernát Gábor2021-01-111-1/+0
|
* Stable deps and eat-our-own dogfood4.0.0a2Bernát Gábor2021-01-081-1/+1
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Add tty replacerBernát Gábor2021-01-082-8/+10
| | | | | | | 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>
* Fix stdin (but loose isatty support for stdout/stderr)Bernát Gábor2021-01-082-24/+20
| | | | | | | 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>
* Add keyboard interrupt support for parallelBernát Gábor2021-01-032-54/+67
| | | | | | Part of this unify the sequential and parallel execution engines. Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Improve coverageBernát Gábor2020-12-283-14/+14
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Rework and simplify local subprocess executor handlersBernát Gábor2020-12-273-28/+55
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Rework and simplify local subprocess executor handlersBernát Gábor2020-12-274-112/+77
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Fix keyboard interrupt can failBernát Gábor2020-12-251-8/+14
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* More Windows fixbgabor82020-12-241-4/+9
|
* Fix Windows overlapped I/O handling - no longer blocksbgabor82020-12-241-4/+13
|
* Windows fixesbgabor82020-12-242-4/+14
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* General rework of the parallel, execute and reportingBernát Gábor2020-12-244-50/+122
| | | | | | | | | | | | | | | | | | | | | - 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>
* tests: add coverage for the local subprocess executorBernát Gábor2020-11-062-38/+31
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* tests: add platform specific pragma no coverage for thread reader win/unixBernát Gábor2020-11-032-11/+11
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* tests: add platform specific no pragma for platform branchesBernát Gábor2020-11-021-5/+5
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Add typing to test suiteBernát Gábor2020-10-261-1/+4
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* More fixesBernát Gábor2020-10-251-1/+1
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Various fixesBernát Gábor2020-10-251-1/+1
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Handle tty and terminal size within the local subprocess executorBernát Gábor2020-10-234-28/+72
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Fixbgabor82020-10-222-7/+10
| | | | | | | Signed-off-by: bgabor8 <bgabor8@bloomberg.net> Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net> Signed-off-by: bgabor8 <bgabor8@bloomberg.net> Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* TypingBernát Gábor2020-10-224-52/+55
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Improve documentationBernát Gábor2020-10-191-2/+9
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Fix CI (#1556)Bernát Gábor2020-07-242-15/+19
|
* Setup CI for tox 4 (#1551)Bernát Gábor2020-04-174-0/+238