Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1052606: python3-pyroute2: pyroute2.__version__ is "unknown"

4 views
Skip to first unread message

Nicolas Schier

unread,
Sep 25, 2023, 4:30:06 AM9/25/23
to
Package: python3-pyroute2
Version: 0.7.7-1
Severity: minor

Dear Maintainer,

python3 -c 'from pyroute2 import __version__; print(__version)' returns
"unknown" instead of the pyroute2 version number. We need to determine
the actual pyroute2 version to determine how to handle some aspects of
its API.

When I add

diff --git a/debian/rules b/debian/rules
index dd0e300..f94599c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,7 @@ override_dh_auto_clean:
rm -rf build .stestr *.egg-info .pybuild
find . -iname '*.pyc' -delete
for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
+ rm -f pyroute2/config/version.py

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
@@ -25,6 +26,7 @@ endif

override_dh_auto_build:
echo $$OSLO_PACKAGE_VERSION > VERSION
+ $(MAKE) VERSION
dh_auto_build

override_dh_installchangelogs:

pyroute2.__version__ contains the expected version number.

Thanks for packaging pyroute2!!

Kind regards,
Nicolas


-- System Information:
Debian Release: trixie/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.4.0-3-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-pyroute2 depends on:
ii python3 [python3-supported-min] 3.11.4-5+b1
ii python3-psutil 5.9.4-1+b1

python3-pyroute2 recommends no packages.

python3-pyroute2 suggests no packages.

-- no debconf information

Nicolas Schier

unread,
Feb 22, 2024, 6:50:05 AMFeb 22
to
Hi,

I prepared a merge-request for fixing it (and adding a test to check
against bug revival):

https://salsa.debian.org/openstack-team/third-party/pyroute2/-/merge_requests/1

Might someone take a look at it?
Shall I set someone specific as reviewer on the MR?

Kind regards,
Nicolas
0 new messages