summaryrefslogtreecommitdiff
path: root/src/tox/session
Commit message (Collapse)AuthorAgeFilesLines
* Feature: suppress step timings for verbosity=1 #2891 (#2992)release-4.5.0Ned Batchelder2023-04-241-1/+1
|
* Ignore labels when provisioning (#2917)Masen Furer2023-02-071-1/+2
| | | Fix https://github.com/tox-dev/tox/issues/2916
* Bump deps and tools (#2913)Bernát Gábor2023-02-051-1/+0
|
* Provision: ignore other test environments (#2865)Masen Furer2023-01-161-6/+7
| | | Fix https://github.com/tox-dev/tox/issues/2862
* Fix various issues with missing interpreters (#2828)Stephen Finucane2023-01-061-1/+3
| | | fix https://github.com/tox-dev/tox/issues/2811
* Fix devenv when package for env is wheel/editable (#2820)Bernát Gábor2023-01-041-8/+8
| | | Resolves https://github.com/tox-dev/tox/issues/2815
* Fix --skip-missing-interpreters (#2793)q0w2022-12-291-0/+1
| | | Closes https://github.com/tox-dev/tox/issues/2649
* Improved factor selection to allow multiple uses of `-f` for "OR" and to ↵Stephen Rosen2022-12-291-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | allow hyphenated factors (#2786) * Enable multiple uses of '-f' meaning 'OR' Previously, when `-f` was passed, it overwrote the last value. The result was that `-f foo -f bar` was equivalent to only passing `-f bar`. Under the new behavior, `-f foo -f bar` combines `foo` and `bar` as selection criteria, using OR-semantics. Envs matching `foo OR bar` will be selected. The existing multi-value argument behavior for `-f` is retained, in which `-f foo bar` means `foo AND bar`. The behaviors can be combined to express a variety of environment selections which were not previously possible in a single invocation. e.g. `-f foo bar -f baz` meaning `(foo AND bar) OR baz`. No existing tests fail, and the new behavior is checked by a new test. The help message for `-f` is updated. * Allow factors to be passed hyphenated The existing parsing of factors allows multiple factors to be selected by passing them as multiple arguments to the `-f` flag. For example, `-f foo bar` to pass both `foo` and `bar` as factors. This can now be passed equivalently using `-f foo-bar`. The meaning of this usage is identical to `-f foo bar`. A new test checks the behavior, and very closely mirrors the existing `-f` selection test so that their outputs are exactly equivalent. * Make factor tests parametrized & apply pre-commit These three tests are nearly identical in structure, and rely upon the same project configuration. Convert from three distinct test cases to a single parametrized test. Also apply pre-commit, which does some mild reformatting. * Add changelog entry for #2766 * Fix missing annotation in tests * Fix changelog entry for #2766 * Improve env selection with factors: perf and types - use tuple instead of list for immutable data - use `continue` and `break` to skip unnecessary loop iterations * Cleanup factor selection tests - convert args from list[str] to tuple[str, ...] - reformat str concat into a `.format()` usage * Remove unreachable factor selection check This check cannot be reached because it relies on an impossible combination of factors and labels.
* Fix --sdistonly behaviour (#2775)q0w2022-12-251-1/+5
|
* Suppress a report output when verbosity = 0. (#2774)q0w2022-12-251-3/+9
| | | | | * Suppress a report output when verbosity = 0. * Use os.linesep
* Fix provisioning (#2750)Bernát Gábor2022-12-191-5/+3
|
* Fix python hash seed not being set (#2739)Bernát Gábor2022-12-161-3/+26
| | | Resolves https://github.com/tox-dev/tox/issues/2645
* Fix legacy flags, deprecate them and remove --index-url (#2731)Bernát Gábor2022-12-151-15/+51
| | | Resolves https://github.com/tox-dev/tox/issues/2690
* Restore TOX_SKIP_ENV filtering (#2707)Marius Gedminas2022-12-141-2/+15
| | | | Co-authored-by: Bernát Gábor <bgabor8@bloomberg.net> Fixes https://github.com/tox-dev/tox/issues/2698
* Show only default env list for tox config by default (#2726)Bernát Gábor2022-12-141-2/+2
|
* Ensure change_dir is created before running commands (#2643)Bernát Gábor2022-12-081-0/+1
| | | Resolves https://github.com/tox-dev/tox/issues/2620
* tox --showconfig -e py shows core configs (#2625)Bernát Gábor2022-12-072-1/+4
| | | Resolves https://github.com/tox-dev/tox/issues/2624
* Bump deps and toolsBernát Gábor2022-11-221-4/+4
| | | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Use PEP-621 to load project dependencies (#2499)Bernát Gábor2022-09-101-1/+1
|
* Bump lintersBernát Gábor2022-09-091-1/+1
| | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Display registered plugins with --version (#2413)Max Droy2022-09-091-9/+36
| | | | 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>
* Fix devenv not respecting specified path (#2318)Bernát Gábor2022-01-131-5/+8
|
* 2315 (#2317)Bernát Gábor2022-01-131-0/+1
|
* Do not allow extending the config set beyond setup (#2314)Bernát Gábor2022-01-111-0/+7
|
* Legacy parallel flag should accept no arguments (#2307)Bernát Gábor2022-01-102-3/+4
|
* Better selection support (#2290)Bernát Gábor2022-01-0413-298/+466
|
* Drop python 3.6 support (#2275)Bernát Gábor2021-11-1716-54/+79
|
* Update setup changelogBernát Gábor2021-11-162-3/+15
| | | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Support for external packages and builders (#2235)Bernát Gábor2021-09-262-6/+22
|
* Fix list/depends cmd creates package env as run envBernát Gábor2021-09-244-24/+38
| | | | | | | 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 the interrupt thread is deadlocking when receiving an interruptBernát Gábor2021-09-241-0/+6
|
* Fix CTRL+C not working on WindowsBernát Gábor2021-09-241-6/+6
| | | | | | | | | | | | | | | | | | 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>
* Support for --no-provision flag (#2224)Bernát Gábor2021-09-182-3/+3
| | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Expose the configuration load mechanism to plugins (#2217)Bernát Gábor2021-09-1510-36/+22
|
* Support for plugin before and after, fix ASCII report fails (#2214)Bernát Gábor2021-09-111-8/+15
|
* Let tox run fail when all envs are skipped (#2206)Jürgen Gmach2021-09-101-2/+4
|
* Internal changes to accomodate tox-conda (#2172)Bernát Gábor2021-08-211-2/+5
| | | | | | | | | - 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>
* Fix parallel show output not working (#2161)Bernát Gábor2021-08-181-3/+3
| | | | | When there was also a package built in the given run. Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Add support for args_are_paths (#2157)Bernát Gábor2021-08-151-4/+10
| | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Clarify documentation for --runner (#2151)Bernát Gábor2021-08-101-1/+1
| | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Support CLI run flags for tox config (#2150)Bernát Gábor2021-08-093-24/+30
| | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Add support for exec subcommand (#2142)Bernát Gábor2021-08-073-14/+44
| | | | | | | | | | | | | | | | | * Add support for exec subcommand Run arbitrary commands within your tox environment. Don't abuse it. Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com> * Update docs/changelog/1790.feature.rst Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com> * reindent Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com> Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
* Add outcome of the tox environment evaluation into result JSON (#2144)Bernát Gábor2021-08-071-1/+7
| | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* `tox -e ALL` now runs all environments as expected (#2114)Jürgen Gmach2021-07-263-31/+53
| | | | | | | | | | | | | | | * `tox -e ALL` now runs all environments as expected This fixes #2112. * Fix tox -e ALL not working Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com> * Add test Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com> Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
* Minor code improvements (#2017)Miroslav Šedivý2021-04-111-6/+3
| | | | | | | | | * Use !r to repr strings * Simplify loops and expressions * Improve exception traceback * Add Python 3.10 to installation.rst
* minor doc improvements (#2006)Jürgen Gmach2021-04-082-4/+4
|
* Refactor: Simplify and clean up the code (#1997)Miroslav Šedivý2021-04-061-2/+2
| | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Start plugin interface documentation and installer (#1991)Bernát Gábor2021-04-0512-29/+23
| | | | | | | | - 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 legacy list env command for empty/missing envlist (#1988)Jürgen Gmach2021-04-011-1/+1
|
* Show skipped envs in reports on platform mismatch (#1970)Jürgen Gmach2021-03-202-4/+4
| | | Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>