* ``sitepackages = true`` will add user's site-package to the python path on Windows as expected
* Avoid importing ``pipes`` on Python 3.3+ to avoid ``DeprecationWarning`` on Python 3.11
* Fix ``isolated_build`` when the build process produces stderr at exit.
* Fixed failing isolated_build because setuptools warning was captured
in ``build_requires``.
* Avoid potential 30s delay caused by socket.getfqdn().
* Ignore missing commands if they are prefixed by ``-``
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=86
- Fixed handling of -e ALL in parallel mode by ignoring the ALL
in subprocesses -- by :user:`guahki`. #2167
- Prevent tox from using a truncated interpreter when using
TOX_LIMITED_SHEBANG -- by :user:`jdknight`. #2208
- Enabled the use of the favicon in the Sphinx docs first
introduced in :pull:`764` but not integrated fully --
:user:`webknjaz` #2177
- --parallel reports now show ASCII OK/FAIL/SKIP lines when
full Unicode output is not available - by :user:`brettcs`
#1421
- Started enforcing valid references in Sphinx docs --
:user:`webknjaz` #2168
- include LC_ALL to implicit list of passenv variables - by
:user:`ssbarnea` #2162
- get_requires_for_build_sdist hook (PEP 517) is assumed to
return an empty list if left unimplemented by the backend
build system - by :user:`oczkoisse` #2130
- The documentation of install_command now also mentions that
you can provide arbitrary commands - by :user:`jugmac00`
#2081
- --devenv no longer modifies the directory in which the .tox
environment is provisioned - by :user:`isaac-ped` #2065
- Fix show config when the package names are not in canonical
form - by :user:`gaborbernat`. #2103
- Extended environment variables section - by :user:`majiang`
#2036
- tox no longer shows deprecation warnings for
distutils.sysconfig on Python 3.10 - by :user:`9999years`
#2100
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=84
- update to 3.18.0
* Add allowlist_externals alias to whitelist_externals (whitelist_externals is now deprecated). - by :user:`dajose`
* Fix tests when the ``HOSTNAME`` environment variable is set, but empty string - by :user:`hroncok`
* The long arguments ``--verbose`` and ``--quiet`` (rather than only their short forms, ``-v`` and ``-q``) are now accepted.
* The ``ResultLog`` now prefers ``HOSTNAME`` environment variable value (if set) over the full qualified domain name of localhost.
This makes it possible to disable an undesired DNS lookup,
which happened on all ``tox`` invocations, including trivial ones * by :user:`hroncok`
* Update packaging information for Flit.
* Fixed the support for using ``{temp_dir}`` in ``tox.ini`` - by :user:`webknjaz`
* Allow skipping the package and installation step when passing the ``--skip-pkg-install``.
OBS-URL: https://build.opensuse.org/request/show/841413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=76
* Fix PythonSpec detection of python3.10
* Fix regression failing to detect future and past py## factors
* Fix current_tox_py for pypy / pypy3
* Add support for minor versions with multiple digits
* Remove dependence on md5 hashing algorithm
* on venv cleanup: add explicit check for pypy venv to make it possible to recreate it
* Fix isolated build double-requirement
* Replace pkg_resources with importlib_metadata for speed
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=60
- Update to 3.12.1:
- Ensure TOX_WORK_DIR is a native string in os.environ
- Fix import and usage of winreg for python2.7 on windows
- Fix Windows selects incorrect spec on first discovery
- When using --parallel with --result-json the test results are
now included the same way as with serial runs
- Turns out the output of the py -0p is not stable yet and
varies depending on various edge cases. Instead now we read
the interpreter values directly from registry via PEP-514
- Adding TOX_PARALLEL_NO_SPINNER environment variable to
disable the spinner in parallel mode for the purposes of
clean output when using CI tools
OBS-URL: https://build.opensuse.org/request/show/705206
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=58
- Update to 3.7.0:
- Parallel mode added (alternative to detox which is being
deprecated), for more details see `parallel_mode`
- Added command line shortcut -s for
--skip-missing-interpreters
- Whitelisting of externals will be mandatory in tox 4: issue
a deprecation warning as part of the already existing warning
- Clarify explanations in examples and avoid unsupported end
line comments
- Set to PULL_REQUEST_TEMPLATE.md use relative instead of
absolute URLs
- if the packaging phase successfully builds a package set it
as environment variable under TOX_PACKAGE (useful to make
assertions on the built package itself, instead of just how
it ends up after installation)
- On windows, check sys.executable before others for
interpreter version lookup. This matches what happens on
non-windows.
- Don't rewrite {posargs} substitution for absolute paths.
- Correctly fail tox --notest when setup fails.
- Link to related projects (Invoke and Nox) from the
documentation
- Obsoletes python-detox.
OBS-URL: https://build.opensuse.org/request/show/684316
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=49
- specfile:
* require filelock
* CHANGELOG.rst ->changelog.rst, added CONTRIBUTORS CONTRIBUTING.rst to doc
* add fdupes
- update to version 3.5.2:
* Bugfixes
+ session packages are now put inside a numbered directory
(instead of prefix numbering it, because pip fails when wheels
are not named according to `PEP-491
<https://www.python.org/dev/peps/pep-0491/#id9>`_, and prefix
numbering messes with this) - by :user:`gaborbernat` (`#1042
<https://github.com/tox-dev/tox/issues/1042>`_)
* Features
+ level three verbosity ("-vvv") show the packaging output - by
:user:`gaborbernat` (`#1047
<https://github.com/tox-dev/tox/issues/1047>`_)
- changes from version 3.5.1:
* Bugfixes
+ fix regression with "3.5.0": specifying "--installpkg" raises
"AttributeError: 'str' object has no attribute 'basename'"
(`#1042 <https://github.com/tox-dev/tox/issues/1042>`_)
- changes from version 3.5.0:
* Bugfixes
+ intermittent failures with "--parallel--safe-build", instead of
mangling with the file paths now uses a lock to make the package
build operation thread safe and is now on by default
("--parallel--safe-build" is now deprecated) - by
:user:`gaborbernat` (`#1026
<https://github.com/tox-dev/tox/issues/1026>`_)
* Features
+ Added "temp_dir" folder configuration (defaults to
"{toxworkdir}/.tmp") that contains tox temporary files. Package
builds now create a hard link (if possible, otherwise copy -
notably in case of Windows Python 2.7) to the built file, and
feed that file downstream (e.g. for pip to install it). The hard
link is removed at the end of the run (what it points though is
kept inside "distdir"). This ensures that a tox session operates
on the same package it built, even if a parallel tox run builds
another version. Note "distdir" will contain only the last built
package in such cases. - by :user:`gaborbernat` (`#1026
<https://github.com/tox-dev/tox/issues/1026>`_)
* Documentation
+ document tox environment recreate rules (:ref:`recreate`) - by
:user:`gaborbernat` (`#93
<https://github.com/tox-dev/tox/issues/93>`_)
+ document inside the "--help" how to disable colorized output via
the "PY_COLORS" operating system environment variable - by
:user:`gaborbernat` (`#163
<https://github.com/tox-dev/tox/issues/163>`_)
+ document all global tox flags and a more concise format to
express default and type - by :user:`gaborbernat` (`#683
<https://github.com/tox-dev/tox/issues/683>`_)
+ document command line interface under the config section `cli
<https://tox.readthedocs.io/en/latest/config.html?highlight=cli#cli>`_
- by :user:`gaborbernat` (`#829
<https://github.com/tox-dev/tox/issues/829>`_)
- changes from version 3.4.0:
* Bugfixes
+ add "--exists-action w" to default pip flags to handle better
VCS dependencies (`pip documentation on this
<https://pip.pypa.io/en/latest/reference/pip/#exists-action-option>`_)
- by :user:`gaborbernat` (`#503
<https://github.com/tox-dev/tox/issues/503>`_)
+ instead of assuming the Python version from the base python name
ask the interpreter to reveal the version for the
"ignore_basepython_conflict" flag - by :user:`gaborbernat`
(`#908 <https://github.com/tox-dev/tox/issues/908>`_)
+ PEP-517 packaging fails with sdist already exists, fixed via
ensuring the dist folder is empty before invoking the backend
and `pypa/setuptools 1481
<https://github.com/pypa/setuptools/pull/1481>`_ - by
:user:`gaborbernat` (`#1003
<https://github.com/tox-dev/tox/issues/1003>`_)
* Features
+ add "commands_pre" and "commands_post" that run before and after
running the "commands" (setup runs always, commands only if
setup suceeds, teardown always - all run until the first failing
command) - by :user:`gaborbernat` (`#167
<https://github.com/tox-dev/tox/issues/167>`_)
+ "pyproject.toml" config support initially by just inline the
tox.ini under "tool.tox.legacy_tox_ini" key; config source
priority order is "pyproject.toml", "tox.ini" and then
"setup.cfg" - by :user:`gaborbernat` (`#814
<https://github.com/tox-dev/tox/issues/814>`_)
+ use the os environment variable "TOX_SKIP_ENV" to filter out tox
environment names from the run list (set by "envlist") - by
:user:`gaborbernat` (`#824
<https://github.com/tox-dev/tox/issues/824>`_)
+ always set "PIP_USER=0" (do not install into the user site
package, but inside the virtual environment created) and
"PIP_NO_DEPS=0" (installing without dependencies can cause
broken package installations) inside tox - by
:user:`gaborbernat` (`#838
<https://github.com/tox-dev/tox/issues/838>`_)
+ tox will inject some environment variables that to indicate a
command is running within tox: "TOX_WORK_DIR" env var is set to
the tox work directory, "TOX_ENV_NAME" is set to the current
running tox environment name, "TOX_ENV_DIR" is set to the
current tox environments working dir - by :user:`gaborbernat`
(`#847 <https://github.com/tox-dev/tox/issues/847>`_)
+ While running tox invokes various commands (such as building the
package, pip installing dependencies and so on), these were
printed in case they failed as Python arrays. Changed the
representation to a shell command, allowing the users to quickly
replicate/debug the failure on their own - by
:user:`gaborbernat` (`#851
<https://github.com/tox-dev/tox/issues/851>`_)
+ skip missing interpreters value from the config file can now be
overridden via the "--skip-missing-interpreters" cli flag - by
:user:`gaborbernat` (`#903
<https://github.com/tox-dev/tox/issues/903>`_)
+ keep additional environments config order when listing them - by
:user:`gaborbernat` (`#921
<https://github.com/tox-dev/tox/issues/921>`_)
+ allow injecting config value inside the ini file dependent of
the fact that we're connected to an interactive shell or not -
by :user:`gaborbernat` (`#947
<https://github.com/tox-dev/tox/issues/947>`_)
+ do not build sdist if skip install is specified for the envs to
be run - by :user:`gaborbernat` (`#974
<https://github.com/tox-dev/tox/issues/974>`_)
+ when verbosity level increases above two start passing through
verbosity flags to pip - by :user:`gaborbernat` (`#982
<https://github.com/tox-dev/tox/issues/982>`_)
+ when discovering the interpreter to use check if the tox host
Python matches and use that if so - by :user:`gaborbernat`
(`#994 <https://github.com/tox-dev/tox/issues/994>`_)
+ "-vv" will print out why a virtual environment is re-created
whenever this operation is triggered - by :user:`gaborbernat`
(`#1004 <https://github.com/tox-dev/tox/issues/1004>`_)
* Documentation
+ clarify that "python" and "pip" refer to the virtual
environments executable - by :user:`gaborbernat` (`#305
<https://github.com/tox-dev/tox/issues/305>`_)
+ add Sphinx and mkdocs example of generating documentation via
tox - by :user:`gaborbernat` (`#374
<https://github.com/tox-dev/tox/issues/374>`_)
+ specify that "setup.cfg" tox configuration needs to be inside
the "tox:tox" namespace - by :user:`gaborbernat` (`#545
<https://github.com/tox-dev/tox/issues/545>`_)
OBS-URL: https://build.opensuse.org/request/show/642677
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=44
- update to 2.3.1:
* fix issue294: re-allow cross-section substitution for setenv.
* DEPRECATE use of "indexservers" in tox.ini. It complicates
the internal code and it is recommended to rather use the
devpi system for managing indexes for pip.
* fix issue285: make setenv processing fully lazy to fix regressions
of tox-2.2.X and so that we can now have testenv attributes like
"basepython" depend on environment variables that are set in
a setenv section. Thanks Nelfin for some tests and initial
work on a PR.
* allow "#" in commands. This is slightly incompatible with commands
sections that used a comment after a "\" line continuation.
Thanks David Stanek for the PR.
* fix issue289: fix build_sphinx target, thanks Barry Warsaw.
* fix issue252: allow environment names with special characters.
Thanks Julien Castets for initial PR and patience.
* introduce experimental tox_testenv_create(venv, action) and
tox_testenv_install_deps(venv, action) hooks to allow
plugins to do additional work on creation or installing
deps. These hooks are experimental mainly because of
the involved "venv" and session objects whose current public
API is not fully guranteed.
* internal: push some optional object creation into tests because
tox core doesn't need it.
* fix bug where {envdir} substitution could not be used in setenv
if that env value is then used in {basepython}. Thanks Florian Bruhin.
* fix issue265 and add LD_LIBRARY_PATH to passenv on linux by default
because otherwise the python interpreter might not start up in
certain configurations (redhat software collections). Thanks David Riddle.
* fix issue246: fix regression in config parsing by reordering
OBS-URL: https://build.opensuse.org/request/show/358395
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=25
- Update to version 1.7.2:
* fix issue150: parse {posargs} more like we used to do it pre
1.7.0.
* fix issue59: add a config variable skip-missing-interpreters as
well as command line option --skip-missing-interpreters
* fix issue164: better traceback info in case of failing test commands
* support optional env variable substitution.
* limit python hashseed to 1024 on Windows to prevent possible
memory errors.
OBS-URL: https://build.opensuse.org/request/show/246192
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=19
- fix issue162: don't list python 2.5 as compatibiliy/supported
- fix issue158 and fix issue155: windows/virtualenv properly works now:
call virtualenv through "python -m virtualenv" with the same
interpreter which invoked tox. Thanks Chris Withers, Ionel Maries Cristian.
- Add tox-disable-env-tests.patch: Disable tests that need network-access
and that depend on /usr/bin/tox (which is only added via u-a in %post)
- Remove tox-disable-network-accessing-tests.patch: Obsoleted by the above patch
- Implement update-alternatives to allow parallel installation with python3-tox
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=16
+ fix issue119: {envsitepackagesdir} is now correctly computed and has
a better test to prevent regression.
+ fix issue116: make 1.6 introduced behaviour of changing to a
per-env HOME directory during install activities dependent
on "--set-home" for now. Should re-establish the old behaviour
when no option is given.
+ fix issue118: correctly have two tests use realpath(). Thanks Barry
Warsaw.
+ fix test runs on environments without a home directory
(in this case we use toxinidir as the homedir)
+ fix issue117: python2.5 fix: don't use ``--insecure`` option because
its very existence depends on presence of "ssl". If you
want to support python2.5/pip1.3.1 based test environments you need
to install ssl and/or use PIP_INSECURE=1 through ``setenv``. section.
+ fix issue102: change to {toxinidir} when installing dependencies.
this allows to use relative path like in "-rrequirements.txt".
- Changes from version 1.6.0:
+ fix issue35: add new EXPERIMENTAL "install_command" testenv-option to
configure the installation command with options for dep/pkg install.
Thanks Carl Meyer for the PR and docs.
+ fix issue91: python2.5 support by vendoring the virtualenv-1.9.1
script and forcing pip<1.4. Also the default [py25] environment
modifies the default installer_command (new config option)
to use pip without the "--pre" option which was introduced
with pip-1.4 and is now required if you want to install non-stable
releases. (tox defaults to install with "--pre" everywhere).
+ during installation of dependencies HOME is now set to a pseudo
location ({envtmpdir}/pseudo-home). If an index url was specified
a .pydistutils.cfg file will be written with an index_url setting
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=13
- update to 1.5.0:
- fix issue104: use setuptools by default, instead of distribute,
now that setuptools has distribute merged.
- make sure test commands are searched first in the virtualenv
- re-fix issue2 - add whitelist_externals to be used in ``[testenv*]``
sections, allowing to avoid warnings for commands such as ``make``,
used from the commands value.
- fix issue97 - allow substitutions to reference from other sections
(thanks Krisztian Fekete)
- fix issue92 - fix {envsitepackagesdir} to actually work again
- show (test) command that is being executed, thanks
Lukasz Balcerzak
- re-license tox to MIT license
- depend on virtualenv-1.9.1
- rename README.txt to README.rst to make bitbucket happier
OBS-URL: https://build.opensuse.org/request/show/180860
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=11
+ fix some tests which fail if /tmp is a symlink to some other place
+ "python setup.py test" now runs tox tests via tox :)
also added an example on how to do it for your project.
- Changes from version 1.4.1:
+ fix issue41 better quoting on windows - you can now use "<" and ">" in
deps specifications, thanks Chris Withers for reporting
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=6
+ fix issue26 - no warnings on absolute or relative specified paths for commands
+ fix issue33 - commentchars are ignored in key-value settings allowing
for specifying commands like: python -c "import sys ; print sys"
which would formerly raise irritating errors because the ";"
was considered a comment
+ tweak and improve reporting
+ refactor reporting and virtualenv manipulation
to be more accessible from 3rd party tools
+ support value substitution from other sections
with the {[section]key} syntax
+ fix issue29 - correctly point to pytest explanation
for importing modules fully qualified
+ fix issue32 - use --system-site-packages and don't pass --no-site-packages
+ add python3.3 to the default env list, so early adopters can test
+ drop python2.4 support (you can still have your tests run on
python-2.4, just tox itself requires 2.5 or higher.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=4