Control: tags 937580 + patch

Dear maintainer,

I've prepared an NMU for python-argcomplete (versioned as 1.8.1-1.1). The diff
is attached to this message.

Please consider maintaining this package with DPMT

Regards.

diff -Nru python-argcomplete-1.8.1/debian/changelog python-argcomplete-1.8.1/debian/changelog
--- python-argcomplete-1.8.1/debian/changelog	2017-01-24 12:05:43.000000000 -0500
+++ python-argcomplete-1.8.1/debian/changelog	2020-01-14 16:48:14.000000000 -0500
@@ -1,3 +1,10 @@
+python-argcomplete (1.8.1-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Drop python2 support; Closes: #937580
+
+ -- Sandro Tosi <mo...@debian.org>  Tue, 14 Jan 2020 16:48:14 -0500
+
 python-argcomplete (1.8.1-1) unstable; urgency=medium
 
   * Fix Vcs-Git URL in debian/control
diff -Nru python-argcomplete-1.8.1/debian/control python-argcomplete-1.8.1/debian/control
--- python-argcomplete-1.8.1/debian/control	2017-01-24 12:05:43.000000000 -0500
+++ python-argcomplete-1.8.1/debian/control	2020-01-14 16:47:49.000000000 -0500
@@ -2,34 +2,12 @@
 Maintainer: Marco Nenciarini <mnen...@debian.org>
 Section: python
 Priority: optional
-Build-Depends: python-setuptools (>= 0.6b3), python-all, debhelper (>= 10),
+Build-Depends: debhelper (>= 10),
  dh-python, python3-all, python3-setuptools, tcsh,
- python-wheel, python-pexpect, python-coverage, python-flake8,
  python3-wheel, python3-pexpect, python3-coverage, python3-flake8
 Standards-Version: 3.9.8.0
 Vcs-Git: https://alioth.debian.org/anonscm/git/collab-maint/python-argcomplete.git
 Vcs-Browser: https://anonscm.debian.org/gitweb/?p=collab-maint/python-argcomplete.git
-X-Python-Version: >= 2.6
-X-Python3-Version: >= 3.2
-
-Package: python-argcomplete
-Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}
-Description: bash tab completion for argparse
- Argcomplete provides easy, extensible command line tab completion of
- arguments for your Python script.
- .
- It makes two assumptions:
- .
-  * You're using bash as your shell
-  * You're using argparse to manage your command line arguments/options
- .
- Argcomplete is particularly useful if your program has lots of
- options or subparsers, and if your program can dynamically suggest
- completions for your argument/option values (for example, if the user
- is browsing resources over the network).
- .
- This package provides the module for Python 2.x.
 
 Package: python3-argcomplete
 Architecture: all
diff -Nru python-argcomplete-1.8.1/debian/patches/py3k-scripts.patch python-argcomplete-1.8.1/debian/patches/py3k-scripts.patch
--- python-argcomplete-1.8.1/debian/patches/py3k-scripts.patch	1969-12-31 19:00:00.000000000 -0500
+++ python-argcomplete-1.8.1/debian/patches/py3k-scripts.patch	2020-01-14 16:48:14.000000000 -0500
@@ -0,0 +1,24 @@
+--- a/scripts/activate-global-python-argcomplete
++++ b/scripts/activate-global-python-argcomplete
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ # PYTHON_ARGCOMPLETE_OK
+ 
+ # Copyright 2012-2013, Andrey Kislyuk and argcomplete contributors.
+--- a/scripts/python-argcomplete-check-easy-install-script
++++ b/scripts/python-argcomplete-check-easy-install-script
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ 
+ # Copyright 2012-2013, Andrey Kislyuk and argcomplete contributors.
+ # Licensed under the Apache License. See https://github.com/kislyuk/argcomplete for more info.
+--- a/scripts/register-python-argcomplete
++++ b/scripts/register-python-argcomplete
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ # PYTHON_ARGCOMPLETE_OK
+ 
+ # Copyright 2012-2013, Andrey Kislyuk and argcomplete contributors.
diff -Nru python-argcomplete-1.8.1/debian/patches/py3k-tests.patch python-argcomplete-1.8.1/debian/patches/py3k-tests.patch
--- python-argcomplete-1.8.1/debian/patches/py3k-tests.patch	1969-12-31 19:00:00.000000000 -0500
+++ python-argcomplete-1.8.1/debian/patches/py3k-tests.patch	2020-01-14 16:48:14.000000000 -0500
@@ -0,0 +1,39 @@
+--- a/test/prog
++++ b/test/prog
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ # PYTHON_ARGCOMPLETE_OK
+ """Test script used by test.TestBash."""
+ import argparse
+--- a/test/test.py
++++ b/test/test.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ 
+ from __future__ import absolute_import, division, print_function, unicode_literals
+@@ -1024,11 +1024,11 @@ class TestBashGlobal(TestBash):
+ 
+     def test_python_completion(self):
+         self.sh.run_command('cd ' + TEST_DIR)
+-        self.assertEqual(self.sh.run_command('python ./prog basic f\t'), 'foo\r\n')
++        self.assertEqual(self.sh.run_command('python3 ./prog basic f\t'), 'foo\r\n')
+ 
+     def test_python_filename_completion(self):
+         self.sh.run_command('cd ' + TEST_DIR)
+-        self.assertEqual(self.sh.run_command('python ./pro\tbasic f\t'), 'foo\r\n')
++        self.assertEqual(self.sh.run_command('python3 ./pro\tbasic f\t'), 'foo\r\n')
+ 
+     def test_python_not_executable(self):
+         """Test completing a script that cannot be run directly."""
+@@ -1038,7 +1038,7 @@ class TestBashGlobal(TestBash):
+             self.sh.run_command('cd ' + os.getcwd())
+             self.sh.run_command('chmod -x ./prog')
+             self.assertIn('Permission denied', self.sh.run_command('./prog'))
+-            self.assertEqual(self.sh.run_command('python ./prog basic f\t'), 'foo\r\n')
++            self.assertEqual(self.sh.run_command('python3 ./prog basic f\t'), 'foo\r\n')
+ 
+ 
+ class TestTcsh(_TestSh, unittest.TestCase):
diff -Nru python-argcomplete-1.8.1/debian/patches/series python-argcomplete-1.8.1/debian/patches/series
--- python-argcomplete-1.8.1/debian/patches/series	1969-12-31 19:00:00.000000000 -0500
+++ python-argcomplete-1.8.1/debian/patches/series	2020-01-14 16:48:14.000000000 -0500
@@ -0,0 +1,2 @@
+py3k-scripts.patch
+py3k-tests.patch
diff -Nru python-argcomplete-1.8.1/debian/rules python-argcomplete-1.8.1/debian/rules
--- python-argcomplete-1.8.1/debian/rules	2017-01-24 12:05:43.000000000 -0500
+++ python-argcomplete-1.8.1/debian/rules	2020-01-14 16:48:08.000000000 -0500
@@ -10,7 +10,7 @@
 unexport LC_ALL
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python3 --buildsystem=pybuild
 
 override_dh_auto_install:
 	dh_auto_install -O--buildsystem=pybuild

Reply via email to