From 700c293be6d7d0823eeda9e86481d16ef6d57f21 Mon Sep 17 00:00:00 2001 From: Yogeswaran Umasankar Date: Sat, 20 Jan 2024 23:02:54 +0000 Subject: Log for new upstream v --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index c791281..2339609 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +chirp (1:20240117-1) unstable; urgency=medium + + * New upstream version. + + -- Yogeswaran Umasankar Sat, 20 Jan 2024 18:00:00 +0000 + chirp (1:20231027-1) unstable; urgency=medium * New d/watch to reflect upstream changes -- cgit v1.2.3 From 9153d1e17e6acfdd61d84c070d029519c3bf7644 Mon Sep 17 00:00:00 2001 From: Yogeswaran Umasankar Date: Sat, 20 Jan 2024 23:04:18 +0000 Subject: Removed python3-future from depends --- debian/control | 2 -- 1 file changed, 2 deletions(-) (limited to 'debian') diff --git a/debian/control b/debian/control index 52bcee7..98a7192 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,6 @@ Build-Depends: debhelper-compat (= 13), dh-python, python3, - python3-future, python3-requests, python3-serial, python3-six, @@ -27,7 +26,6 @@ Package: chirp Architecture: all Multi-Arch: foreign Depends: - python3-future, python3-requests, python3-serial, python3-six, -- cgit v1.2.3 From 873f5c61232ca3594e421a38867fa2ea4735e188 Mon Sep 17 00:00:00 2001 From: Yogeswaran Umasankar Date: Sat, 20 Jan 2024 23:05:07 +0000 Subject: Fixed lintian in copyright --- debian/copyright | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'debian') diff --git a/debian/copyright b/debian/copyright index 66ba039..faedb34 100644 --- a/debian/copyright +++ b/debian/copyright @@ -18,7 +18,7 @@ Copyright: 2017-2023 Dave Hibberd 2011 Steve Conklin AI4QR License: GPL-3+ - chirp/bitwise.py +Files: chirp/bitwise.py chirp/bitwise_grammar.py chirp/chirp_common.py chirp/cli/main.py @@ -265,7 +265,7 @@ Files: chirp/drivers/ft4.py Copyright: 2011, Dan Smith 2012, Dan Smith 2019, Dan Clemmensen -License: GPL-2 and/or GPL-3+ +License: GPL-2+ and GPL-3+ Files: chirp/drivers/th_uv88.py Copyright: NONE @@ -368,7 +368,7 @@ Files: debian/copyright Copyright: 2012, Dan Smith 2013, Christopher Knadle GPL-3+ -License: GPL-2+ and/or GPL-3+ +License: GPL-2+ and GPL-3+ Files: chirp/drivers/ft1d.py Copyright: 2010, Dan Smith -- cgit v1.2.3 From 5352b8179888d16e9869abd1369d0b4808d0f3cc Mon Sep 17 00:00:00 2001 From: Yogeswaran Umasankar Date: Sat, 20 Jan 2024 23:06:06 +0000 Subject: Removed 08-disable-incorrect-mime-type -not for new upstream v --- debian/patches/08-disable-incorrect-mime-type | 15 --------------- debian/patches/series | 1 - 2 files changed, 16 deletions(-) delete mode 100644 debian/patches/08-disable-incorrect-mime-type (limited to 'debian') diff --git a/debian/patches/08-disable-incorrect-mime-type b/debian/patches/08-disable-incorrect-mime-type deleted file mode 100644 index 2ba327d..0000000 --- a/debian/patches/08-disable-incorrect-mime-type +++ /dev/null @@ -1,15 +0,0 @@ -Description: Removes inode/directory mimetype from chirp.desktop - This avoids registering chirp as the default application for opening directories, conflicting with default file browsers. -Author: Ana Custura ---- -This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ ---- a/chirp/share/chirp.desktop -+++ b/chirp/share/chirp.desktop -@@ -7,7 +7,6 @@ - Icon=chirp - Exec=chirpw %F - Terminal=false --MimeType=inode/directory - Categories=Utility;HamRadio - Keywords=Hamradio;Programming;Handheld;Radio;Amateur;Programmer - StartupNotify=true diff --git a/debian/patches/series b/debian/patches/series index 6558b3f..b4e31b2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,4 +3,3 @@ desktop-file.patch wxui-chirp-share.patch distutils-migration.patch 07-disable-reporting.patch -08-disable-incorrect-mime-type -- cgit v1.2.3 From f80a57c683506c424e7a7254233d55d19a66b252 Mon Sep 17 00:00:00 2001 From: Yogeswaran Umasankar Date: Sat, 20 Jan 2024 23:07:04 +0000 Subject: Updated for new upstream v --- debian/patches/02-fix-setup-py.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/patches/02-fix-setup-py.patch b/debian/patches/02-fix-setup-py.patch index ea7e5f3..6b83f5c 100644 --- a/debian/patches/02-fix-setup-py.patch +++ b/debian/patches/02-fix-setup-py.patch @@ -4,7 +4,7 @@ Last-Update: 2023-10-28 --- --- a/setup.py +++ b/setup.py -@@ -20,7 +20,6 @@ +@@ -20,7 +20,6 @@ setup(name='chirp', 'wx': ['wxPython'], }, entry_points={ -- cgit v1.2.3 From 23b03af60774d498ec35dab84858534cf55b8257 Mon Sep 17 00:00:00 2001 From: Yogeswaran Umasankar Date: Sat, 20 Jan 2024 23:08:47 +0000 Subject: Updated desktop-file.patch for new upstream v --- debian/patches/desktop-file.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debian') diff --git a/debian/patches/desktop-file.patch b/debian/patches/desktop-file.patch index 9e362b4..d5fc4ef 100644 --- a/debian/patches/desktop-file.patch +++ b/debian/patches/desktop-file.patch @@ -5,12 +5,12 @@ Last-Update: 2023-10-28 --- --- a/chirp/share/chirp.desktop +++ b/chirp/share/chirp.desktop -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ Name=CHIRP GenericName=Radio Programming Tool Comment=Program amateur radios Icon=chirp -Exec=chirp %F +Exec=chirpw %F Terminal=false - MimeType=inode/directory + MimeType=x-scheme-handler/chirp Categories=Utility;HamRadio -- cgit v1.2.3 From 97e887f5dbd982486f5c36fcd8778388ff6fefe1 Mon Sep 17 00:00:00 2001 From: Yogeswaran Umasankar Date: Sat, 20 Jan 2024 23:10:04 +0000 Subject: Included new remove-future.patch --- debian/patches/series | 1 + 1 file changed, 1 insertion(+) (limited to 'debian') diff --git a/debian/patches/series b/debian/patches/series index b4e31b2..8522c24 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ +remove-future.patch desktop-file.patch 02-fix-setup-py.patch wxui-chirp-share.patch -- cgit v1.2.3 From 454c4d7f991d02061395fa2962957864705c9446 Mon Sep 17 00:00:00 2001 From: Yogeswaran Umasankar Date: Sat, 20 Jan 2024 23:11:03 +0000 Subject: Patch for replacing python3-future --- debian/patches/remove-future.patch | 70 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 debian/patches/remove-future.patch (limited to 'debian') diff --git a/debian/patches/remove-future.patch b/debian/patches/remove-future.patch new file mode 100644 index 0000000..553775b --- /dev/null +++ b/debian/patches/remove-future.patch @@ -0,0 +1,70 @@ +Description: Replacement for python3-future. +Author: Yogeswaran Umasankar +Last-Update: 2024-01-19 + +--- a/requirements.txt ++++ b/requirements.txt +@@ -2,7 +2,6 @@ six + wxPython>=4.0,<4.2.0 ; platform_system=="Linux" # See https://github.com/wxWidgets/Phoenix/issues/2225 + wxPython==4.2.0 ; platform_system!="Linux" + pyserial +-future + requests + pywin32; platform_system=="Windows" + suds +--- a/setup.py ++++ b/setup.py +@@ -12,7 +12,6 @@ setup(name='chirp', + 'pyserial', + 'requests', + 'six', +- 'future', + 'importlib-resources;python_version<"3.10"', + 'yattag', + ], +--- a/test-requirements.txt ++++ b/test-requirements.txt +@@ -5,7 +5,6 @@ pytest-html + six + pep8 + pyserial +-future + requests + pyyaml + pywin32; platform_system=="Windows" +--- a/chirp/chirp_common.py ++++ b/chirp/chirp_common.py +@@ -14,7 +14,7 @@ + # along with this program. If not, see . + + from builtins import bytes +-from future import standard_library ++#from future import standard_library + + import base64 + import json +@@ -1959,17 +1959,19 @@ def http_user_agent(): + def urlretrieve(url, fn): + """Grab an URL and save it in a specified file""" + +- standard_library.install_aliases() ++ #standard_library.install_aliases() + import urllib.request +- import urllib.error ++ from urllib.error import URLError, HTTPError + + headers = { + 'User-Agent': http_user_agent(), + } + req = urllib.request.Request(url, headers=headers) +- resp = urllib.request.urlopen(req) +- with open(fn, 'wb') as f: +- f.write(resp.read()) ++ ++ try: ++ urllib.request.urlretrieve(req, fn) ++ except (URLError, HTTPError) as e: ++ print(f"Error downloading {url}: {e}") + + + def mem_from_text(text): -- cgit v1.2.3 From 7d3d9d4a1808ea0a76a3263a91de7eee892b42cc Mon Sep 17 00:00:00 2001 From: Yogeswaran Umasankar Date: Sat, 20 Jan 2024 23:30:23 +0000 Subject: Updated changelog --- debian/changelog | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 2339609..72172c8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,12 @@ -chirp (1:20240117-1) unstable; urgency=medium - - * New upstream version. +chirp (1:20240117-1) UNRELEASED; urgency=medium + + * New upstream version 20240117. + * Removed python3-future from d/control + Build-Depends and Depends. (Closes: #20240117) + * Patch for replacing python3-future in chrip/chirp_common.py, + setup.py and requirements files. + * Revised old patches to fit new upstream version. + * Fixed lintian warning in copyright. -- Yogeswaran Umasankar Sat, 20 Jan 2024 18:00:00 +0000 -- cgit v1.2.3