- Package:
- python3-pyroute2
- Source:
- python3-pyroute2
- Submitter:
- Nicolas Schier
- Date:
- 2024-02-22 18:39:03 UTC
- Severity:
- normal
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
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
We believe that the bug you reported is fixed in the latest version of pyroute2, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1052606@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Thomas Goirand <zigo@debian.org> (supplier of updated pyroute2 package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Thu, 22 Feb 2024 18:25:30 +0100 Source: pyroute2 Architecture: source Version: 0.7.7-4 Distribution: unstable Urgency: medium Maintainer: Debian OpenStack <team+openstack@tracker.debian.org> Changed-By: Thomas Goirand <zigo@debian.org> Closes: 1052606 Changes: pyroute2 (0.7.7-4) unstable; urgency=medium . [ Nicolas Schier ] * Add test against unknown version * Fix pyroute2.__version__ to hold real version number (Closes: #1052606) Checksums-Sha1: 8f60ed601c9e7d3b5463b0bde83217a96b3d60f1 2459 pyroute2_0.7.7-4.dsc cc97c2786d9c6d3850345775e0d6759b8b4a24a5 6612 pyroute2_0.7.7-4.debian.tar.xz 238de7c3c24901caca08f7dbe540c76822ba7074 11833 pyroute2_0.7.7-4_amd64.buildinfo Checksums-Sha256: 54d54de14ded437efe20538d9059aa2bdb446bab31efeaeac25c52e0cc5c4bc4 2459 pyroute2_0.7.7-4.dsc 44550dffdde9bc83342a31c8526217738e13048509775723771aa7da17bb54e8 6612 pyroute2_0.7.7-4.debian.tar.xz fffd4a77938663b97f6dc7eac4ea9657aa14b98aaf91fc950306e9b3f1cd3917 11833 pyroute2_0.7.7-4_amd64.buildinfo Files: 9a2b2418aed6a500ded967ab0939228e 2459 python optional pyroute2_0.7.7-4.dsc a8d2f8befcf2f29d3074b706e94128d0 6612 python optional pyroute2_0.7.7-4.debian.tar.xz a7af0abb41edacb8d7dc66e9755dc8a5 11833 python optional pyroute2_0.7.7-4_amd64.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmXXhCEACgkQ1BatFaxr Q/7dYA//cReaBmhr+gM/GjPBk5g5EcP1yFxdaSHWUAa9GC0Ssqc9BrRec0ToRNnd E2wCy1uwQr2RVpJNAU2bwPYzo0wk3DQBp0j9/4ovZCPrbbVorViddEev7DyrLROu CVPM1bVO30bxs/FENUaKK1mwMBO8nA2z7+7YfWzJ7dRKRfDMsNUnspU/g8RPDZkU JJH51uxXt3uBtOg19Q/z4v9qovXLU/17W0LCyZF83WOD10nPYkVFCp+SHxVYoKse WBwAxvUic7EnHzcZTFmPsHqqDm9DhZY+347yobDxjowNR0Heap8xEle87MS3KV0g FVW5dFscJru9OWH3JzcGUB603VV9m0H8JsV2qPE1UVPvjEPcRf+PaUL+nhrro+Dd aqDyFTARd8nzw6RFE6dDuYtLXTvm2pYp3tnVMFk/ezXti5KryPhPykIBQ2kJf8gY VOQDY6E8T2XFCmFq7dAcX+xn6nLwZHBxFTOnN7BUjpPE9VcQ8kqCPB2plyG4xUf2 /UPEUcqAuM/flkj1wtuxbcehAEpshu06keqxycD2o7D8Y/jYngM9asvg7gTi/8fL M5XzdNamAxy9hH6NbbypoaabAcf8Rh8S0eHQAQ6/VK9/fIC1TUqtNHOPYL5csS6z gAOB130OM4NcFI4py8iDy1Te/xY/npP/D6WeXMg2Rt7nrKHtx6w= =PtRT -----END PGP SIGNATURE-----