forked from pool/python-argcomplete
Accepting request 678632 from home:jayvdb:coala
- Trim unnecessary build dependencies using trim-test-deps.patch - Simplify skip_tcsh_tests.patch so it is easier to read and update - Update to v1.9.4 * Use the correct interpreter when checking wrappers * Provide shellcode as a module function (#237) - from v1.9.3 * Fix handling of COMP\_POINT * Fix crash when writing unicode to debug\_stream in Python 2 OBS-URL: https://build.opensuse.org/request/show/678632 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=21
This commit is contained in:
committed by
Git OBS Bridge
parent
c83255a471
commit
3226ad8b67
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d6ea272a93bb0387f758def836e73c36fff0c54170258c212de3e84f7db8d5ed
|
||||
size 46445
|
||||
3
argcomplete-1.9.4.tar.gz
Normal file
3
argcomplete-1.9.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:06c8a54ffaa6bfc9006314498742ec8843601206a3b94212f82657673662ecf1
|
||||
size 47471
|
||||
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 25 05:52:03 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Trim unnecessary build dependencies using trim-test-deps.patch
|
||||
- Simplify skip_tcsh_tests.patch so it is easier to read and update
|
||||
- Update to v1.9.4
|
||||
* Use the correct interpreter when checking wrappers
|
||||
* Provide shellcode as a module function (#237)
|
||||
- from v1.9.3
|
||||
* Fix handling of COMP\_POINT
|
||||
* Fix crash when writing unicode to debug\_stream in Python 2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:45:38 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-argcomplete
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 Darin Perusich.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -20,7 +20,7 @@
|
||||
%{!?license: %global license %doc}
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-argcomplete
|
||||
Version: 1.9.2
|
||||
Version: 1.9.4
|
||||
Release: 0
|
||||
Summary: Bash tab completion for argparse
|
||||
License: Apache-2.0
|
||||
@@ -28,15 +28,12 @@ Group: Development/Languages/Python
|
||||
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 coverage}
|
||||
BuildRequires: %{python_module flake8}
|
||||
BuildRequires: %{python_module pexpect}
|
||||
BuildRequires: %{python_module wheel}
|
||||
# END SECTIONS tests
|
||||
Requires: python-wheel
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -57,6 +54,7 @@ resources over the network).
|
||||
%prep
|
||||
%setup -q -n argcomplete-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -77,7 +75,6 @@ export LANG=en_US.UTF-8
|
||||
%python_exec setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc README.rst
|
||||
%license LICENSE.rst
|
||||
%{python_sitelib}/argcomplete-%{version}-py%{python_version}.egg-info
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
diff -Nru argcomplete-1.9.2.orig/test/test.py argcomplete-1.9.2/test/test.py
|
||||
--- argcomplete-1.9.2.orig/test/test.py 2017-08-23 19:29:25.000000000 +0200
|
||||
+++ argcomplete-1.9.2/test/test.py 2017-09-15 11:55:27.264394475 +0200
|
||||
@@ -1149,30 +1149,30 @@
|
||||
diff -ur argcomplete-1.9.4.orig/test/test.py argcomplete-1.9.4/test/test.py
|
||||
--- argcomplete-1.9.4.orig/test/test.py 2018-02-13 22:40:04.000000000 +0700
|
||||
+++ argcomplete-1.9.4/test/test.py 2019-02-10 21:45:44.370237665 +0700
|
||||
@@ -1170,34 +1170,6 @@
|
||||
self.assertEqual(self.sh.run_command('python -m package.prog basic f\t'), 'foo\r\n')
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@ diff -Nru argcomplete-1.9.2.orig/test/test.py argcomplete-1.9.2/test/test.py
|
||||
- 'test_continuation',
|
||||
- 'test_parse_special_characters',
|
||||
- 'test_parse_special_characters_dollar',
|
||||
- # Test case doesn't work under tcsh, could be fixed.
|
||||
- 'test_comp_point',
|
||||
- ]
|
||||
-
|
||||
- def setUp(self):
|
||||
@@ -29,30 +31,8 @@ diff -Nru argcomplete-1.9.2.orig/test/test.py argcomplete-1.9.2/test/test.py
|
||||
- with self.assertRaises((pexpect.EOF, OSError)):
|
||||
- self.sh.run_command('exit')
|
||||
- self.sh.run_command('')
|
||||
+# class TestTcsh(_TestSh, unittest.TestCase):
|
||||
+# expected_failures = [
|
||||
+# 'test_unquoted_space',
|
||||
+# 'test_quoted_space',
|
||||
+# 'test_continuation',
|
||||
+# 'test_parse_special_characters',
|
||||
+# 'test_parse_special_characters_dollar',
|
||||
+# ]
|
||||
+
|
||||
+# def setUp(self):
|
||||
+# sh = Shell('tcsh')
|
||||
+# path = ' '.join([os.path.join(BASE_DIR, 'scripts'), TEST_DIR, '$path'])
|
||||
+# sh.run_command('set path = ({0})'.format(path))
|
||||
+# sh.run_command('setenv PYTHONPATH {0}'.format(BASE_DIR))
|
||||
+# output = sh.run_command('eval `register-python-argcomplete --shell tcsh prog`')
|
||||
+# self.assertEqual(output, '')
|
||||
+# self.sh = sh
|
||||
+
|
||||
+# def tearDown(self):
|
||||
+# # The shell wrapper is fragile; exactly which exception is raised
|
||||
+# # differs depending on environment.
|
||||
+# with self.assertRaises((pexpect.EOF, OSError)):
|
||||
+# self.sh.run_command('exit')
|
||||
+# self.sh.run_command('')
|
||||
|
||||
|
||||
-
|
||||
-
|
||||
class Shell(object):
|
||||
def __init__(self, shell):
|
||||
self.child = pexpect.spawn(shell, encoding='utf-8')
|
||||
|
||||
11
trim-test-deps.patch
Normal file
11
trim-test-deps.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- argcomplete-1.9.2.orig/setup.py 2017-08-24 00:37:12.000000000 +0700
|
||||
+++ argcomplete-1.9.2/setup.py 2019-02-10 21:22:50.518878293 +0700
|
||||
@@ -4,7 +4,7 @@
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
install_requires = []
|
||||
-tests_require = ["coverage", "flake8", "pexpect", "wheel"]
|
||||
+tests_require = ["pexpect"]
|
||||
|
||||
setup(
|
||||
name='argcomplete',
|
||||
Reference in New Issue
Block a user