From 4326e9d78c8c26700ffc1b91d2f68d36198b948d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com>
Date: Mon, 25 Sep 2023 09:57:16 +0200
Subject: [PATCH] MAINT: deprecate old import

---
 src/caosdb/__init__.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/caosdb/__init__.py b/src/caosdb/__init__.py
index cb62fb04..0fed5817 100644
--- a/src/caosdb/__init__.py
+++ b/src/caosdb/__init__.py
@@ -1,4 +1,10 @@
 """
 Deprecated
 """
+
+from warnings import warn
+
 from linkahead import *
+
+warn(("CaosDB was renamed to LinkAhead. Please import the library as `import linkahead`. Using the"
+      " old name (caosdb) is deprecated."), DeprecationWarning)
-- 
GitLab