Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-tox for openSUSE:Factory checked in at 2023-10-05 20:05:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tox (Old) and /work/SRC/openSUSE:Factory/.python-tox.new.28202 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tox" Thu Oct 5 20:05:13 2023 rev:51 rq:1115808 version:4.11.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tox/python-tox.changes 2023-09-10 13:10:34.999311266 +0200 +++ /work/SRC/openSUSE:Factory/.python-tox.new.28202/python-tox.changes 2023-10-05 20:06:36.078187323 +0200 @@ -1,0 +2,11 @@ +Thu Oct 5 11:35:43 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 4.11.3: + * docs(plugin): explain plugin registration + * Fix error caused by a bad `base_python` path + * Fix typos discovered by codespell + * Providing example to make CLI help more helpful for -x,-- + override + * Remove stray colons in `config.rst` left over from #3111 + +------------------------------------------------------------------- Old: ---- tox-4.11.1.tar.gz New: ---- tox-4.11.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tox.spec ++++++ --- /var/tmp/diff_new_pack.l5RY7e/_old 2023-10-05 20:06:37.942254666 +0200 +++ /var/tmp/diff_new_pack.l5RY7e/_new 2023-10-05 20:06:37.946254810 +0200 @@ -23,7 +23,7 @@ %bcond_with devpi_process %endif Name: python-tox -Version: 4.11.1 +Version: 4.11.3 Release: 0 Summary: Virtualenv-based automation of test activities License: MIT ++++++ tox-4.11.1.tar.gz -> tox-4.11.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tox-4.11.1/PKG-INFO new/tox-4.11.3/PKG-INFO --- old/tox-4.11.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 +++ new/tox-4.11.3/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tox -Version: 4.11.1 +Version: 4.11.3 Summary: tox is a generic virtualenv management and test command line tool Project-URL: Documentation, https://tox.wiki Project-URL: Homepage, http://tox.readthedocs.org diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tox-4.11.1/src/tox/config/loader/api.py new/tox-4.11.3/src/tox/config/loader/api.py --- old/tox-4.11.1/src/tox/config/loader/api.py 2020-02-02 01:00:00.000000000 +0100 +++ new/tox-4.11.3/src/tox/config/loader/api.py 2020-02-02 01:00:00.000000000 +0100 @@ -177,14 +177,15 @@ @impl def tox_add_option(parser: ToxParser) -> None: + override_short_option = "-x" parser.add_argument( - "-x", + override_short_option, "--override", action="append", type=Override, default=[], dest="override", - help="configuration override(s)", + help=f"configuration override(s), e.g., {override_short_option} testenv:pypy3.ignore_errors=True", ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tox-4.11.1/src/tox/plugin/__init__.py new/tox-4.11.3/src/tox/plugin/__init__.py --- old/tox-4.11.1/src/tox/plugin/__init__.py 2020-02-02 01:00:00.000000000 +0100 +++ new/tox-4.11.3/src/tox/plugin/__init__.py 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,19 @@ """ -tox uses `pluggy <https://pluggy.readthedocs.io/en/stable/>`_ to customize the default behaviour. For example the -following code snippet would define a new ``--magic`` command line interface flag the user can specify: +tox uses `pluggy <https://pluggy.readthedocs.io/en/stable/>`_ to customize the default behaviour. It provides an +extension mechanism for plugin management an calling hooks. + +Pluggy discovers a plugin by looking up for entry-points named ``tox``, for example in a pyproject.toml: + +.. code-block:: toml + + [project.entry-points.tox] + your_plugin = "your_plugin.hooks" + +Therefore, to start using a plugin, you solely need to install it in the same environment tox is running in and it will +be discovered via the defined entry-point (in the example above, tox will load ``your_plugin.hooks``). + +A plugin is created by implementing extension points in the form of hooks. For example the following code snippet would +define a new ``--magic`` command line interface flag the user can specify: .. code-block:: python diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tox-4.11.1/src/tox/tox_env/python/api.py new/tox-4.11.3/src/tox/tox_env/python/api.py --- old/tox-4.11.1/src/tox/tox_env/python/api.py 2020-02-02 01:00:00.000000000 +0100 +++ new/tox-4.11.3/src/tox/tox_env/python/api.py 2020-02-02 01:00:00.000000000 +0100 @@ -50,7 +50,7 @@ PY_FACTORS_RE = re.compile( r""" ^(?!py$) # don't match 'py' as it doesn't provide any info - (?P<impl>py|pypy|cpython|jython|rustpython|ironpython) # the interpeter; most users will simply use 'py' + (?P<impl>py|pypy|cpython|jython|rustpython|ironpython) # the interpreter; most users will simply use 'py' (?P<version>[2-9]\.?[0-9]?[0-9]?)?$ # the version; one of: MAJORMINOR, MAJOR.MINOR """, re.VERBOSE, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tox-4.11.1/src/tox/tox_env/python/pip/pip_install.py new/tox-4.11.3/src/tox/tox_env/python/pip/pip_install.py --- old/tox-4.11.1/src/tox/tox_env/python/pip/pip_install.py 2020-02-02 01:00:00.000000000 +0100 +++ new/tox-4.11.3/src/tox/tox_env/python/pip/pip_install.py 2020-02-02 01:00:00.000000000 +0100 @@ -58,7 +58,7 @@ keys=["list_dependencies_command"], of_type=Command, default=Command(["python", "-m", "pip", "freeze", "--all"]), - desc="command used to list isntalled packages", + desc="command used to list installed packages", ) def default_install_command(self, conf: Config, env_name: str | None) -> Command: # noqa: ARG002 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tox-4.11.1/src/tox/tox_env/python/virtual_env/api.py new/tox-4.11.3/src/tox/tox_env/python/virtual_env/api.py --- old/tox-4.11.1/src/tox/tox_env/python/virtual_env/api.py 2020-02-02 01:00:00.000000000 +0100 +++ new/tox-4.11.3/src/tox/tox_env/python/virtual_env/api.py 2020-02-02 01:00:00.000000000 +0100 @@ -132,7 +132,7 @@ # the base pythons are injected into the virtualenv_env_vars, so we don't need to use it here try: interpreter = self.creator.interpreter - except RuntimeError: # if can't find + except (FileNotFoundError, RuntimeError): # Unable to find the interpreter return None return PythonInfo( implementation=interpreter.implementation, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tox-4.11.1/src/tox/version.py new/tox-4.11.3/src/tox/version.py --- old/tox-4.11.1/src/tox/version.py 2020-02-02 01:00:00.000000000 +0100 +++ new/tox-4.11.3/src/tox/version.py 2020-02-02 01:00:00.000000000 +0100 @@ -1,4 +1,4 @@ # file generated by setuptools_scm # don't change, don't track in version control -__version__ = version = '4.11.1' -__version_tuple__ = version_tuple = (4, 11, 1) +__version__ = version = '4.11.3' +__version_tuple__ = version_tuple = (4, 11, 3) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tox-4.11.1/tests/tox_env/python/test_python_api.py new/tox-4.11.3/tests/tox_env/python/test_python_api.py --- old/tox-4.11.1/tests/tox_env/python/test_python_api.py 2020-02-02 01:00:00.000000000 +0100 +++ new/tox-4.11.3/tests/tox_env/python/test_python_api.py 2020-02-02 01:00:00.000000000 +0100 @@ -277,3 +277,10 @@ assert "pip==" in result.out else: assert "pip==" not in result.out + + +def test_usedevelop_with_nonexistent_basepython(tox_project: ToxProjectCreator) -> None: + ini = "[testenv]\nusedevelop = true\n[testenv:unused]\nbasepython = /nonexistent/bin/python" + project = tox_project({"tox.ini": ini}) + result = project.run() + assert result.code == 0