[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1110098: unblock: python-hpilo/4.4.3-5



There are actually more changes in the version that is requested to be
unblocked because 4.4.3-4 was never uploaded. So the debdiff has to be
from -3 to -5 and is attached.
diff -Nru python-hpilo-4.4.3/debian/changelog python-hpilo-4.4.3/debian/changelog
--- python-hpilo-4.4.3/debian/changelog	2024-02-28 07:13:16.000000000 +0100
+++ python-hpilo-4.4.3/debian/changelog	2025-07-26 20:02:42.000000000 +0200
@@ -1,3 +1,29 @@
+python-hpilo (4.4.3-5) unstable; urgency=medium
+
+  [ Alexandre Detiste ]
+  * Remove trailing comma from Maintainer: field that confused UDD & the
+    Tracker
+
+  [ Giacomo Paviano ]
+  * Make `hpilo_cli get_product_name` Python3-compatible (Closes: #1109265)
+
+ -- Otto Kekäläinen <otto@debian.org>  Sat, 26 Jul 2025 11:02:42 -0700
+
+python-hpilo (4.4.3-4) unstable; urgency=medium
+
+  * d/control: Adopt package. Add mysel as Uploaders. Closes: #888079.
+  * Packaging update
+  * Standards-Version: 4.6.2 (routine-update)
+  * Reorder sequence of d/control fields by cme (routine-update)
+  * Testsuite: autopkgtest-pkg-python (routine-update)
+  * Build-Depends: s/dh-python/dh-sequence-python3/ (routine-update)
+  * Rules-Requires-Root: no (routine-update)
+  * Remove field Testsuite on binary package python-hpilo-doc that
+    duplicates source.
+  * d/upstream/metadata: Add metadata file.
+
+ -- Emmanuel Arias <eamanu@debian.org>  Wed, 13 Mar 2024 19:15:08 -0300
+
 python-hpilo (4.4.3-3) unstable; urgency=medium
 
   * orphan
diff -Nru python-hpilo-4.4.3/debian/control python-hpilo-4.4.3/debian/control
--- python-hpilo-4.4.3/debian/control	2024-02-28 07:13:16.000000000 +0100
+++ python-hpilo-4.4.3/debian/control	2025-07-26 19:56:40.000000000 +0200
@@ -1,25 +1,26 @@
 Source: python-hpilo
+Maintainer: Debian Python Team <team+python@tracker.debian.org>
+Uploaders: Emmanuel Arias <eamanu@debian.org>,
 Section: python
+Testsuite: autopkgtest-pkg-python
 Priority: optional
-Maintainer: Debian Python Team <team+python@tracker.debian.org>,
 Build-Depends: debhelper-compat (= 13),
-               dh-python,
+               dh-sequence-python3,
                python3,
                python3-setuptools,
                python3-sphinx,
-               python3-sphinx-rtd-theme,
-Standards-Version: 4.6.1
-Homepage: https://github.com/seveas/python-hpilo
-Vcs-Git: https://salsa.debian.org/python-team/packages/python-hpilo.git
+               python3-sphinx-rtd-theme
+Standards-Version: 4.6.2
 Vcs-Browser: https://salsa.debian.org/python-team/packages/python-hpilo
+Vcs-Git: https://salsa.debian.org/python-team/packages/python-hpilo.git
+Homepage: https://github.com/seveas/python-hpilo
+Rules-Requires-Root: no
 
 Package: python3-hpilo
 Architecture: all
 Depends: ${misc:Depends},
-         ${python3:Depends},
-Suggests: python-hpilo-doc,
-Breaks: python-hpilo,
-Replaces: python-hpilo,
+         ${python3:Depends}
+Suggests: python-hpilo-doc
 Description: HP iLO XML interface access from Python (Python 3)
  This module will make it easy for you to access the Integrated Lights Out
  management interface of your HP hardware. It supports RILOE II, iLO, iLO 2, iLO
@@ -29,10 +30,10 @@
 
 Package: python-hpilo-doc
 Architecture: all
+Multi-Arch: foreign
 Section: doc
 Depends: ${misc:Depends},
-         ${sphinxdoc:Depends},
-Multi-Arch: foreign
+         ${sphinxdoc:Depends}
 Description: HP iLO XML interface access from Python - Documentation
  This module will make it easy for you to access the Integrated Lights Out
  management interface of your HP hardware. It supports RILOE II, iLO, iLO 2, iLO
diff -Nru python-hpilo-4.4.3/debian/patches/python3-fixes-01.patch python-hpilo-4.4.3/debian/patches/python3-fixes-01.patch
--- python-hpilo-4.4.3/debian/patches/python3-fixes-01.patch	1970-01-01 01:00:00.000000000 +0100
+++ python-hpilo-4.4.3/debian/patches/python3-fixes-01.patch	2025-07-26 20:00:56.000000000 +0200
@@ -0,0 +1,28 @@
+Description: Fix AttributeError for 'im_func', 'func_code' in Python 3
+ Simplified the introspection logic for hpilo.Ilo methods by unifying
+ Python 2 and 3 compatibility checks. This includes handling attributes
+ __code__/func_code and __defaults__/func_defaults.
+Bug-Debian: https://bugs.debian.org/1109265
+Forwarded: https://github.com/seveas/python-hpilo/pull/302
+Author: Giacomo Paviano <pavianogiacomo@gmail.com>
+Reviewed-By: Andrea Pappacoda <tachi@debian.org>
+Last-Update: 2025-07-22
+
+--- a/hpilo_cli
++++ b/hpilo_cli
+@@ -251,12 +251,12 @@ def hpilo_help(option, opt_str, value, parser, exitcode=0):
+     else:
+         if value in ilo_methods:
+             import re, textwrap
+-            func = getattr(hpilo.Ilo, value).im_func
+-            code = func.func_code
++            func = getattr(hpilo.Ilo, value) if PY3 else getattr(hpilo.Ilo, value).im_func
++            code = func.__code__ if PY3 else func.func_code
+             args = ''
+             if code.co_argcount > 1:
+                 args = code.co_varnames[:code.co_argcount]
+-                defaults = func.func_defaults or []
++                defaults = func.__defaults__ if PY3 else func.func_defaults or []
+                 args = ["%s=%s" % (x, x.upper()) for x in args[:len(args)-len(defaults)]] + \
+                        ["[%s=%s]" % (x,str(y)) for x, y in zip(args[len(args)-len(defaults):], defaults) if x != 'progress']
+                 args = ' ' + ' '.join(args[1:])
diff -Nru python-hpilo-4.4.3/debian/patches/python3-fixes-02.patch python-hpilo-4.4.3/debian/patches/python3-fixes-02.patch
--- python-hpilo-4.4.3/debian/patches/python3-fixes-02.patch	1970-01-01 01:00:00.000000000 +0100
+++ python-hpilo-4.4.3/debian/patches/python3-fixes-02.patch	2025-07-26 20:00:56.000000000 +0200
@@ -0,0 +1,20 @@
+Description: Fix SyntaxWarning for invalid escape sequence in re.sub
+ Replaced the regular expression '\s+' with a raw string r'\s+' to
+ resolve the SyntaxWarning: invalid escape sequence '\s'.
+Bug-Debian: https://bugs.debian.org/1109265
+Forwarded: https://github.com/seveas/python-hpilo/pull/302
+Author: Giacomo Paviano <pavianogiacomo@gmail.com>
+Reviewed-By: Andrea Pappacoda <tachi@debian.org>
+Last-Update: 2025-07-22
+
+--- a/hpilo_cli
++++ b/hpilo_cli
+@@ -266,7 +266,7 @@ def hpilo_help(option, opt_str, value, parser, exitcode=0):
+             doc = re.sub(r':[a-z]+:`(.*?)`', r'\1', doc)
+             if 'API note' in doc:
+                 doc = doc[:doc.find('API note')].strip()
+-            doc = re.sub('\s+', ' ', doc)
++            doc = re.sub(r'\s+', ' ', doc)
+             print(textwrap.fill(doc, 80))
+         else:
+             print("No such method: %s" % value)
diff -Nru python-hpilo-4.4.3/debian/patches/series python-hpilo-4.4.3/debian/patches/series
--- python-hpilo-4.4.3/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ python-hpilo-4.4.3/debian/patches/series	2025-07-26 20:00:56.000000000 +0200
@@ -0,0 +1,2 @@
+python3-fixes-01.patch
+python3-fixes-02.patch
diff -Nru python-hpilo-4.4.3/debian/rules python-hpilo-4.4.3/debian/rules
--- python-hpilo-4.4.3/debian/rules	2024-02-28 07:13:16.000000000 +0100
+++ python-hpilo-4.4.3/debian/rules	2025-07-26 19:56:40.000000000 +0200
@@ -13,7 +13,7 @@
 export PYBUILD_NAME=hpilo
 
 %:
-	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+	dh $@ --with sphinxdoc --buildsystem=pybuild
 
 override_dh_auto_build:
 	dh_auto_build
diff -Nru python-hpilo-4.4.3/debian/upstream/metadata python-hpilo-4.4.3/debian/upstream/metadata
--- python-hpilo-4.4.3/debian/upstream/metadata	1970-01-01 01:00:00.000000000 +0100
+++ python-hpilo-4.4.3/debian/upstream/metadata	2025-07-26 19:56:40.000000000 +0200
@@ -0,0 +1,4 @@
+---
+Bug-Database: https://github.com/seveas/python-hpilo/issues
+Bug-Submit: https://github.com/seveas/python-hpilo/issues/new
+Repository-Browse: https://github.com/seveas/python-hpilo

Reply to: