Control: tags 1147856 + patch Control: tags 1147856 + pending Dear maintainer,
I've prepared an NMU for ros2-colcon-argcomplete (versioned as 0.3.3+ds-2.2) and uploaded it to DELAYED/14. Please feel free to tell me if I should cancel it. cu Adrian
diffstat for ros2-colcon-argcomplete-0.3.3+ds ros2-colcon-argcomplete-0.3.3+ds changelog | 8 ++ patches/0001-Stop-using-pkg_resources-in-setup.py-44.patch | 40 +++++++++++++ patches/series | 1 3 files changed, 49 insertions(+) diff -Nru ros2-colcon-argcomplete-0.3.3+ds/debian/changelog ros2-colcon-argcomplete-0.3.3+ds/debian/changelog --- ros2-colcon-argcomplete-0.3.3+ds/debian/changelog 2026-02-21 21:03:58.000000000 +0200 +++ ros2-colcon-argcomplete-0.3.3+ds/debian/changelog 2026-10-17 19:59:01.000000000 +0300 @@ -1,3 +1,11 @@ +ros2-colcon-argcomplete (0.3.3+ds-2.2) unstable; urgency=medium + + * Non-maintainer upload. + * Backport upstream fix for FTBFS without pkg_resources. + (Closes: #1147856) + + -- Adrian Bunk <[email protected]> Sat, 17 Oct 2026 19:59:01 +0300 + ros2-colcon-argcomplete (0.3.3+ds-2.1) unstable; urgency=medium * Non-maintainer upload. diff -Nru ros2-colcon-argcomplete-0.3.3+ds/debian/patches/0001-Stop-using-pkg_resources-in-setup.py-44.patch ros2-colcon-argcomplete-0.3.3+ds/debian/patches/0001-Stop-using-pkg_resources-in-setup.py-44.patch --- ros2-colcon-argcomplete-0.3.3+ds/debian/patches/0001-Stop-using-pkg_resources-in-setup.py-44.patch 1970-01-01 02:00:00.000000000 +0200 +++ ros2-colcon-argcomplete-0.3.3+ds/debian/patches/0001-Stop-using-pkg_resources-in-setup.py-44.patch 2026-10-17 19:59:01.000000000 +0300 @@ -0,0 +1,40 @@ +From d3d469df947407834f4f9c9b15238e1df2225758 Mon Sep 17 00:00:00 2001 +From: Scott K Logan <[email protected]> +Date: Tue, 17 Feb 2026 09:23:33 -0600 +Subject: Stop using pkg_resources in setup.py (#44) + +--- + setup.py | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) + +diff --git a/setup.py b/setup.py +index 624a13d..dd1cabb 100644 +--- a/setup.py ++++ b/setup.py +@@ -13,13 +13,19 @@ if sys.platform == 'win32': + sys.exit(1) + + if 'BUILD_DEBIAN_PACKAGE' not in os.environ: +- from pkg_resources import parse_version ++ def _try_parse(raw): ++ raw = next(iter((raw or '').split('-', 1))) ++ for part in raw.split('.'): ++ try: ++ yield int(part) ++ except ValueError: ++ break ++ + from setuptools import __version__ as setuptools_version +- minimum_version = '40.5.0' +- if parse_version(setuptools_version) < parse_version(minimum_version): ++ if tuple(_try_parse(setuptools_version)) < (40, 5): + print( + "The Python package 'colcon-argcomplete' requires at least " +- 'setuptools version {minimum_version}'.format_map(locals()), ++ 'setuptools version 40.5', + file=sys.stderr) + sys.exit(1) + +-- +2.47.3 + diff -Nru ros2-colcon-argcomplete-0.3.3+ds/debian/patches/series ros2-colcon-argcomplete-0.3.3+ds/debian/patches/series --- ros2-colcon-argcomplete-0.3.3+ds/debian/patches/series 2026-02-21 21:03:37.000000000 +0200 +++ ros2-colcon-argcomplete-0.3.3+ds/debian/patches/series 2026-10-17 19:59:01.000000000 +0300 @@ -3,3 +3,4 @@ 0003-Suppress-deprecation-warnings-in-other-packages.patch 0004-Do-not-install-completion-scripts-with-setuptools.patch 0001-Drop-unnecessary-scope-qualifiers-to-please-flake8.patch +0001-Stop-using-pkg_resources-in-setup.py-44.patch

