From 7206177c5ebcabe1ce1a0ce3274167a8145c81bae049dbcc58cfd626a16c8d01 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 21 Jul 2017 07:41:10 +0000 Subject: [PATCH] Accepting request 511605 from home:sebix:branches:devel:languages:python updated not converted because of upstream issues: https://github.com/kislyuk/argcomplete/issues/11 https://github.com/kislyuk/argcomplete/issues/101 OBS-URL: https://build.opensuse.org/request/show/511605 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=14 --- argcomplete-1.0.0.tar.gz | 3 --- argcomplete-1.8.2.tar.gz | 3 +++ python-argcomplete.changes | 5 +++++ python-argcomplete.spec | 37 +++++++++++++++++++++++++------------ skip_tcsh_tests.patch | 10 ++++++++++ 5 files changed, 43 insertions(+), 15 deletions(-) delete mode 100644 argcomplete-1.0.0.tar.gz create mode 100644 argcomplete-1.8.2.tar.gz create mode 100644 skip_tcsh_tests.patch diff --git a/argcomplete-1.0.0.tar.gz b/argcomplete-1.0.0.tar.gz deleted file mode 100644 index 1c0d7d6..0000000 --- a/argcomplete-1.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2cba862e5ce5b0057a33169484544c38bfdc17a1dd865c197adb7ce07800e36e -size 35480 diff --git a/argcomplete-1.8.2.tar.gz b/argcomplete-1.8.2.tar.gz new file mode 100644 index 0000000..5d1a880 --- /dev/null +++ b/argcomplete-1.8.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a2ccde074eb6631232b2f91f8d8d5985d5bebf0e36b091113096e3a0385546b +size 53626 diff --git a/python-argcomplete.changes b/python-argcomplete.changes index 41da797..2aaac5e 100644 --- a/python-argcomplete.changes +++ b/python-argcomplete.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 20 09:48:53 UTC 2017 - sebix+novell.com@sebix.at + +- update to 1.8.2 + ------------------------------------------------------------------- Tue Nov 02 20:50:53 UTC 2016 - achim.herwig@wodca.de diff --git a/python-argcomplete.spec b/python-argcomplete.spec index a87ee54..d0a1a68 100644 --- a/python-argcomplete.spec +++ b/python-argcomplete.spec @@ -1,7 +1,7 @@ # # spec file for package python-argcomplete # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 Darin Perusich. # # All modifications and additions to the file contributed by third parties @@ -17,22 +17,30 @@ # +%{!?license: %global license %doc} Name: python-argcomplete -Version: 1.0.0 +Version: 1.8.2 Release: 0 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 +Source: https://files.pythonhosted.org/packages/source/a/argcomplete/argcomplete-%{version}.tar.gz +Patch0: skip_tcsh_tests.patch BuildRequires: python-devel BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build +# SECTION tests +BuildRequires: python-coverage +BuildRequires: python-flake8 +BuildRequires: python-pexpect +BuildRequires: python-wheel +# END SECTIONS tests +Requires: python-wheel +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %description -argcomplete - Bash completion for argparse - Argcomplete provides easy, extensible command line tab completion of arguments for your Python script. @@ -48,6 +56,7 @@ resources over the network). %prep %setup -q -n argcomplete-%{version} +%patch0 %build python setup.py build @@ -55,15 +64,19 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} rm -rf %{buildroot}%{python_sitelib}/test -rm %{buildroot}/usr/bin/activate-global-python-argcomplete -rm %{buildroot}/usr/bin/register-python-argcomplete -mv %{buildroot}/usr/bin/python-argcomplete-check-easy-install-script \ - %{buildroot}/usr/bin/python-argcomplete-check-easy-install-script-%{py_ver} +rm %{buildroot}%{_bindir}/activate-global-python-argcomplete +rm %{buildroot}%{_bindir}/register-python-argcomplete +mv %{buildroot}%{_bindir}/python-argcomplete-check-easy-install-script \ + %{buildroot}%{_bindir}/python-argcomplete-check-easy-install-script-%{python_version} mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/ ln -sf %{_sysconfdir}/alternatives/python-argcomplete.sh %{buildroot}%{_sysconfdir}/bash_completion.d/ ln -sf %{_sysconfdir}/alternatives/python-argcomplete-check-easy-install-script %{buildroot}%{_bindir}/python-argcomplete-check-easy-install-script +# tcsh support is broken +rm %{buildroot}%{_bindir}/python-argcomplete-tcsh +sed -i 's/^#!\/usr\/bin\/python$/#!\/usr\/bin\/python2/' %{buildroot}%{_bindir}/python-argcomplete-check-easy-install-script-%{python_version} %check +export LANG=en_US.UTF-8 python setup.py test %post @@ -75,8 +88,8 @@ update-alternatives \ %{_bindir}/python-argcomplete-check-easy-install-script-%{py_ver} %files -%defattr(-,root,root,-) -%doc LICENSE.rst README.rst +%doc README.rst +%license LICENSE.rst %ghost %{_bindir}/python-argcomplete-check-easy-install-script %{_bindir}/python-argcomplete-check-easy-install-script-%{py_ver} %{python_sitelib}/argcomplete-%{version}-py%{py_ver}.egg-info diff --git a/skip_tcsh_tests.patch b/skip_tcsh_tests.patch new file mode 100644 index 0000000..d1007e1 --- /dev/null +++ b/skip_tcsh_tests.patch @@ -0,0 +1,10 @@ +--- test/test.py 2017-01-26 21:58:24.000000000 +0100 ++++ test/test.py 2017-07-20 11:36:11.820934599 +0200 +@@ -1041,6 +1041,7 @@ + self.assertEqual(self.sh.run_command('python ./prog basic f\t'), 'foo\r\n') + + ++@unittest.expectedFailure + class TestTcsh(_TestSh, unittest.TestCase): + expected_failures = [ + 'test_unquoted_space',