From 0e5980fbecf7ad9825fa2e93270015fec6e90034 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Mon, 9 Mar 2026 22:00:42 +0100 Subject: [PATCH] Marked as deprecated --- README.md | 10 +++++++++- pyproject.toml | 2 +- src/jeb_server_utils/__init__.py | 2 ++ src/jeb_server_utils/_core.py | 5 +++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36a3a0d..0f493b8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # jeb-server-utils -The utilities for the jeb server +The utilities for the jeb server. + +## Warning + +This library is deprecated. Use [jeb-core](https://gitea.jcloud-services.ddns.net/jCloud/jeb-core) instead ## Installation You can install the library using `pip`: @@ -31,6 +35,10 @@ A segment. For more details, see the function and method docstrings. ## Changelog + +### Version 0.2.0 +- marked as deprecated + ### Version 0.1.2 - Bug fix diff --git a/pyproject.toml b/pyproject.toml index 002cc0a..a7dcf36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "jeb-server-utils" -version = "0.1.2" +version = "0.2.0" description = "The utilities for the jeb server" dependencies = ["config-parser", "jeb-utils"] license = "Apache-2.0" \ No newline at end of file diff --git a/src/jeb_server_utils/__init__.py b/src/jeb_server_utils/__init__.py index d101882..c20d9b7 100644 --- a/src/jeb_server_utils/__init__.py +++ b/src/jeb_server_utils/__init__.py @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Warning: This library is deprecated. Use jeb-core instead. + ''' The utilities for the jeb server ''' diff --git a/src/jeb_server_utils/_core.py b/src/jeb_server_utils/_core.py index 3f8e6e3..87e5768 100644 --- a/src/jeb_server_utils/_core.py +++ b/src/jeb_server_utils/_core.py @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Warning: This library is deprecated. Use jeb-core instead. + from jeb_utils import exceptions, jeb_utils, utils import os import dbm @@ -27,6 +29,9 @@ __all__ = [ 'Topic', ] +# This library is deprecated. Use jeb-core instead. +warnings.warn('jeb-server-utils is deprecated. Use jeb-core (https://gitea.jcloud-services.ddns.net/jCloud/jeb-core) instead.', DeprecationWarning) + def _create_file_if_not_exists(path: str, content: bytes = b''): ''' Creates a file if it does not exist.