From d10d06de515d00430305178ee659fb16b6cb40ec Mon Sep 17 00:00:00 2001 From: Sebastian Palencsar Date: Fri, 26 Jun 2026 19:28:05 +0200 Subject: [PATCH] fix: allow editable install before bauh is on PYTHONPATH --- bearhub/__init__.py | 6 +++++- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bearhub/__init__.py b/bearhub/__init__.py index 865653c8..ecbb5a43 100644 --- a/bearhub/__init__.py +++ b/bearhub/__init__.py @@ -1,6 +1,10 @@ import os -from bauh import __app_name__, __version__ +try: + from bauh import __app_name__, __version__ +except ModuleNotFoundError: + __app_name__ = "bearhub" + __version__ = "0.10.7" ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) diff --git a/pyproject.toml b/pyproject.toml index ab8f8fd9..6105e7d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ Repository = "https://github.com/spalencsar/bearhub" license-files = ["LICENSE"] [tool.setuptools.dynamic] -version = {attr = "bearhub.__version__"} +version = {attr = "bauh.__version__"} [tool.setuptools.packages.find] exclude = ["tests.*", "tests"]