Skip to content

Commit

Permalink
Add version info (#125)
Browse files Browse the repository at this point in the history
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
  • Loading branch information
junjiejiangjjj authored May 16, 2024
1 parent 1dc9bf9 commit 49ce8eb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/src/milvus_lite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.


from contextlib import suppress
from pkg_resources import DistributionNotFound, get_distribution


__version__ = "0.0.0.dev"


with suppress(DistributionNotFound):
__version__ = get_distribution("milvus_lite").version

0 comments on commit 49ce8eb

Please sign in to comment.