diff --git a/python/src/milvus_lite/__init__.py b/python/src/milvus_lite/__init__.py index 81d0578..6aaf63b 100644 --- a/python/src/milvus_lite/__init__.py +++ b/python/src/milvus_lite/__init__.py @@ -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