diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-11-19 00:00:28 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-11-19 00:00:28 +0000 |
| commit | ff1b9f1fe8ab959942d3de97fcdb8f84aa0ec847 (patch) | |
| tree | 73481755fcd6b21f02688abb09601adfbc0b0805 | |
| parent | 9b78676bc1587b9363ad2e1987faf7c8d076ac8e (diff) | |
| parent | 44247d08463132d6df28ac94ff190b2145ff9c7c (diff) | |
Merge branch 'remove-six' into 'master'
Add 08-remove-six.patch (closes #1087666)
See merge request debian-hamradio-team/chirp!8
| -rw-r--r-- | debian/changelog | 6 | ||||
| -rw-r--r-- | debian/control | 2 | ||||
| -rw-r--r-- | debian/patches/08-remove-six.patch | 29 | ||||
| -rw-r--r-- | debian/patches/series | 1 |
4 files changed, 36 insertions, 2 deletions
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 <iu5hkx@gmail.com> 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 <alexandre.detiste@gmail.com> +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 |
