summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Bump pre-commit, fix errors (#1586)Bernát Gábor2020-05-2025-237/+242
| | | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Do not interpolate values from tox --showconfig (#1585)Albin Vass2020-05-201-0/+15
|
* Fix CI due to latest pip output change (#1579)Bernát Gábor2020-05-111-2/+2
|
* Passenv PIP_EXTRA_INDEX_URL by default (#1562)George Alton2020-05-021-0/+1
|
* Respect attempts to change PATH via setenv (#1563)Andrzej Klajnert2020-04-211-0/+23
|
* expand section names (#1545)Charles Brunet2020-04-171-0/+9
| | | | | | | | | | | * expand section names * fix linting * Added changelog * trim whitespaces around factor names * added docs
* Fix exeception when command is empty (#1544)Charles Brunet2020-03-271-0/+19
| | | | | | | * Fix exeception when command is empty * simplify expression * add changelog
* Fixed irrelevant Error message for invalid argument when runnin… (#1547)NAVEEN S R2020-03-271-0/+19
| | | | | | | * Fixed #1546 * Added Changelog * Solved CI Failure
* Fix parsing of architecture in python interpreter name (#1542)Charles Brunet2020-03-261-0/+5
| | | | | | | | | * Fix parsing of architecture in python interpreter name * add myself to contributors * added entry to changelog * updated changelog filename
* Fix ValueError: max() arg is an empty sequence on (#1529)Jeff Quast2020-03-231-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix ValueError: max() arg is an empty sequence When running `tox -l` with a tox.ini file not containing any default environments, instead of an empty output, an exception is raised: ``` $ tox -l tox -l Traceback (most recent call last): File "/Users/jq/.pyenv/versions/py38/bin/tox", line 8, in <module> sys.exit(cmdline()) File "/Users/jq/.pyenv/versions/3.8.1/envs/py38/lib/python3.8/site-packages/tox/session/__init__.py", line 44, in cmdline main(args) File "/Users/jq/.pyenv/versions/3.8.1/envs/py38/lib/python3.8/site-packages/tox/session/__init__.py", line 68, in main exit_code = session.runcommand() File "/Users/jq/.pyenv/versions/3.8.1/envs/py38/lib/python3.8/site-packages/tox/session/__init__.py", line 189, in runcommand self.showenvs(all_envs=False, description=show_description) File "/Users/jq/.pyenv/versions/3.8.1/envs/py38/lib/python3.8/site-packages/tox/session/__init__.py", line 293, in showenvs show_envs(self.config, all_envs=all_envs, description=description) File "/Users/jq/.pyenv/versions/3.8.1/envs/py38/lib/python3.8/site-packages/tox/session/commands/show_env.py", line 14, in show_envs max_length = max((len(env) for env in (default + extra))) ValueError: max() arg is an empty sequence ``` * trying to follow contributing guidelines * add test, fails without merge, succeeds after Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Fix `tox --help` and `tox --help-ini` shows an error when run o… (#1539)NAVEEN S R2020-03-221-2/+14
| | | | | | | | | | | | | | | * solved #1509 #1540 * added test for fixed help command * added changelog * solved CI error the problem is with psutil==5.7.0 in pypy . * solved lint problem :confounded: Co-authored-by: nkpro2000sr <naveennotes2000sr@gmail.com>
* Updated String Formatting (#1528)Anudit Nagar2020-02-171-1/+1
|
* Allow user to inject specific Pythons to try as step 1 during discoveryBernat Gabor2020-02-161-5/+15
| | | | | | | | | | | | | At the moment it's unecessarily hard to specify a specific python executable to use for a given spec. While mangling with the path might work for environments for tox environments that require a python differing the host tox python version; for environments matching the host tox interpreter it's impossible to use any other interpreter than what tox uses. Here we add a CLI argument (fallback to some environment variable for CI usage) that allows the user to inject custom python interpreters as step 1 of the discovery mechanism. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Include HTTP proxy environment variables in default passenv (#1500)Paul Moore2020-01-221-0/+3
|
* Allow to config the behavior on CTRL+C (#1493)Mehdi ABAAKOUK2020-01-091-0/+19
| | | | | | | | | | | | | | | By default, we run SIGKILL after 0.5 seconds. Most of the time is enough. But if the interrupted command have a complex processes tree, it might not be enough to propagate the signal. In such case processes are left behind and never killed. If theses processes use static network port or keep file open. Next call of tox will fail until the all processes left behind are manually killed. This change adds some configuration to be able to config the timeout before signals are sent. If the approach work for you, I will polish the PR (doc+test)
* release 3.14.33.14.3Bernat Gabor2019-12-282-4/+1
| | | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* clarify legacy setup.py error message further (#1478)Thomas Grainger2019-12-061-1/+26
| | | a follow up to #1467
* mark poetry tests as xfail on windows (#1474)Ronny Pfannschmidt2019-12-021-0/+3
| | | | | | | | | | | | * Mark poetry tests as xfail on windows * Update tests/integration/test_package_int.py Co-Authored-By: Anthony Sottile <asottile@umich.edu> * fix formatting Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Fix global configuration fallback in Jenkins runs (#1466)Dane Hillard2019-11-281-0/+11
| | | | | | | | | | Fixes #1428 When running in Jenkins and using `setup.cfg`, tox would not fall back to the [tox:tox] configuration properly. This was due to how the fallback section name was calculated in this specific combination of characteristics. on-behalf-of: @ithaka <dane.hillard@ithaka.org>
* fix the failing CI on master (#1456)Bernát Gábor2019-11-134-5/+11
| | | | | | | | | | * fix Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * suppress proc related failures on pypy Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Adds SSL proxy variables to default passenv (#1439)Sorin Sbarnea2019-11-111-0/+3
| | | | | | | | | This shouls avoid SSL failures with HTTP requests from pip, requests or other libraries. Also sorts existing values in order to make it easier to update the list in the future. Fixes: #1437
* Fix provisioning from pyvenv interpreter (#1452)Ilya Kulakov2019-11-111-0/+20
| | | | | | | | | | | | | | | | | | When the original interpreter [0] tox is called with is actually a pyvenv it will set the `__PYVENV_LAUNCHER__` environment variable to the path of pyvenv interpreter. If tox configuration specifies `requires` and the requirements are not satifsfied by [0], tox will create an intermediate virtual environment [1]. After setting up [1] tox will delegate the original call by spawning a new [1] interpreter with the identical identical list of arguments. It will also pass the value of `__PYVENV_LAUNCHER__` if present. This in turn causes `sys.executable` to resolve to [0] instead of [1] therefore ignoring all modifications including installed requirements. The fix is to make sure that when [0] spawns [1], `__PYVENV_LAUNCHER__` is removed from the environment.
* Fix reporting exit due to (real) signal (#1401)Daniel Hahler2019-11-111-1/+3
| | | | | | `subprocess` reports a negative exit code for signals. Still handle "128 + X" for processes indicating that they received a signal themselves.
* Use _TOX_PARALLEL_ENV environment variable to control the behav… (#1446)Miro Hrončok2019-11-112-2/+56
| | | | | | | | | | | | | | | | | | | | | | | | | ...but keep the TOX_PARALLEL_ENV variable for others to consume. The problem with using environment variables to let tox know it's being run as a parallel worker is the following: Either you don't pass the environment variable, but the test frameworks and test suites are unaware that tox is running in parallel. This makes it hard for cases like pytest-django: https://github.com/tox-dev/tox/pull/1139 Or you pass the environment variable, but it makes tox invoked within tox think it is a parallel worker even when it isn't. This makes it hard to test various tox plugins that invoke tox in their integration test suite: Fixes https://github.com/tox-dev/tox/issues/1444 By introducing two variables we can use one ("private", _TOX_PARALLEL_ENV) to control the behavior of tox (and don't pass it) and another ("public", TOX_PARALLEL_ENV) to let the tests and test frameworks know tox is running in parallel (and pass it by default). The integration test is a tad complicated invoking subprocess.Popen instead of subprocess.run, to support Python 2.7 and 3.4.
* Correctly recognize interpreters that has suffixes (#1416)Pablo Galindo2019-09-031-0/+5
|
* Remove pyparsing workaround (#1402)Anthony Sottile2019-08-201-2/+0
|
* Fix PythonSpec detection of python3.10 (#1398)Anthony Sottile2019-08-141-0/+6
|
* Remove dependence on md5 (#1385)Anthony Sottile2019-07-312-7/+3
|
* Fix testsuite and honor environment markers in requires (#1382)Anthony Sottile2019-07-272-12/+28
|
* Un-hardcode the supported factors again (#1377)Anthony Sottile2019-07-273-29/+32
|
* Work around broken pyparsing release (#1380)Anthony Sottile2019-07-271-8/+10
|
* Fix CI (#1364)Bernát Gábor2019-07-261-2/+2
|
* Fix tests running under pypy (#1379)Anthony Sottile2019-07-265-62/+74
|
* fix non-canonical names don't work with provisioning (#1360)Bernát Gábor2019-07-011-0/+95
|
* Add explicit check for pypy venv (#1356)Oliver Bestwalter2019-06-271-0/+6
| | | | | | | | * Add explicit check for pypy venv * Add changelog entry * Add regression test for --recreate
* cowardly refuse to delete a directory if it isn't a venv (#1340)Anthony Sottile2019-06-101-0/+20
|
* Use POSIX shell rules for creating posargs string on non-Windows platforms ↵Barney Gale2019-06-051-1/+11
| | | | | | | | (#1336) * Use POSIX shell rules for creating posargs string on non-Windows platforms. Closes #1336 * pre-commit run --all-files
* envconfig.missing_subs is not a setting: should be a private attribute (#1335)Oliver Bestwalter2019-06-051-1/+1
|
* Improve --devenv help and ensure `--devenv ` does not delete (#1333)Anthony Sottile2019-06-021-0/+21
|
* Implement --devenv (#1326)Anthony Sottile2019-06-011-0/+46
|
* Move to importlib-metadata for performance improvements (#1324)Anthony Sottile2019-05-281-1/+1
|
* Ensure native strings in environ (#1314)Anthony Sottile2019-05-231-0/+4
|
* Fix for --result-json with --parallel (#1309)Florian Schulze2019-05-232-17/+93
| | | | | | | | | * Correct ``--result-json`` output with ``--parallel``. (#1295) When using ``--parallel`` with ``--result-json`` the test results are now included the same way as with serial runs. This is accomplished by generating json result output for each individual run and at the end copy the data into the main json result output. * avoid duplication in code, improve coverage
* PEP-514 support via winreg (#1310)Bernát Gábor2019-05-235-22/+48
| | | | | | | | | | * pep-514 implementation * reorganize interpreter * report failures * report failures
* Add environment variable to disable parallel spinner for CI tools (#1311)zeroshift2019-05-232-0/+36
| | | | | | | | * Adding TOX_PARALLEL_NO_SPINNER to disable spinner for CI tools. * Adding unit tests for TOX_PARALLEL_NO_SPINNER env var. * Updating CONTRIBUTORS and changelog for TOX_PARALLEL_NO_SPINNER env var.
* Fixed result of tox_get_python_executable not being used to make virtualenvs ↵Ashley Whetter2019-05-161-0/+31
| | | | | | | | (#1301) * Fixed result of tox_get_python_executable not being used to make virtualenvs * fix formatting and add changelog
* show config now shows all config, filter-able, contains host tox python and ↵Bernát Gábor2019-05-152-49/+117
| | | | | package versions (#1298) and package versions
* move to improved Azure template (#1286)Bernát Gábor2019-05-104-52/+31
| | | | | | | | | | | | | | * move to improved Azure template * add architecture support, log discovery * fix * fix * fix * debug
* fix compound opts handling with pass-through options in provisionBernat Gabor2019-05-012-1/+3
|
* add no download (#1283)Bernát Gábor2019-05-012-3/+25
|