15
0

- Update to 1.9.5:

* check_module: Don’t crash, exit with error instead (#261)
  * Register completion for multiple commands (#246)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=23
This commit is contained in:
Tomáš Chvátal
2019-04-05 11:15:59 +00:00
committed by Git OBS Bridge
parent 3226ad8b67
commit ca26701ea4
4 changed files with 18 additions and 18 deletions

View File

@@ -17,23 +17,21 @@
#
%{!?license: %global license %doc}
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-argcomplete
Version: 1.9.4
Version: 1.9.5
Release: 0
Summary: Bash tab completion for argparse
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/kislyuk/argcomplete
URL: https://github.com/kislyuk/argcomplete
Source: https://files.pythonhosted.org/packages/source/a/argcomplete/argcomplete-%{version}.tar.gz
Patch0: skip_tcsh_tests.patch
Patch1: trim-test-deps.patch
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION tests
BuildRequires: %{python_module pexpect}
# END SECTIONS tests
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
@@ -63,10 +61,8 @@ resources over the network).
%python_install
rm -rf %{buildroot}%{python_sitelib}/test
rm %{buildroot}%{_bindir}/activate-global-python-argcomplete
%python_clone %{buildroot}%{_bindir}/python-argcomplete-check-easy-install-script
%python_clone %{buildroot}%{_bindir}/register-python-argcomplete
install -DTm644 %{buildroot}%{python_sitelib}/argcomplete/bash_completion.d/python-argcomplete.sh %{buildroot}%{_sysconfdir}/bash_completion.d/python-argcomplete.sh
%python_clone %{buildroot}%{_sysconfdir}/bash_completion.d/python-argcomplete.sh
%python_expand %fdupes %{buildroot}%{$python_sitelib}
install -DTm644 %{buildroot}%{python_sitelib}/argcomplete/bash_completion.d/python-argcomplete.sh %{buildroot}%{_datadir}/bash-completion/completions/python-argcomplete.sh
# tcsh support is broken
rm %{buildroot}%{_bindir}/python-argcomplete-tcsh
@@ -81,9 +77,6 @@ export LANG=en_US.UTF-8
%{python_sitelib}/argcomplete
%python3_only %{_bindir}/python-argcomplete-check-easy-install-script
%python3_only %{_bindir}/register-python-argcomplete
%python3_only %{_sysconfdir}/bash_completion.d/python-argcomplete.sh
%{_bindir}/python-argcomplete-check-easy-install-script-%{python_version}
%{_bindir}/register-python-argcomplete-%{python_version}
%{_sysconfdir}/bash_completion.d/python-argcomplete.sh-%{python_version}
%python3_only %{_datadir}/bash-completion/completions/python-argcomplete.sh
%changelog