summaryrefslogtreecommitdiff
path: root/src/tox/tox_env/python/api.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert to supporting simple Python factors (#2849)Stephen Finucane2023-01-111-4/+13
| | | | | | Co-authored-by: Bernát Gábor <bgabor8@bloomberg.net> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Fixes https://github.com/tox-dev/tox/issues/2657 Fixes https://github.com/tox-dev/tox/issues/2848
* Only return Python factor on base_python conflict (#2840)Stephen Finucane2023-01-101-11/+14
| | | Fixes https://github.com/tox-dev/tox/issues/2838
* Fix various issues with missing interpreters (#2828)Stephen Finucane2023-01-061-11/+13
| | | fix https://github.com/tox-dev/tox/issues/2811
* Fail on mismatched python spec attributes (#2824)Stephen Finucane2023-01-051-1/+1
| | | Closes https://github.com/tox-dev/tox/issues/2754
* Add more c-extension env-vars to default pass_env (#2818)Bernát Gábor2023-01-041-1/+2
|
* Show installed packages after setup in CI envs (#2794)Bernát Gábor2022-12-301-2/+8
| | | Resolves https://github.com/tox-dev/tox/issues/2685
* Fix python hash seed not being set (#2739)Bernát Gábor2022-12-161-0/+7
| | | Resolves https://github.com/tox-dev/tox/issues/2645
* Add py_dot_ver and py_impl (#2716)Bernát Gábor2022-12-141-0/+12
| | | Resolves https://github.com/tox-dev/tox/issues/2640
* Add PKG_CONFIG_PATH to default passenv (#2700)Bernát Gábor2022-12-131-0/+1
|
* Pass through NUMBER_OF_PROCESSORS on Windows (#2647)Bernát Gábor2022-12-081-0/+1
| | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Better handling of build backend without editable support and add ↵Bernát Gábor2022-12-051-15/+16
| | | | | | --exit-and-dump-after flag (#2597) Resolves https://github.com/tox-dev/tox/issues/2567 Resolves https://github.com/tox-dev/tox/issues/2595
* Check 3.11 support (#2492)Bernát Gábor2022-09-091-0/+3
|
* Drop python 3.6 support (#2275)Bernát Gábor2021-11-171-17/+19
|
* Update setup changelogBernát Gábor2021-11-161-1/+1
| | | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Expose the configuration load mechanism to plugins (#2217)Bernát Gábor2021-09-151-2/+2
|
* Fix old-new value on recreate cache miss-match are swapped (#2212)Bernát Gábor2021-09-111-1/+1
| | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Internal changes to accomodate tox-conda (#2172)Bernát Gábor2021-08-211-14/+8
| | | | | | | | | - introduce ToxEnvCreateArgs to simplify tox env interface - allow skipping the list dependencies configuration for pip installer - expose python environment creation directly via ensure_python_env - executable should only be part of the python cache for virtual environments (moved it in PythonInfo to extra info set) Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Check base python against env name and raise if differs (#2156)Bernát Gábor2021-08-151-1/+32
|
* Add documentation for configuration values (#2127)Bernát Gábor2021-07-281-1/+1
|
* Start plugin interface documentation and installer (#1991)Bernát Gábor2021-04-051-71/+41
| | | | | | | | - 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>
* Add more flake8 checks (#1899)Bernát Gábor2021-02-061-2/+2
| | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Fix bad package dependencies with differing extras (#1869)Bernát Gábor2021-01-231-2/+1
| | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Multiple small bug-fixes (#1864)Bernát Gábor2021-01-221-1/+1
|
* Add support for virtualenv configuration options (#1862)Bernát Gábor2021-01-211-5/+5
| | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Colorize config and fix a circular config bug (#1821)Bernát Gábor2021-01-131-1/+1
| | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Better handling of packaging env creation (#1807)Bernát Gábor2021-01-131-7/+27
|
* Adopt same pass env list as tox 3 hasBernát Gábor2021-01-111-3/+2
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Better handling of set_env (#1784)Bernát Gábor2021-01-111-2/+12
|
* Requirement files support within depsBernát Gábor2021-01-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | 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 test for dependency removal triggers recreateBernát Gábor2021-01-031-1/+3
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Fix env_tmp_dir reset, set cwd in test runs, increase coverage on tox_env.apiBernát Gábor2021-01-031-2/+2
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* General rework of the parallel, execute and reportingBernát Gábor2020-12-241-10/+14
| | | | | | | | | | | | | | | | | | | | | - 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>
* legacy: add testsBernát Gábor2020-11-281-1/+1
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* devenv: fix and add support for running without tox.ini availableBernát Gábor2020-11-281-0/+3
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Fix provisioning supportBernát Gábor2020-11-271-8/+8
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* journal: tox 3 (sequential) feature compatibilityBernát Gábor2020-11-091-0/+11
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* journal: add first stab at basic journal supportBernát Gábor2020-11-071-4/+21
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* helpers: move helpers within the python namespace, given they contain ↵Bernát Gábor2020-11-071-1/+1
| | | | | | helpers for that Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Handle requirement files for depsBernát Gábor2020-11-041-4/+22
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* tests: add platform specific no pragma for platform branchesBernát Gábor2020-11-021-1/+1
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Implement develop mode install of python packagesBernát Gábor2020-10-261-0/+10
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Add typing to test suiteBernát Gábor2020-10-261-11/+1
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* More fixesBernát Gábor2020-10-251-3/+3
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Various fixesBernát Gábor2020-10-251-4/+17
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* TypingBernát Gábor2020-10-221-47/+68
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Improve documentationBernát Gábor2020-10-191-2/+4
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Bump pre-commit featuresBernát Gábor2020-10-171-1/+2
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Fix CI (#1556)Bernát Gábor2020-07-241-18/+6
|
* Setup CI for tox 4 (#1551)Bernát Gábor2020-04-171-14/+33
|
* First iteration of the rewrite4.0.0a1Bernat Gabor2020-03-301-0/+118
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>