File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
mlflow_export_import/common Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 44from mlflow_export_import .common .timestamp_utils import ts_now_seconds , ts_now_fmt_utc
55from mlflow_export_import .common import filesystem as _filesystem
66from mlflow_export_import .common .source_tags import ExportFields
7+ from mlflow_export_import .common .pkg_version import get_version #
78
89
910def _mk_system_attr (script ):
@@ -14,6 +15,7 @@ def _mk_system_attr(script):
1415 import platform
1516 return {
1617 ExportFields .SYSTEM : {
18+ "package_version" : get_version (),
1719 "script" : os .path .basename (script ),
1820 "export_time" : ts_now_seconds ,
1921 "_export_time" : ts_now_fmt_utc ,
Original file line number Diff line number Diff line change 1+
2+ from importlib .metadata import version
3+
4+ pkg = "mlflow_export_import"
5+
6+ def get_version ():
7+ return version (pkg )
You can’t perform that action at this time.
0 commit comments