From 01cd3c7c8eea49477f610c3a16f9ab1de5545eb768a2bec69b515446d9f7c8bd Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Tue, 29 Dec 2015 13:48:42 +0000 Subject: [PATCH] Accepting request 348513 from home:mimi_vx:branches:devel:languages:python - update to 1.0.0 * Don't print args with suppressed help by default; add argcomplete.autocomplete(print_suppressed=True) to control this behavior * Fix always_complete_options=False support. * Correct doc filename in setup.cfg * Make context managers exception-safe. * Fix issue with non-string choices for arguments. * Improve non-ascii argparse argument support on Python 2.7. OBS-URL: https://build.opensuse.org/request/show/348513 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=10 --- argcomplete-0.8.7.tar.gz | 3 --- argcomplete-1.0.0.tar.gz | 3 +++ python-argcomplete.changes | 12 ++++++++++++ python-argcomplete.spec | 12 ++++++++---- 4 files changed, 23 insertions(+), 7 deletions(-) delete mode 100644 argcomplete-0.8.7.tar.gz create mode 100644 argcomplete-1.0.0.tar.gz diff --git a/argcomplete-0.8.7.tar.gz b/argcomplete-0.8.7.tar.gz deleted file mode 100644 index 64eb090..0000000 --- a/argcomplete-0.8.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a8a1f7bc1320c3049a05739f979987c8a911471769a078e22b0e1da530fbf2c2 -size 34336 diff --git a/argcomplete-1.0.0.tar.gz b/argcomplete-1.0.0.tar.gz new file mode 100644 index 0000000..1c0d7d6 --- /dev/null +++ b/argcomplete-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2cba862e5ce5b0057a33169484544c38bfdc17a1dd865c197adb7ce07800e36e +size 35480 diff --git a/python-argcomplete.changes b/python-argcomplete.changes index aa8f284..1123dc0 100644 --- a/python-argcomplete.changes +++ b/python-argcomplete.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sat Dec 12 17:49:43 UTC 2015 - mimi.vx@gmail.com + +- update to 1.0.0 +* Don't print args with suppressed help by default; add + argcomplete.autocomplete(print_suppressed=True) to control this behavior +* Fix always_complete_options=False support. +* Correct doc filename in setup.cfg +* Make context managers exception-safe. +* Fix issue with non-string choices for arguments. +* Improve non-ascii argparse argument support on Python 2.7. + ------------------------------------------------------------------- Sun Apr 19 16:08:50 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-argcomplete.spec b/python-argcomplete.spec index 8ef22b8..5b9e86e 100644 --- a/python-argcomplete.spec +++ b/python-argcomplete.spec @@ -18,20 +18,21 @@ Name: python-argcomplete -Version: 0.8.7 +Version: 1.0.0 Release: 0 -Url: https://github.com/kislyuk/argcomplete Summary: Bash tab completion for argparse License: Apache-2.0 Group: Development/Languages/Python +Url: https://github.com/kislyuk/argcomplete Source: http://pypi.python.org/packages/source/a/argcomplete/argcomplete-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-setuptools +BuildRoot: %{_tmppath}/%{name}-%{version}-build + %if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} BuildRequires: python-argparse Requires: python-argparse -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch %endif @@ -61,6 +62,8 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} rm -rf %{buildroot}%{python_sitelib}/test +mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/ +install -p -m0644 %{buildroot}%{python_sitelib}/argcomplete/bash_completion.d/python-argcomplete.sh %{buildroot}%{_sysconfdir}/bash_completion.d/ %check python setup.py test @@ -73,5 +76,6 @@ python setup.py test %{_bindir}/register-python-argcomplete %{python_sitelib}/argcomplete-%{version}-py%{py_ver}.egg-info %{python_sitelib}/argcomplete +%config %{_sysconfdir}/bash_completion.d/python-argcomplete.sh %changelog