Package: serpent
Version: 1.30-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu focal ubuntu-patch
Dear Maintainer,
In Ubuntu, the attached patch was applied to achieve the following:
* d/p/update-version-1.30.patch: Update __version__ to prevent import
failure. Only needed for 1.30 release.
Thanks for considering the patch.
-- System Information:
Debian Release: bullseye/sid
APT prefers focal
APT policy: (500, 'focal')
Architecture: amd64 (x86_64)
Kernel: Linux 5.4.0-12-generic (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru serpent-1.30/debian/patches/series serpent-1.30/debian/patches/series
--- serpent-1.30/debian/patches/series 2020-01-31 11:51:15.000000000 -0500
+++ serpent-1.30/debian/patches/series 2020-02-11 08:24:35.000000000 -0500
@@ -1 +1,2 @@
python3.patch
+update-version-1.30.patch
diff -Nru serpent-1.30/debian/patches/update-version-1.30.patch
serpent-1.30/debian/patches/update-version-1.30.patch
--- serpent-1.30/debian/patches/update-version-1.30.patch 1969-12-31
19:00:00.000000000 -0500
+++ serpent-1.30/debian/patches/update-version-1.30.patch 2020-02-11
08:24:26.000000000 -0500
@@ -0,0 +1,19 @@
+Description: Switch __version__ to 1.30. This is fixed in upstream master,
+ and therefore likely can be dropped on the next upstream (point) release.
+ Without this change, imports of serpent are failing with:
+ invalid literal for int() with base 10: 'dev0'
+Author: Corey Bryant <[email protected]>
+Bug: https://github.com/irmen/Serpent/issues/35
+Forwarded: no
+
+--- a/serpent.py
++++ b/serpent.py
+@@ -58,7 +58,7 @@
+ from collections.abc import KeysView, ValuesView, ItemsView
+
+
+-__version__ = "1.30.dev0"
++__version__ = "1.30"
+ __all__ = ["dump", "dumps", "load", "loads", "register_class",
"unregister_class", "tobytes"]
+
+