Package: release.debian.org Severity: normal Tags: trixie X-Debbugs-Cc: [email protected], [email protected] Control: affects -1 + src:python-bottle-sqlite User: [email protected] Usertags: pu
[ Reason ] Hi, while doing integration test of Trixie for my company; we found out that python-bottle-sqlite in Stable & OldStable does not work at all. While the Debian popcon is 13, ours alone is 1300 edge servers and we'd really like to see this library kept in shape. [ Impact ] Current library is broken and unusable. [ Tests ] extensive autopktests mimicking our real-life workflow were added in Forky. https://salsa.debian.org/python-team/packages/python-bottle-sqlite/-/blob/master/debian/tests/integration?ref_type=heads [ Risks ] patch was provided & tested by a third party and is minimal; sadly upstream project seems inactive. [ Checklist ] [x] *all* changes are documented in the d/changelog [x] I reviewed all changes and I approve them [x] attach debdiff against the package in (old)stable [x] the issue is verified as fixed in unstable [ Changes ] Python3.11 and onwards made backward incompatible changes to 'inspect' module. Greetings Alexandre diff -Nru python-bottle-sqlite-0.2.0/debian/changelog python-bottle-sqlite-0.2.0/debian/changelog --- python-bottle-sqlite-0.2.0/debian/changelog 2022-11-27 18:01:40.000000000 +0100 +++ python-bottle-sqlite-0.2.0/debian/changelog 2026-04-03 12:46:11.000000000 +0200 @@ -1,3 +1,10 @@ +python-bottle-sqlite (0.2.0-4+deb13u1) trixie; urgency=medium + + [ IOhannes m zmölnig ] + * Backport patch for Python-3.11+ (Closes: #1132009) + + -- Alexandre Detiste <[email protected]> Fri, 03 Apr 2026 12:46:11 +0200 + python-bottle-sqlite (0.2.0-4) unstable; urgency=medium [ Debian Janitor ] diff -Nru python-bottle-sqlite-0.2.0/debian/patches/0001-fix-AttributeError-module-inspect-has-no-attribute-g.patch python-bottle-sqlite-0.2.0/debian/patches/0001-fix-AttributeError-module-inspect-has-no-attribute-g.patch --- python-bottle-sqlite-0.2.0/debian/patches/0001-fix-AttributeError-module-inspect-has-no-attribute-g.patch 1970-01-01 01:00:00.000000000 +0100 +++ python-bottle-sqlite-0.2.0/debian/patches/0001-fix-AttributeError-module-inspect-has-no-attribute-g.patch 2026-04-03 12:43:32.000000000 +0200 @@ -0,0 +1,40 @@ +From: "crown.hg" <[email protected]> +Date: Fri, 17 May 2024 10:00:46 +0800 +Subject: fix: AttributeError: module 'inspect' has no attribute 'getargspec'. + +Origin: upstream +Bug: https://github.com/bottlepy/bottle-sqlite/pull/30 +Last-Update: 2026-03-31 + +--- + bottle_sqlite.py | 14 ++++++++++++-- + 1 file changed, 12 insertions(+), 2 deletions(-) + mode change 100755 => 100644 bottle_sqlite.py + +diff --git a/bottle_sqlite.py b/bottle_sqlite.py +old mode 100755 +new mode 100644 +index 7fa0e7b..a6e0404 +--- a/bottle_sqlite.py ++++ b/bottle_sqlite.py +@@ -111,8 +111,18 @@ class SQLitePlugin(object): + + # Test if the original callback accepts a 'db' keyword. + # Ignore it if it does not need a database handle. +- argspec = inspect.getargspec(_callback) +- if keyword not in argspec.args: ++ # argspec = inspect.getargspec(_callback) ++ # fix: AttributeError: module 'inspect' has no attribute 'getargspec'. ++ cbargs = [] ++ if hasattr(inspect, 'getargspec'): ++ argspec = inspect.getargspec(_callback) ++ cbargs = argspec.args ++ ++ if hasattr(inspect, 'getfullargspec'): ++ fullArgSpec = inspect.getfullargspec(_callback) ++ cbargs = fullArgSpec.args ++ ++ if keyword not in cbargs: + return callback + + def wrapper(*args, **kwargs): diff -Nru python-bottle-sqlite-0.2.0/debian/patches/series python-bottle-sqlite-0.2.0/debian/patches/series --- python-bottle-sqlite-0.2.0/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ python-bottle-sqlite-0.2.0/debian/patches/series 2026-04-03 12:43:32.000000000 +0200 @@ -0,0 +1 @@ +0001-fix-AttributeError-module-inspect-has-no-attribute-g.patch

