summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Feature: suppress step timings for verbosity=1 #2891 (#2992)release-4.5.0Ned Batchelder2023-04-241-1/+1
|
* Allow plugins to set `tox_root` (#2978)release-4.4.11kdestin2023-04-051-4/+5
|
* Fix `tox_root` propagation to `work_dir` (#2962)release-4.4.10Teejay2023-04-051-9/+12
| | | | | Co-authored-by: kdestin <101366538+kdestin@users.noreply.github.com> Co-authored-by: TJ Bruno <tj.bruno@everactive.com>
* Avoid UnicodeDecodeError from command output (#2970)Masen Furer2023-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | * test_sync_write_decode_surrogate: utf-8 decode When SyncWrite decodes bytes as utf-8, it should replace unknown sequences with the unicode surrogate codepoint instead of crashing the program. Test case for #2969 * SyncWrite: decode with errors='surrogateescape' Avoid bubbling UnicodeDecodeError up from stream handling internals. Tox has no way of knowing that the bytestream emitted by a command will be valid utf-8, even if utf-8 is ostensibly the "correct" encoding for the stream. It's always possible for an arbitrary command to return non-utf-8 bytes, and this situation should not break tox. Fix #2969
* Fix for requirements.txt using both --index-url and --find-links (#2959)release-4.4.8Alexander Clausen2023-03-261-2/+2
| | | | | Without the fix, installation would fail with: AttributeError: 'Namespace' object has no attribute 'find_links'
* Bump deps and tools (#2954)Bernát Gábor2023-03-235-10/+10
|
* Custom prefix in .ini source (#2927)Masen Furer2023-02-211-2/+7
| | | | | | | | | | | | | | | | | | | | | | | * test_source_ini: custom config can overlap testenv regression test for plugin behavior in #2926 * IniSource.get_loader: check section.prefix ensure that loaders returned from .ini source are bound to the correct section prefix, if specified. add comment explaining why the code must look up the name in the _section_mapping fix #2926 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* 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-053-6/+4
|
* Forward `HOME` by default (#2907)Ganden Schaffner2023-01-311-0/+1
| | | fixes https://github.com/tox-dev/tox/issues/2702
* Support recursive extras defined in pyproject.toml (#2905)Masen Furer2023-01-282-6/+19
| | | | | | | | | | | | | | | | * test_package_pyproject: recursive extras Add regression test for issue #2904 * test_package_pyproject: when project deps has a self-referential extra the project depends on an extra defined within itself * Support recursive extras defined in pyproject.toml Expand extras that reference an extra of the same package name to respect local changes to package metadata. Fix #2904
* rename TOX_CONFIG_FILE to TOX_USER_CONFIG_FILE (#2896)Masen Furer2023-01-251-1/+1
| | | Fix https://github.com/tox-dev/tox/issues/2890
* pip_install: constrain_package_deps is now False by default (#2899)Masen Furer2023-01-251-1/+1
|
* Windows shlex fix (#2895)Masen Furer2023-01-252-8/+47
|
* Enforce constraints during install_package_deps (#2888)Masen Furer2023-01-252-1/+51
| | | Fix https://github.com/tox-dev/tox/issues/2386
* Include WHEEL metadata when using PDM and poetry backends (#2881)Masen Furer2023-01-181-1/+9
| | | | Fix https://github.com/tox-dev/tox/issues/2880 Fix https://github.com/tox-dev/tox/issues/2870
* Fix the type annotation for `color` param of `Spinner.finalize()` (#2879)Kurt McKee2023-01-171-1/+1
| | | Closes https://github.com/tox-dev/tox/issues/2878
* Provision cwd (#2877)Masen Furer2023-01-171-1/+1
| | | Fix https://github.com/tox-dev/tox/issues/2876
* Provision: ignore other test environments (#2865)Masen Furer2023-01-162-7/+9
| | | Fix https://github.com/tox-dev/tox/issues/2862
* Fix regression with multiple env substitutions for the same key (#2873)Masen Furer2023-01-161-4/+7
| | | Fix https://github.com/tox-dev/tox/issues/2869
* Recursive replace (#2864)Masen Furer2023-01-151-8/+28
| | | | | | | | | | | | | | | | | | | | * test_replace_tox_env: add missing chain cases When a replacement references a replacement in a non-testenv section it should also be expanded * Recursive ini-value substitution Expand substitution expressions that result from a previous subsitution expression replacement value (up to 100 times). Fix #2863 * cr: changelog: fix trailing period * test_replace_tox_env: tests for MAX_REPLACE_DEPTH Create a long chain of substitution values and assert that they stop being processed after some time.
* Rewrite substitution parser (#2861)Masen Furer2023-01-152-71/+179
|
* Allow package names with env markers with pip binary options (#2853)q0w2023-01-112-12/+29
| | | Fixes https://github.com/tox-dev/tox/issues/2814#issuecomment-1374804987
* 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
* Handle properly pip --no-binary / --only-binary options in requirements.txt ↵q0w2023-01-063-5/+32
| | | | | format files. (#2834) Fixes https://github.com/tox-dev/tox/issues/2814
* Fix various issues with missing interpreters (#2828)Stephen Finucane2023-01-063-14/+22
| | | 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
* Also accept tab after colon before factor filter expansion (#2823)Patrick Decat2023-01-051-2/+3
|
* Fix devenv when package for env is wheel/editable (#2820)Bernát Gábor2023-01-042-8/+12
| | | Resolves https://github.com/tox-dev/tox/issues/2815
* Require space after colon before factor expansion (#2822)Patrick Decat2023-01-041-1/+1
| | | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Resolves https://github.com/tox-dev/tox/issues/2821
* Add more c-extension env-vars to default pass_env (#2818)Bernát Gábor2023-01-042-1/+8
|
* update how extras are extracted to handle cases with more than 2 groups (#2812)dconathan2023-01-031-22/+40
| | | | | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bernát Gábor <bgabor8@bloomberg.net> Resolves https://github.com/tox-dev/tox/issues/2791 fixes https://github.com/tox-dev/tox/issues/2791
* Packaging inherits from pkgenv, deps and document tox 4 packaging changes ↵Bernát Gábor2023-01-036-9/+25
| | | | | (#2813) Resolves https://github.com/tox-dev/tox/issues/2543
* Better message when command parsing on empty input (#2807)Bernát Gábor2023-01-022-1/+6
|
* Reuse package_env with --installpkg (#2803)Bernát Gábor2023-01-021-3/+2
| | | Co-authored-by: q0w <43147888+q0w@users.noreply.github.com>
* Fix extracting extras from markers with many extras (#2792)q0w2022-12-301-2/+1
| | | Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
* Show installed packages after setup in CI envs (#2794)Bernát Gábor2022-12-303-9/+38
| | | Resolves https://github.com/tox-dev/tox/issues/2685
* Fix --skip-missing-interpreters (#2793)q0w2022-12-292-0/+9
| | | Closes https://github.com/tox-dev/tox/issues/2649
* Fix logging error with emoji in git branch name. (#2790)James Williams2022-12-292-2/+2
| | | Resolves https://github.com/tox-dev/tox/issues/2768
* 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.
* Create temp_dir if not exists (#2781)q0w2022-12-281-0/+4
| | | Closes https://github.com/tox-dev/tox/issues/2770
* Handle whitespace around requirements (#2779)Bernát Gábor2022-12-261-1/+1
| | | Resolves https://github.com/tox-dev/tox/issues/2773
* Override toxworkdir with --workdir. (#2776)q0w2022-12-261-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * Override toxworkdir with --workdir. * Override toxworkdir with --workdir. * Override toxworkdir with --workdir. * Override toxworkdir with --workdir. * Override toxworkdir with --workdir. * Override toxworkdir with --workdir. * Override toxworkdir with --workdir. * Override toxworkdir with --workdir. * Override toxworkdir with --workdir. * Override toxworkdir with --workdir. * Override toxworkdir with --workdir. * Override toxworkdir with --workdir.
* Fix --sdistonly behaviour (#2775)q0w2022-12-252-2/+7
|
* Suppress a report output when verbosity = 0. (#2774)q0w2022-12-251-3/+9
| | | | | * Suppress a report output when verbosity = 0. * Use os.linesep
* Fix change_dir is not always relative to tox_root (#2761)Bernát Gábor2022-12-203-14/+31
| | | Resolves https://github.com/tox-dev/tox/issues/2619
* Fix complex negative factor filters not working (#2757)Bernát Gábor2022-12-191-1/+4
| | | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Resolves https://github.com/tox-dev/tox/issues/2747
* Fix provisioning (#2750)Bernát Gábor2022-12-192-10/+9
|
* Ignore non-test section names and invalid factor filters (#2748)Bernát Gábor2022-12-182-4/+4
| | | Resolves https://github.com/tox-dev/tox/issues/2746