From 44247d08463132d6df28ac94ff190b2145ff9c7c Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Sun, 17 Nov 2024 23:01:33 +0100 Subject: Add 08-remove-six.patch (closes: #1087666) --- debian/changelog | 6 ++++++ debian/control | 2 -- debian/patches/08-remove-six.patch | 29 +++++++++++++++++++++++++++++ debian/patches/series | 1 + 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 debian/patches/08-remove-six.patch (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index ef21fc7..91df525 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +chirp (1:20241108-1.1) UNRELEASED; urgency=medium + + * Added 08-remove-six.patch (closes: #108766) + + -- Daniele Forsi Sun, 17 Nov 2024 23:18:56 +0100 + chirp (1:20241108-1) unstable; urgency=medium * New Watch file for new upstream location diff --git a/debian/control b/debian/control index 9c06173..179e79e 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,6 @@ Build-Depends: python3, python3-requests, python3-serial, - python3-six, python3-yattag, wxpython-tools, python3-setuptools, @@ -29,7 +28,6 @@ Multi-Arch: foreign Depends: python3-requests, python3-serial, - python3-six, python3-yattag, python3-suds, wxpython-tools, diff --git a/debian/patches/08-remove-six.patch b/debian/patches/08-remove-six.patch new file mode 100644 index 0000000..e577367 --- /dev/null +++ b/debian/patches/08-remove-six.patch @@ -0,0 +1,29 @@ +Description: Remove last remaining usage of python3-six +Author: Alexandre Detiste +Origin: Debian BTS, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087666 +Forwarded: https://github.com/kk7ds/chirp/pull/1170 +Last-Update: 2024-11-17 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/tests/unit/test_bitwise.py ++++ b/tests/unit/test_bitwise.py +@@ -18,7 +18,6 @@ + import unittest + from unittest import mock + +-import six + + from chirp import bitwise + from chirp import memmap +@@ -256,10 +255,7 @@ + data = memmap.MemoryMapBytes(bytes(b"\xFFoobar1")) + obj = bitwise.parse("struct {char foo[7];} bar;", data) + +- if six.PY3: +- expected = '\xffoobar1' +- else: +- expected = '\\xffoobar1' ++ expected = '\xffoobar1' + + self.assertIn(expected, repr(obj.bar)) + diff --git a/debian/patches/series b/debian/patches/series index 99f7b47..06b6c82 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ desktop-file.patch 02-fix-setup-py.patch distutils-migration.patch 07-disable-reporting.patch +08-remove-six.patch -- cgit v1.2.3