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 2021-06-06 22:40:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-argcomplete (Old) and /work/SRC/openSUSE:Factory/.python-argcomplete.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-argcomplete" Sun Jun 6 22:40:55 2021 rev:18 rq:897830 version:1.12.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-argcomplete/python-argcomplete.changes 2020-12-21 10:26:53.360216062 +0100 +++ /work/SRC/openSUSE:Factory/.python-argcomplete.new.1898/python-argcomplete.changes 2021-06-06 22:40:57.839431850 +0200 @@ -1,0 +2,10 @@ +Sun Jun 6 11:43:24 UTC 2021 - Dirk M??ller <[email protected]> + +- update to 1.12.3: + * Update importlib-metadata version pin + * Display script debug output in tcsh + * Fish support improvements + * Print ``warn()`` message from beginning of line + * Test infrastructure improvements + +------------------------------------------------------------------- Old: ---- argcomplete-1.12.2.tar.gz New: ---- argcomplete-1.12.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-argcomplete.spec ++++++ --- /var/tmp/diff_new_pack.uCC6Ub/_old 2021-06-06 22:40:58.419432986 +0200 +++ /var/tmp/diff_new_pack.uCC6Ub/_new 2021-06-06 22:40:58.419432986 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-argcomplete # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2013 Darin Perusich. # # All modifications and additions to the file contributed by third parties @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-argcomplete -Version: 1.12.2 +Version: 1.12.3 Release: 0 Summary: Bash tab completion for argparse License: Apache-2.0 @@ -37,7 +37,7 @@ BuildRequires: python-rpm-macros Requires: python-importlib-metadata >= 0.23 Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch %python_subpackages ++++++ argcomplete-1.12.2.tar.gz -> argcomplete-1.12.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/.github/FUNDING.yml new/argcomplete-1.12.3/.github/FUNDING.yml --- old/argcomplete-1.12.2/.github/FUNDING.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/argcomplete-1.12.3/.github/FUNDING.yml 2019-12-20 17:21:43.000000000 +0100 @@ -0,0 +1 @@ +github: [kislyuk] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/.github/workflows/pythonpackage.yml new/argcomplete-1.12.3/.github/workflows/pythonpackage.yml --- old/argcomplete-1.12.2/.github/workflows/pythonpackage.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/argcomplete-1.12.3/.github/workflows/pythonpackage.yml 2020-12-19 00:12:47.000000000 +0100 @@ -0,0 +1,27 @@ +name: Python package + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{matrix.os}} + strategy: + matrix: + os: [ubuntu-20.04, macos-10.15] + python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{matrix.python-version}} + uses: actions/setup-python@v1 + with: + python-version: ${{matrix.python-version}} + - name: Install + run: | + [[ $(uname) == Linux ]] && sudo apt-get install --yes rpm tcsh fish + [[ $(uname) == Darwin ]] && brew install bash rpm tcsh fish + python -m pip install --quiet --upgrade codecov + - name: Test + run: | + make test + - uses: codecov/codecov-action@v1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/.gitignore new/argcomplete-1.12.3/.gitignore --- old/argcomplete-1.12.2/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/argcomplete-1.12.3/.gitignore 2019-12-22 22:04:09.000000000 +0100 @@ -0,0 +1,30 @@ +# Reminder: +# - A leading slash means the pattern is anchored at the root. +# - No leading slash means the pattern matches at any depth. + +# Python files +*.pyc +__pycache__/ +.tox/ +*.egg-info/ +/build/ +/dist/ +/.eggs/ +.coverage + +# IDE project files +/.pydevproject + +# vim python-mode plugin +/.ropeproject + +# IntelliJ IDEA / PyCharm project files +/.idea +/*.iml + +# JS/node/npm/web dev files +node_modules +npm-debug.log + +# OS X metadata files +.DS_Store diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/Changes.rst new/argcomplete-1.12.3/Changes.rst --- old/argcomplete-1.12.2/Changes.rst 2020-11-24 05:10:32.000000000 +0100 +++ new/argcomplete-1.12.3/Changes.rst 2021-04-19 17:46:15.000000000 +0200 @@ -1,3 +1,16 @@ +Changes for v1.12.3 (2021-04-19) +================================ + +- Update importlib-metadata version pin (#345) + +- Display script debug output in tcsh (#342) + +- Fish support improvements (#338, #339) + +- Print ``warn()`` message from beginning of line (#335) + +- Test infrastructure improvements + Changes for v1.12.2 (2020-11-23) ================================ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/Makefile new/argcomplete-1.12.3/Makefile --- old/argcomplete-1.12.2/Makefile 1970-01-01 01:00:00.000000000 +0100 +++ new/argcomplete-1.12.3/Makefile 2020-07-12 20:15:48.000000000 +0200 @@ -0,0 +1,28 @@ +test_deps: + python -m pip install .[test] + +lint: test_deps + ./setup.py flake8 + for script in scripts/*; do if grep -q python $$script; then flake8 $$script; fi; done + +test: lint test_deps + coverage run --source=argcomplete --omit=argcomplete/my_shlex.py ./test/test.py -v + +init_docs: + cd docs; sphinx-quickstart + +docs: + sphinx-build docs docs/html + +install: clean + pip install wheel + python setup.py bdist_wheel + pip install --upgrade dist/*.whl + +clean: + -rm -rf build dist + -rm -rf *.egg-info + +.PHONY: test test_deps docs install clean lint lint_deps + +include common.mk diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/PKG-INFO new/argcomplete-1.12.3/PKG-INFO --- old/argcomplete-1.12.2/PKG-INFO 2020-11-24 05:10:45.000000000 +0100 +++ new/argcomplete-1.12.3/PKG-INFO 2021-04-19 17:48:16.519461400 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: argcomplete -Version: 1.12.2 +Version: 1.12.3 Summary: Bash tab completion for argparse Home-page: https://github.com/kislyuk/argcomplete Author: Andrey Kislyuk @@ -29,7 +29,7 @@ ------------ :: - pip install argcomplete + pip3 install argcomplete activate-global-python-argcomplete See `Activating global completion`_ below for details about the second step (or if it reports an error). @@ -292,7 +292,7 @@ or create new completion file, e.g:: - register-python-argcomplete --shell fish ~/.config/fish/completions/my-awesome-script.fish + register-python-argcomplete --shell fish my-awesome-script > ~/.config/fish/completions/my-awesome-script.fish Completion Description For Fish ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/README.rst new/argcomplete-1.12.3/README.rst --- old/argcomplete-1.12.2/README.rst 2020-11-24 05:09:16.000000000 +0100 +++ new/argcomplete-1.12.3/README.rst 2021-04-19 17:44:33.000000000 +0200 @@ -17,7 +17,7 @@ ------------ :: - pip install argcomplete + pip3 install argcomplete activate-global-python-argcomplete See `Activating global completion`_ below for details about the second step (or if it reports an error). @@ -280,7 +280,7 @@ or create new completion file, e.g:: - register-python-argcomplete --shell fish ~/.config/fish/completions/my-awesome-script.fish + register-python-argcomplete --shell fish my-awesome-script > ~/.config/fish/completions/my-awesome-script.fish Completion Description For Fish ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/argcomplete/__init__.py new/argcomplete-1.12.3/argcomplete/__init__.py --- old/argcomplete-1.12.2/argcomplete/__init__.py 2020-07-12 20:14:04.000000000 +0200 +++ new/argcomplete-1.12.3/argcomplete/__init__.py 2020-12-17 01:18:32.000000000 +0100 @@ -681,4 +681,7 @@ Prints **args** to standard error when running completions. This will interrupt the user's command line interaction; use it to indicate an error condition that is preventing your completer from working. """ - print("\n", file=debug_stream, *args) + # Don't be tempted to use `print("\n",..., *args)`, + # as that will indent **args** by one space character + print(file=debug_stream) + print(file=debug_stream, *args) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/argcomplete/shell_integration.py new/argcomplete-1.12.3/argcomplete/shell_integration.py --- old/argcomplete-1.12.2/argcomplete/shell_integration.py 2020-09-27 06:24:26.000000000 +0200 +++ new/argcomplete-1.12.3/argcomplete/shell_integration.py 2021-04-19 17:44:33.000000000 +0200 @@ -68,9 +68,9 @@ set -x COMP_POINT (string length (commandline -cp)) set -x COMP_TYPE if set -q _ARC_DEBUG - %(argcomplete_script)s 8>&1 9>&2 1>/dev/null 2>&1 - else %(argcomplete_script)s 8>&1 9>&2 1>&9 2>&1 + else + %(argcomplete_script)s 8>&1 9>&2 1>/dev/null 2>&1 end end complete -c %(executable)s -f -a '(__fish_%(executable)s_complete)' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/argcomplete.egg-info/PKG-INFO new/argcomplete-1.12.3/argcomplete.egg-info/PKG-INFO --- old/argcomplete-1.12.2/argcomplete.egg-info/PKG-INFO 2020-11-24 05:10:45.000000000 +0100 +++ new/argcomplete-1.12.3/argcomplete.egg-info/PKG-INFO 2021-04-19 17:48:16.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: argcomplete -Version: 1.12.2 +Version: 1.12.3 Summary: Bash tab completion for argparse Home-page: https://github.com/kislyuk/argcomplete Author: Andrey Kislyuk @@ -29,7 +29,7 @@ ------------ :: - pip install argcomplete + pip3 install argcomplete activate-global-python-argcomplete See `Activating global completion`_ below for details about the second step (or if it reports an error). @@ -292,7 +292,7 @@ or create new completion file, e.g:: - register-python-argcomplete --shell fish ~/.config/fish/completions/my-awesome-script.fish + register-python-argcomplete --shell fish my-awesome-script > ~/.config/fish/completions/my-awesome-script.fish Completion Description For Fish ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/argcomplete.egg-info/SOURCES.txt new/argcomplete-1.12.3/argcomplete.egg-info/SOURCES.txt --- old/argcomplete-1.12.2/argcomplete.egg-info/SOURCES.txt 2020-11-24 05:10:45.000000000 +0100 +++ new/argcomplete-1.12.3/argcomplete.egg-info/SOURCES.txt 2021-04-19 17:48:16.000000000 +0200 @@ -1,10 +1,16 @@ +.gitignore Authors.rst Changes.rst LICENSE.rst MANIFEST.in +Makefile README.rst +common.mk setup.cfg setup.py +tox.ini +.github/FUNDING.yml +.github/workflows/pythonpackage.yml argcomplete/__init__.py argcomplete/_check_console_script.py argcomplete/_check_module.py @@ -20,6 +26,10 @@ argcomplete.egg-info/requires.txt argcomplete.egg-info/top_level.txt argcomplete/bash_completion.d/python-argcomplete +docs/conf.py +docs/fish_help_string.png +docs/index.rst +docs/examples/describe_github_user.py scripts/activate-global-python-argcomplete scripts/python-argcomplete-check-easy-install-script scripts/python-argcomplete-tcsh diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/argcomplete.egg-info/requires.txt new/argcomplete-1.12.3/argcomplete.egg-info/requires.txt --- old/argcomplete-1.12.2/argcomplete.egg-info/requires.txt 2020-11-24 05:10:45.000000000 +0100 +++ new/argcomplete-1.12.3/argcomplete.egg-info/requires.txt 2021-04-19 17:48:16.000000000 +0200 @@ -1,15 +1,15 @@ [:python_version == "2.7"] -importlib-metadata<4,>=0.23 +importlib-metadata<5,>=0.23 [:python_version == "3.5"] -importlib-metadata<4,>=0.23 +importlib-metadata<5,>=0.23 [:python_version == "3.6"] -importlib-metadata<4,>=0.23 +importlib-metadata<5,>=0.23 [:python_version == "3.7"] -importlib-metadata<4,>=0.23 +importlib-metadata<5,>=0.23 [test] coverage diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/common.mk new/argcomplete-1.12.3/common.mk --- old/argcomplete-1.12.2/common.mk 1970-01-01 01:00:00.000000000 +0100 +++ new/argcomplete-1.12.3/common.mk 2021-04-19 17:48:10.000000000 +0200 @@ -0,0 +1,62 @@ +SHELL=/bin/bash -eo pipefail + +release-major: + $(eval export TAG=$(shell git describe --tags --match 'v*.*.*' | perl -ne '/^v(\d+)\.(\d+)\.(\d+)/; print "v@{[$$1+1]}.0.0"')) + $(MAKE) release + +release-minor: + $(eval export TAG=$(shell git describe --tags --match 'v*.*.*' | perl -ne '/^v(\d+)\.(\d+)\.(\d+)/; print "v$$1.@{[$$2+1]}.0"')) + $(MAKE) release + +release-patch: + $(eval export TAG=$(shell git describe --tags --match 'v*.*.*' | perl -ne '/^v(\d+)\.(\d+)\.(\d+)/; print "v$$1.$$2.@{[$$3+1]}"')) + $(MAKE) release + +release: + @if ! git diff --cached --exit-code; then echo "Commit staged files before proceeding"; exit 1; fi + @if [[ -z $$TAG ]]; then echo "Use release-{major,minor,patch}"; exit 1; fi + @if ! type -P pandoc; then echo "Please install pandoc"; exit 1; fi + @if ! type -P sponge; then echo "Please install moreutils"; exit 1; fi + @if ! type -P http; then echo "Please install httpie"; exit 1; fi + @if ! type -P twine; then echo "Please install twine"; exit 1; fi + $(eval REMOTE=$(shell git remote get-url origin | perl -ne '/([^\/\:]+\/.+?)(\.git)?$$/; print $$1')) + $(eval GIT_USER=$(shell git config --get user.email)) + $(eval GH_AUTH=$(shell if grep -q '@github.com' ~/.git-credentials; then echo $$(grep '@github.com' ~/.git-credentials | python3 -c 'import sys, urllib.parse as p; print(p.urlparse(sys.stdin.read()).netloc.split("@")[0])'); else echo $(GIT_USER); fi)) + $(eval RELEASES_API=https://api.github.com/repos/${REMOTE}/releases) + $(eval UPLOADS_API=https://uploads.github.com/repos/${REMOTE}/releases) + git pull +# git clean -x --force $$(python setup.py --name) +# sed -i -e "s/version=\([\'\"]\)[0-9]*\.[0-9]*\.[0-9]*/version=\1$${TAG:1}/" setup.py +# git add setup.py +# TAG_MSG=$$(mktemp); \ + echo "# Changes for ${TAG} ($$(date +%Y-%m-%d))" > $$TAG_MSG; \ + git log --pretty=format:%s $$(git describe --abbrev=0)..HEAD >> $$TAG_MSG; \ + $${EDITOR:-emacs} $$TAG_MSG; \ + 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 push --follow-tags +# http --check-status --auth ${GH_AUTH} ${RELEASES_API} tag_name=${TAG} name=${TAG} \ + body="$$(git tag --list ${TAG} -n99 | perl -pe 's/^\S+\s*// if $$. == 1' | sed 's/^\s\s\s\s//')" +# $(MAKE) install + http --check-status --auth ${GH_AUTH} POST ${UPLOADS_API}/$$(http --auth ${GH_AUTH} ${RELEASES_API}/latest | jq .id)/assets \ + name==$$(basename dist/*.whl) label=="Python Wheel" < dist/*.whl + $(MAKE) release-pypi + $(MAKE) release-docs + +release-pypi: + python setup.py sdist bdist_wheel + twine upload dist/*.tar.gz dist/*.whl --sign --verbose + +release-docs: + $(MAKE) docs + -git branch -D gh-pages + git checkout -B gh-pages-stage + touch docs/html/.nojekyll + git add --force docs/html + git commit -m "Docs for ${TAG}" + git push --force origin $$(git subtree split --prefix docs/html --branch gh-pages):refs/heads/gh-pages + git checkout - + +.PHONY: release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/docs/conf.py new/argcomplete-1.12.3/docs/conf.py --- old/argcomplete-1.12.2/docs/conf.py 1970-01-01 01:00:00.000000000 +0100 +++ new/argcomplete-1.12.3/docs/conf.py 2020-02-03 16:58:51.000000000 +0100 @@ -0,0 +1,33 @@ +import os + +project = "argcomplete" +copyright = "Andrey Kislyuk and argcomplete contributors" +author = "Andrey Kislyuk" +version = "" +release = "" +language = None +master_doc = "index" +extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"] +source_suffix = [".rst", ".md"] +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] +pygments_style = "sphinx" + +if "readthedocs.org" in os.getcwd().split("/"): + with open("index.rst", "w") as fh: + fh.write("Documentation for this project has moved to https://kislyuk.github.io/" + project) +else: + import guzzle_sphinx_theme + html_theme_path = guzzle_sphinx_theme.html_theme_path() + html_theme = "guzzle_sphinx_theme" + html_theme_options = { + "project_nav_name": project, + "projectlink": "https://github.com/kislyuk/" + project, + } + html_sidebars = { + "**": [ + "logo-text.html", + # "globaltoc.html", + "localtoc.html", + "searchbox.html" + ] + } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/docs/examples/describe_github_user.py new/argcomplete-1.12.3/docs/examples/describe_github_user.py --- old/argcomplete-1.12.2/docs/examples/describe_github_user.py 1970-01-01 01:00:00.000000000 +0100 +++ new/argcomplete-1.12.3/docs/examples/describe_github_user.py 2019-10-24 01:48:19.000000000 +0200 @@ -0,0 +1,16 @@ +#!/usr/bin/env python +# PYTHON_ARGCOMPLETE_OK +import argcomplete, argparse, requests, pprint + +def github_org_members(prefix, parsed_args, **kwargs): + resource = "https://api.github.com/orgs/{org}/members".format(org=parsed_args.organization) + return (member['login'] for member in requests.get(resource).json() if member['login'].startswith(prefix)) + +parser = argparse.ArgumentParser() +parser.add_argument("--organization", help="GitHub organization") +parser.add_argument("--member", help="GitHub member").completer = github_org_members + +argcomplete.autocomplete(parser) +args = parser.parse_args() + +pprint.pprint(requests.get("https://api.github.com/users/{m}".format(m=args.member)).json()) Binary files old/argcomplete-1.12.2/docs/fish_help_string.png and new/argcomplete-1.12.3/docs/fish_help_string.png differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/docs/index.rst new/argcomplete-1.12.3/docs/index.rst --- old/argcomplete-1.12.2/docs/index.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/argcomplete-1.12.3/docs/index.rst 2019-12-22 22:11:49.000000000 +0100 @@ -0,0 +1,11 @@ +.. include:: ../README.rst + +API documentation +================= + +.. autofunction:: argcomplete.autocomplete + +.. automodule:: argcomplete + :members: + :special-members: + :exclude-members: __weakref__ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/scripts/python-argcomplete-tcsh new/argcomplete-1.12.3/scripts/python-argcomplete-tcsh --- old/argcomplete-1.12.2/scripts/python-argcomplete-tcsh 2019-10-24 01:48:19.000000000 +0200 +++ new/argcomplete-1.12.3/scripts/python-argcomplete-tcsh 2021-04-19 17:44:33.000000000 +0200 @@ -20,4 +20,8 @@ _ARGCOMPLETE_SHELL=tcsh export _ARGCOMPLETE_SHELL -"$1" 8>&1 9>&2 1>/dev/null 2>/dev/null +if [ -z "${_ARC_DEBUG-}" ]; then + "$1" 8>&1 9>&2 1>/dev/null 2>/dev/null +else + "$1" 8>&1 9>&2 1>&2 +fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/setup.py new/argcomplete-1.12.3/setup.py --- old/argcomplete-1.12.2/setup.py 2020-11-24 05:09:45.000000000 +0100 +++ new/argcomplete-1.12.3/setup.py 2021-04-19 17:44:53.000000000 +0200 @@ -5,11 +5,11 @@ install_requires = [] tests_require = ["coverage", "flake8", "pexpect", "wheel"] -importlib_backport_requires = ["importlib-metadata >= 0.23, < 4"] +importlib_backport_requires = ["importlib-metadata >= 0.23, < 5"] setup( name='argcomplete', - version='1.12.2', + version='1.12.3', url='https://github.com/kislyuk/argcomplete', project_urls={ "Documentation": "https://kislyuk.github.io/argcomplete", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/test/test.py new/argcomplete-1.12.3/test/test.py --- old/argcomplete-1.12.2/test/test.py 2020-09-27 08:00:07.000000000 +0200 +++ new/argcomplete-1.12.3/test/test.py 2021-04-19 17:44:33.000000000 +0200 @@ -3,22 +3,31 @@ from __future__ import absolute_import, division, print_function, unicode_literals -import os, sys, shutil, argparse, subprocess, unittest, io +import os, sys, shutil, argparse, subprocess, unittest, contextlib import pexpect, pexpect.replwrap from tempfile import TemporaryFile, NamedTemporaryFile, mkdtemp +try: + # Python 2 + from cStringIO import StringIO +except ImportError: + # Python 3 + from io import StringIO + TEST_DIR = os.path.abspath(os.path.dirname(__file__)) # noqa BASE_DIR = os.path.dirname(TEST_DIR) # noqa sys.path.insert(0, BASE_DIR) # noqa from argparse import ArgumentParser, SUPPRESS +import argcomplete from argcomplete import ( autocomplete, CompletionFinder, split_line, ExclusiveCompletionFinder, _check_module, - shellcode + shellcode, + warn ) from argcomplete.completers import FilesCompleter, DirectoriesCompleter, SuppressCompleter from argcomplete.compat import USING_PYTHON2, str, sys_encoding, ensure_str, ensure_bytes @@ -28,7 +37,7 @@ BASH_VERSION = subprocess.check_output(['bash', '-c', 'echo $BASH_VERSION']).decode() BASH_MAJOR_VERSION = int(BASH_VERSION.split('.')[0]) -FISH_VERSION_STR = subprocess.check_output(['fish', '-c', 'echo -n $FISH_VERSION']).decode() +FISH_VERSION_STR = subprocess.check_output(['fish', '-c', 'echo -n $version']).decode() FISH_VERSION_TUPLE = tuple(int(x) for x in FISH_VERSION_STR.split('.')) @@ -1291,10 +1300,12 @@ command += ' a\t' self.assertEqual(self.sh.run_command(command), 'arg\r\n') + @unittest.skipIf(os.uname()[0] == "Darwin", "Skip test that fails on MacOS") 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") def test_console_script_package(self): """Test completing a console_script for a package.""" self._test_console_script(package=True) @@ -1398,5 +1409,23 @@ self.child.sendline('\x03') +class Warn(unittest.TestCase): + def test_warn(self): + @contextlib.contextmanager + def redirect_debug_stream(stream): + debug_stream = argcomplete.debug_stream + argcomplete.debug_stream = stream + try: + yield + finally: + argcomplete.debug_stream = debug_stream + + test_stream = StringIO() + with redirect_debug_stream(test_stream): + warn("My hands are tied") + + self.assertEqual("\nMy hands are tied\n", test_stream.getvalue()) + + if __name__ == "__main__": unittest.main() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/argcomplete-1.12.2/tox.ini new/argcomplete-1.12.3/tox.ini --- old/argcomplete-1.12.2/tox.ini 1970-01-01 01:00:00.000000000 +0100 +++ new/argcomplete-1.12.3/tox.ini 2019-10-24 01:48:19.000000000 +0200 @@ -0,0 +1,8 @@ +[tox] +envlist = py27, py35, py36, py37, pypy, pypy3 + +[testenv] +deps = + pexpect +commands = + python test/test.py -v ++++++ trim-test-deps.patch ++++++ --- /var/tmp/diff_new_pack.uCC6Ub/_old 2021-06-06 22:40:58.503433151 +0200 +++ /var/tmp/diff_new_pack.uCC6Ub/_new 2021-06-06 22:40:58.503433151 +0200 @@ -1,13 +1,13 @@ -Index: argcomplete-1.12.2/setup.py +Index: argcomplete-1.12.3/setup.py =================================================================== ---- argcomplete-1.12.2.orig/setup.py -+++ argcomplete-1.12.2/setup.py +--- argcomplete-1.12.3.orig/setup.py ++++ argcomplete-1.12.3/setup.py @@ -4,7 +4,7 @@ import glob from setuptools import setup, find_packages install_requires = [] -tests_require = ["coverage", "flake8", "pexpect", "wheel"] +tests_require = ["pexpect"] - importlib_backport_requires = ["importlib-metadata >= 0.23, < 4"] + importlib_backport_requires = ["importlib-metadata >= 0.23, < 5"] setup(
