| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Fix https://github.com/tox-dev/tox/issues/2916
|
| |
|
|
|
| |
Fix https://github.com/tox-dev/tox/issues/2862
|
|
|
| |
fix https://github.com/tox-dev/tox/issues/2811
|
|
|
| |
Resolves https://github.com/tox-dev/tox/issues/2815
|
|
|
| |
Closes https://github.com/tox-dev/tox/issues/2649
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
* Suppress a report output when verbosity = 0.
* Use os.linesep
|
| |
|
|
|
| |
Resolves https://github.com/tox-dev/tox/issues/2645
|
|
|
| |
Resolves https://github.com/tox-dev/tox/issues/2690
|
|
|
|
| |
Co-authored-by: Bernát Gábor <bgabor8@bloomberg.net>
Fixes https://github.com/tox-dev/tox/issues/2698
|
| |
|
|
|
| |
Resolves https://github.com/tox-dev/tox/issues/2620
|
|
|
| |
Resolves https://github.com/tox-dev/tox/issues/2624
|
|
|
|
| |
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
|
| |
|
|
|
|
| |
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>
|
|
|
| |
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
- 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>
|
|
|
|
|
| |
When there was also a package built in the given run.
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
|
|
|
| |
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
|
|
|
| |
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
|
|
|
| |
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
| |
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* `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>
|
|
|
|
|
|
|
|
|
| |
* Use !r to repr strings
* Simplify loops and expressions
* Improve exception traceback
* Add Python 3.10 to installation.rst
|
| |
|
|
|
| |
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.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>
|
| |
|
|
|
| |
Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
|