summaryrefslogtreecommitdiff
path: root/src/tox/execute/api.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop python 3.6 support (#2275)Bernát Gábor2021-11-171-18/+20
|
* Update setup changelogBernát Gábor2021-11-161-2/+14
| | | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Expose the configuration load mechanism to plugins (#2217)Bernát Gábor2021-09-151-7/+7
|
* Add support for execute interrupt timeouts (#2158)Bernát Gábor2021-08-151-7/+57
|
* Start plugin interface documentation and installer (#1991)Bernát Gábor2021-04-051-9/+30
| | | | | | | | - 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-3/+22
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Add more flake8 checks (#1899)Bernát Gábor2021-02-061-4/+9
| | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Requirement files support within depsBernát Gábor2021-01-071-4/+8
| | | | | | | | | | | | | | | | | | | | | | | 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>
* Add keyboard interrupt support for parallelBernát Gábor2021-01-031-24/+5
| | | | | | Part of this unify the sequential and parallel execution engines. Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Rework and simplify local subprocess executor handlersBernát Gábor2020-12-271-37/+14
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* General rework of the parallel, execute and reportingBernát Gábor2020-12-241-40/+99
| | | | | | | | | | | | | | | | | | | | | - 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>
* Handle requirement files for depsBernát Gábor2020-11-041-1/+1
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* tests: add platform specific no pragma for platform branchesBernát Gábor2020-11-021-3/+4
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* report: duration of the setup and the individual commands and fix devenvBernát Gábor2020-10-301-2/+5
| | | | | | | - 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>
* Better shell cmd report, fix list env not working with testsBernát Gábor2020-10-271-7/+4
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Better run output, and fix failing cmd not being reportedBernát Gábor2020-10-261-4/+4
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Various fixesBernát Gábor2020-10-251-1/+5
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Handle tty and terminal size within the local subprocess executorBernát Gábor2020-10-231-0/+3
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* TypingBernát Gábor2020-10-221-10/+25
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Improve documentationBernát Gábor2020-10-191-51/+53
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Bump pre-commit featuresBernát Gábor2020-10-171-1/+5
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Color support (#1630)Bernát Gábor2020-07-271-2/+2
|
* Setup CI for tox 4 (#1551)Bernát Gábor2020-04-171-3/+5
|
* First iteration of the rewrite4.0.0a1Bernat Gabor2020-03-301-0/+142
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>