fix: allow editable install before bauh is on PYTHONPATH

This commit is contained in:
Sebastian Palencsar
2026-06-26 19:28:05 +02:00
parent 502e7e640e
commit d10d06de51
2 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
import os
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__))

View File

@@ -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"]