[elbe-devel] [PATCH] treewide: remove SQLALCHEMY_SILENCE_UBER_WARNING=1

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Mar 12 16:54:26 CET 2024


Since commit
ee216171d488 ("elbepack: don't transform all warnings into exceptions")
it is not a breaking error to have deprecation warnings, so stop
suppressing them.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 debian/python3-elbe-buildenv.postinst | 2 +-
 debian/rules                          | 2 +-
 elbepack/db.py                        | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/debian/python3-elbe-buildenv.postinst b/debian/python3-elbe-buildenv.postinst
index 3ff50085235a..2a90a4a1aac9 100644
--- a/debian/python3-elbe-buildenv.postinst
+++ b/debian/python3-elbe-buildenv.postinst
@@ -1,4 +1,4 @@
 #!/bin/bash
 set -e
-SQLALCHEMY_SILENCE_UBER_WARNING=1 elbe db init --name=root --password=foo
+elbe db init --name=root --password=foo
 #DEBHELPER#
diff --git a/debian/rules b/debian/rules
index 33e2e481f43b..0d51b5fdcd5b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,7 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 endif
 
 override_dh_auto_test:
-	SQLALCHEMY_SILENCE_UBER_WARNING=1 pytest --junit-xml=junit.xml
+	pytest --junit-xml=junit.xml
 
 override_dh_auto_configure:
 	cd docs && $(MAKE) $(MAKE_OPTS)
diff --git a/elbepack/db.py b/elbepack/db.py
index 471e7b168852..a93bddead2fa 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -34,7 +34,6 @@ from sqlalchemy.orm import declarative_base, relationship, scoped_session, sessi
 from sqlalchemy.orm.exc import NoResultFound
 
 
-os.environ['SQLALCHEMY_SILENCE_UBER_WARNING'] = '1'
 Base = declarative_base()
 
 

---
base-commit: ef9eeca734b372faba47b88df94950d5b465751d
change-id: 20240312-deprecation-warning-3f634d4e3798

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh at linutronix.de>



More information about the elbe-devel mailing list