Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-argcomplete for openSUSE:Factory checked in at 2023-11-13 22:16:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-argcomplete (Old) and /work/SRC/openSUSE:Factory/.python-argcomplete.new.17445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-argcomplete" Mon Nov 13 22:16:12 2023 rev:29 rq:1124879 version:3.1.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-argcomplete/python-argcomplete.changes 2023-10-24 20:08:05.619949678 +0200 +++ /work/SRC/openSUSE:Factory/.python-argcomplete.new.17445/python-argcomplete.changes 2023-11-13 22:16:39.098181944 +0100 @@ -1,0 +2,10 @@ +Fri Nov 10 12:26:40 UTC 2023 - Dirk Müller <[email protected]> + +- update to 3.1.4: + * Call \_default as a fallback in zsh global completion + * zsh: Allow to use external script (#453) + * Add support for Python 3.12 and drop EOL 3.6 and 3.7 (#449) + * Use homebrew prefix by default + * zsh: Allow to use external script (#453) + +------------------------------------------------------------------- Old: ---- argcomplete-3.1.2.tar.gz New: ---- argcomplete-3.1.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-argcomplete.spec ++++++ --- /var/tmp/diff_new_pack.oo32AH/_old 2023-11-13 22:16:39.710204478 +0100 +++ /var/tmp/diff_new_pack.oo32AH/_new 2023-11-13 22:16:39.710204478 +0100 @@ -19,7 +19,7 @@ %{?sle15_python_module_pythons} Name: python-argcomplete -Version: 3.1.2 +Version: 3.1.4 Release: 0 Summary: Bash tab completion for argparse License: Apache-2.0 ++++++ argcomplete-3.1.2.tar.gz -> argcomplete-3.1.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/.github/workflows/ci.yml new/argcomplete-3.1.4/.github/workflows/ci.yml --- old/argcomplete-3.1.2/.github/workflows/ci.yml 2023-04-22 16:28:37.000000000 +0200 +++ new/argcomplete-3.1.4/.github/workflows/ci.yml 2023-11-01 16:11:23.000000000 +0100 @@ -9,13 +9,14 @@ fail-fast: false matrix: os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: ${{matrix.python-version}} + allow-prereleases: true - name: Install CI dependencies run: | [[ $(uname) == Linux ]] && sudo apt-get install --yes rpm tcsh fish zsh diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/Changes.rst new/argcomplete-3.1.4/Changes.rst --- old/argcomplete-3.1.2/Changes.rst 2023-09-16 22:39:53.000000000 +0200 +++ new/argcomplete-3.1.4/Changes.rst 2023-11-02 06:13:25.000000000 +0100 @@ -1,3 +1,26 @@ +Changes for v3.1.4 (2023-11-01) +=============================== + +- Call \_default as a fallback in zsh global completion + +Changes for v3.1.3 (2023-11-01) +=============================== + +- Use homebrew prefix by default + +- zsh: Allow to use external script (#453) + +- Add support for Python 3.12 and drop EOL 3.6 and 3.7 (#449) + +Changes for v3.1.3 (2023-11-01) +=============================== + +- Use homebrew prefix by default + +- zsh: Allow to use external script (#453) + +- Add support for Python 3.12 and drop EOL 3.6 and 3.7 (#449) + Changes for v3.1.2 (2023-09-16) =============================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/PKG-INFO new/argcomplete-3.1.4/PKG-INFO --- old/argcomplete-3.1.2/PKG-INFO 2023-09-16 22:40:16.462625300 +0200 +++ new/argcomplete-3.1.4/PKG-INFO 2023-11-02 06:13:39.650710300 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: argcomplete -Version: 3.1.2 +Version: 3.1.4 Summary: Bash tab completion for argparse Home-page: https://github.com/kislyuk/argcomplete Author: Andrey Kislyuk @@ -24,6 +24,7 @@ Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Development Status :: 5 - Production/Stable @@ -31,11 +32,10 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Topic :: System :: Shells Classifier: Topic :: Terminals -Requires-Python: >=3.6 +Requires-Python: >=3.8 Description-Content-Type: text/x-rst License-File: LICENSE.rst License-File: NOTICE -Requires-Dist: importlib-metadata<7,>=0.23; python_version < "3.8" Provides-Extra: test Requires-Dist: coverage; extra == "test" Requires-Dist: pexpect; extra == "test" @@ -264,7 +264,7 @@ When using bash, global completion requires bash support for ``complete -D``, which was introduced in bash 4.2. Since Mac OS ships with an outdated version of Bash (3.2), you can either use zsh or install a newer version of bash using - `Homebrew <http://brew.sh/>`_ (``brew install bash`` - you will also need to add ``/usr/local/bin/bash`` to + `Homebrew <http://brew.sh/>`_ (``brew install bash`` - you will also need to add ``/opt/homebrew/bin/bash`` to ``/etc/shells``, and run ``chsh`` to change your shell). You can check the version of the running copy of bash with ``echo $BASH_VERSION``. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/README.rst new/argcomplete-3.1.4/README.rst --- old/argcomplete-3.1.2/README.rst 2023-09-16 22:39:01.000000000 +0200 +++ new/argcomplete-3.1.4/README.rst 2023-11-01 16:21:48.000000000 +0100 @@ -219,7 +219,7 @@ When using bash, global completion requires bash support for ``complete -D``, which was introduced in bash 4.2. Since Mac OS ships with an outdated version of Bash (3.2), you can either use zsh or install a newer version of bash using - `Homebrew <http://brew.sh/>`_ (``brew install bash`` - you will also need to add ``/usr/local/bin/bash`` to + `Homebrew <http://brew.sh/>`_ (``brew install bash`` - you will also need to add ``/opt/homebrew/bin/bash`` to ``/etc/shells``, and run ``chsh`` to change your shell). You can check the version of the running copy of bash with ``echo $BASH_VERSION``. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/argcomplete/_check_console_script.py new/argcomplete-3.1.4/argcomplete/_check_console_script.py --- old/argcomplete-3.1.2/argcomplete/_check_console_script.py 2023-09-16 22:39:01.000000000 +0200 +++ new/argcomplete-3.1.4/argcomplete/_check_console_script.py 2023-11-01 16:11:23.000000000 +0100 @@ -14,14 +14,8 @@ import os import sys -try: - from importlib.metadata import entry_points as importlib_entry_points - from importlib.metadata import EntryPoint - use_entry_points_backport = False -except ImportError: - from importlib_metadata import entry_points as importlib_entry_points # type:ignore - from importlib_metadata import EntryPoint # type:ignore - use_entry_points_backport = True +from importlib.metadata import entry_points as importlib_entry_points +from importlib.metadata import EntryPoint from ._check_module import ArgcompleteMarkerNotFound, find from typing import Iterable @@ -37,10 +31,9 @@ entry_points : Iterable[EntryPoint] = importlib_entry_points() # type:ignore - # The importlib_metadata backport returns a tuple of entry point objects - # whereas the official library returns a SelectableGroups object - # Python 3.12+ behaves like the importlib_metadata backport - if not use_entry_points_backport and sys.version_info < (3, 12): + # Python 3.12+ returns a tuple of entry point objects + # whereas <=3.11 returns a SelectableGroups object + if sys.version_info < (3, 12): entry_points = entry_points["console_scripts"] # type:ignore entry_points = [ep for ep in entry_points \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/argcomplete/_check_module.py new/argcomplete-3.1.4/argcomplete/_check_module.py --- old/argcomplete-3.1.2/argcomplete/_check_module.py 2023-03-18 20:32:22.000000000 +0100 +++ new/argcomplete-3.1.4/argcomplete/_check_module.py 2023-11-01 16:11:23.000000000 +0100 @@ -15,7 +15,7 @@ except ImportError: import typing as t from collections import namedtuple - from imp import find_module + from imp import find_module # type:ignore ModuleSpec = namedtuple("ModuleSpec", ["origin", "has_location", "submodule_search_locations"]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/argcomplete/bash_completion.d/_python-argcomplete new/argcomplete-3.1.4/argcomplete/bash_completion.d/_python-argcomplete --- old/argcomplete-3.1.2/argcomplete/bash_completion.d/_python-argcomplete 2023-07-10 01:31:25.000000000 +0200 +++ new/argcomplete-3.1.4/argcomplete/bash_completion.d/_python-argcomplete 2023-11-02 06:12:47.000000000 +0100 @@ -138,8 +138,10 @@ req_argv=( "" "${COMP_WORDS[@]:1}" ) __python_argcomplete_expand_tilde_by_ref executable else - # TODO: check if we should call _default or use a different condition here if [[ "$service" != "-default-" ]]; then + # TODO: this may not be sufficient - see https://zsh.sourceforge.io/Doc/Release/Completion-System.html + # May need to call _complete with avoid-completer=_python-argcomplete or something like that + _default return fi executable="${words[1]}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/argcomplete/shell_integration.py new/argcomplete-3.1.4/argcomplete/shell_integration.py --- old/argcomplete-3.1.2/argcomplete/shell_integration.py 2023-09-16 22:39:01.000000000 +0200 +++ new/argcomplete-3.1.4/argcomplete/shell_integration.py 2023-11-01 16:11:23.000000000 +0100 @@ -32,6 +32,7 @@ _python_argcomplete%(function_suffix)s() { local IFS=$'\013' + local script="%(argcomplete_script)s" if [[ -n "${ZSH_VERSION-}" ]]; then local completions completions=($(IFS="$IFS" \ @@ -40,7 +41,7 @@ _ARGCOMPLETE=1 \ _ARGCOMPLETE_SHELL="zsh" \ _ARGCOMPLETE_SUPPRESS_SPACE=1 \ - __python_argcomplete_run "${words[1]}") ) + __python_argcomplete_run ${script:-${words[1]}})) _describe "${words[1]}" completions -o nosort else local SUPPRESS_SPACE=0 @@ -55,7 +56,7 @@ _ARGCOMPLETE=1 \ _ARGCOMPLETE_SHELL="bash" \ _ARGCOMPLETE_SUPPRESS_SPACE=$SUPPRESS_SPACE \ - __python_argcomplete_run "%(argcomplete_script)s")) + __python_argcomplete_run ${script:-$1})) if [[ $? != 0 ]]; then unset COMPREPLY elif [[ $SUPPRESS_SPACE == 1 ]] && [[ "${COMPREPLY-}" =~ [=/:]$ ]]; then @@ -144,7 +145,7 @@ if script: function_suffix = "_" + script else: - script = "$1" + script = "" function_suffix = "" code = bashcode % dict( complete_opts=complete_options, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/argcomplete.egg-info/PKG-INFO new/argcomplete-3.1.4/argcomplete.egg-info/PKG-INFO --- old/argcomplete-3.1.2/argcomplete.egg-info/PKG-INFO 2023-09-16 22:40:16.000000000 +0200 +++ new/argcomplete-3.1.4/argcomplete.egg-info/PKG-INFO 2023-11-02 06:13:39.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: argcomplete -Version: 3.1.2 +Version: 3.1.4 Summary: Bash tab completion for argparse Home-page: https://github.com/kislyuk/argcomplete Author: Andrey Kislyuk @@ -24,6 +24,7 @@ Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Development Status :: 5 - Production/Stable @@ -31,11 +32,10 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Topic :: System :: Shells Classifier: Topic :: Terminals -Requires-Python: >=3.6 +Requires-Python: >=3.8 Description-Content-Type: text/x-rst License-File: LICENSE.rst License-File: NOTICE -Requires-Dist: importlib-metadata<7,>=0.23; python_version < "3.8" Provides-Extra: test Requires-Dist: coverage; extra == "test" Requires-Dist: pexpect; extra == "test" @@ -264,7 +264,7 @@ When using bash, global completion requires bash support for ``complete -D``, which was introduced in bash 4.2. Since Mac OS ships with an outdated version of Bash (3.2), you can either use zsh or install a newer version of bash using - `Homebrew <http://brew.sh/>`_ (``brew install bash`` - you will also need to add ``/usr/local/bin/bash`` to + `Homebrew <http://brew.sh/>`_ (``brew install bash`` - you will also need to add ``/opt/homebrew/bin/bash`` to ``/etc/shells``, and run ``chsh`` to change your shell). You can check the version of the running copy of bash with ``echo $BASH_VERSION``. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/argcomplete.egg-info/SOURCES.txt new/argcomplete-3.1.4/argcomplete.egg-info/SOURCES.txt --- old/argcomplete-3.1.2/argcomplete.egg-info/SOURCES.txt 2023-09-16 22:40:16.000000000 +0200 +++ new/argcomplete-3.1.4/argcomplete.egg-info/SOURCES.txt 2023-11-02 06:13:39.000000000 +0100 @@ -44,11 +44,9 @@ scripts/python-argcomplete-check-easy-install-script scripts/register-python-argcomplete test/__init__.py -test/__init__.pyc test/inputrc test/prog test/test.py -test/test.pyc test/test_contrib_shells.py test/test_package/__init__.py test/test_package/setup.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/argcomplete.egg-info/requires.txt new/argcomplete-3.1.4/argcomplete.egg-info/requires.txt --- old/argcomplete-3.1.2/argcomplete.egg-info/requires.txt 2023-09-16 22:40:16.000000000 +0200 +++ new/argcomplete-3.1.4/argcomplete.egg-info/requires.txt 2023-11-02 06:13:39.000000000 +0100 @@ -1,7 +1,4 @@ -[:python_version < "3.8"] -importlib-metadata<7,>=0.23 - [test] coverage pexpect diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/common.mk new/argcomplete-3.1.4/common.mk --- old/argcomplete-3.1.2/common.mk 2023-06-10 22:45:18.000000000 +0200 +++ new/argcomplete-3.1.4/common.mk 2023-11-01 16:27:07.000000000 +0100 @@ -28,7 +28,7 @@ if [[ -f Changes.md ]]; then cat $$TAG_MSG <(echo) Changes.md | sponge Changes.md; git add Changes.md; fi; \ if [[ -f Changes.rst ]]; then cat <(pandoc --from markdown --to rst $$TAG_MSG) <(echo) Changes.rst | sponge Changes.rst; git add Changes.rst; fi; \ git commit -m ${TAG}; \ - git tag --sign --annotate --file $$TAG_MSG ${TAG} + git tag --annotate --file $$TAG_MSG ${TAG} git push --follow-tags $(MAKE) install gh release create ${TAG} dist/*.whl --notes="$$(git tag --list ${TAG} -n99 | perl -pe 's/^\S+\s*// if $$. == 1' | sed 's/^\s\s\s\s//')" @@ -37,7 +37,7 @@ release-pypi: python -m build - twine upload dist/*.tar.gz dist/*.whl --sign --verbose + twine upload dist/*.tar.gz dist/*.whl --verbose release-docs: $(MAKE) docs diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/pyproject.toml new/argcomplete-3.1.4/pyproject.toml --- old/argcomplete-3.1.2/pyproject.toml 2023-07-10 01:31:25.000000000 +0200 +++ new/argcomplete-3.1.4/pyproject.toml 2023-11-01 16:11:23.000000000 +0100 @@ -6,7 +6,7 @@ name = "argcomplete" description = "Bash tab completion for argparse" readme = "README.rst" -requires-python = ">=3.6" +requires-python = ">=3.8" license = { text = "Apache Software License" } authors = [{ name = "Andrey Kislyuk"}, {email = "[email protected]" }] maintainers = [] @@ -24,6 +24,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Development Status :: 5 - Production/Stable", @@ -32,7 +33,6 @@ "Topic :: System :: Shells", "Topic :: Terminals", ] -dependencies = ["importlib-metadata >= 0.23, < 7; python_version < '3.8'"] [project.optional-dependencies] test = ["coverage", "pexpect", "wheel", "ruff", "mypy"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/scripts/activate-global-python-argcomplete new/argcomplete-3.1.4/scripts/activate-global-python-argcomplete --- old/argcomplete-3.1.2/scripts/activate-global-python-argcomplete 2023-06-10 22:45:18.000000000 +0200 +++ new/argcomplete-3.1.4/scripts/activate-global-python-argcomplete 2023-11-01 16:23:26.000000000 +0100 @@ -13,6 +13,7 @@ import shutil import site import sys +import subprocess import argcomplete @@ -29,15 +30,22 @@ """ +def get_local_dir(): + try: + return subprocess.check_output(["brew", "--prefix"]).decode().strip() + except (FileNotFoundError, subprocess.CalledProcessError): + return "/usr/local" + + def get_zsh_system_dir(): - return "/usr/local/share/zsh/site-functions" + return f"{get_local_dir()}/share/zsh/site-functions" def get_bash_system_dir(): if "BASH_COMPLETION_COMPAT_DIR" in os.environ: return os.environ["BASH_COMPLETION_COMPAT_DIR"] elif sys.platform == "darwin": - return "/usr/local/etc/bash_completion.d" # created by homebrew + return f"{get_local_dir()}/etc/bash_completion.d" # created by homebrew else: return "/etc/bash_completion.d" # created by bash-completion @@ -117,8 +125,7 @@ destinations.append(args.dest) elif site.ENABLE_USER_SITE and site.USER_SITE in argcomplete.__file__: print( - "Argcomplete was installed in the user site local directory. Defaulting to user installation.", - file=sys.stderr + "Argcomplete was installed in the user site local directory. Defaulting to user installation.", file=sys.stderr ) link_user_rcfiles() elif sys.prefix != sys.base_prefix: Binary files old/argcomplete-3.1.2/test/__init__.pyc and new/argcomplete-3.1.4/test/__init__.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-3.1.2/test/test.py new/argcomplete-3.1.4/test/test.py --- old/argcomplete-3.1.2/test/test.py 2023-05-07 00:57:27.000000000 +0200 +++ new/argcomplete-3.1.4/test/test.py 2023-11-01 16:11:23.000000000 +0100 @@ -1370,25 +1370,21 @@ self.assertEqual(self.sh.run_command(command), "arg\r\n") @unittest.skipIf(os.uname()[0] == "Darwin", "Skip test that fails on MacOS") - @unittest.skipIf(sys.version_info < (3, 8), "Skip test that fails on Python 3.7 with importlib_metadata > 4") def test_console_script_module(self): """Test completing a console_script for a module.""" self._test_console_script() @unittest.skipIf(os.uname()[0] == "Darwin", "Skip test that fails on MacOS") - @unittest.skipIf(sys.version_info < (3, 8), "Skip test that fails on Python 3.7 with importlib_metadata > 4") def test_console_script_package(self): """Test completing a console_script for a package.""" self._test_console_script(package=True) @unittest.skipIf(os.uname()[0] == "Darwin", "Skip test that fails on MacOS") - @unittest.skipIf(sys.version_info < (3, 8), "Skip test that fails on Python 3.7 with importlib_metadata > 4") def test_console_script_module_wheel(self): """Test completing a console_script for a module from a wheel.""" self._test_console_script(wheel=True) @unittest.skipIf(os.uname()[0] == "Darwin", "Skip test that fails on MacOS") - @unittest.skipIf(sys.version_info < (3, 8), "Skip test that fails on Python 3.7 with importlib_metadata > 4") def test_console_script_package_wheel(self): """Test completing a console_script for a package from a wheel.""" self._test_console_script(package=True, wheel=True) Binary files old/argcomplete-3.1.2/test/test.pyc and new/argcomplete-3.1.4/test/test.pyc differ
