Skip to content

Commit d462d19

Browse files
authored
revert to sqrbot-style __init__.py that doesn't break the build
1 parent 4a263eb commit d462d19

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

python/rubin/rag/__init__.py

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
# This file is part of rubin_rag.
2-
#
3-
# Developed for the LSST Data Management System.
4-
# This product includes software developed by the LSST Project
5-
# (https://www.lsst.org).
6-
# See the COPYRIGHT file at the top-level directory of this distribution
7-
# for details of code ownership.
8-
#
9-
# This program is free software: you can redistribute it and/or modify
10-
# it under the terms of the GNU General Public License as published by
11-
# the Free Software Foundation, either version 3 of the License, or
12-
# (at your option) any later version.
13-
#
14-
# This program is distributed in the hope that it will be useful,
15-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
# GNU General Public License for more details.
18-
#
19-
# You should have received a copy of the GNU General Public License
20-
# along with this program. If not, see <https://www.gnu.org/licenses/>.
1+
"""Rubin RAG-basd LLM Application."""
212

22-
# from .version import *
3+
__all__ = ["__version__"]
4+
5+
from importlib.metadata import PackageNotFoundError, version
6+
7+
__version__: str
8+
"""The version string of rubin.rag
9+
(PEP 440 / SemVer compatible).
10+
"""
11+
12+
try:
13+
__version__ = version(__name__)
14+
except PackageNotFoundError:
15+
# package is not installed
16+
__version__ = "0.0.1"

0 commit comments

Comments
 (0)