15
0

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
This commit is contained in:
Denisart Benjamin
2015-12-29 13:48:42 +00:00
committed by Git OBS Bridge
parent a00b12d3a7
commit 01cd3c7c8e
4 changed files with 23 additions and 7 deletions

View File

@@ -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