Skip to content

Commit 6411384

Browse files
migrate to uv
1 parent 4b28915 commit 6411384

File tree

4 files changed

+2968
-3950
lines changed

4 files changed

+2968
-3950
lines changed

bbot_server/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import os
2+
from importlib.metadata import version, PackageNotFoundError
23
from pathlib import Path
34

5+
try:
6+
__version__ = version("bbot-server")
7+
except PackageNotFoundError:
8+
__version__ = "unknown"
9+
410
BBOT_SERVER_PROJECT_ROOT = Path(__file__).parent.parent
511

612
# set up logging
@@ -17,4 +23,4 @@
1723
from .interfaces import BBOTServer
1824

1925

20-
__all__ = ["BBOTServer", "BBOT_SERVER_DIR", "BBOT_SERVER_CONFIG", "BBOT_SERVER_PROJECT_ROOT"]
26+
__all__ = ["BBOTServer", "BBOT_SERVER_DIR", "BBOT_SERVER_CONFIG", "BBOT_SERVER_PROJECT_ROOT", "__version__"]

0 commit comments

Comments
 (0)