MCPcopy Index your code
hub / github.com/PaddlePaddle/FastDeploy / current_package_version

Function current_package_version

fastdeploy/utils.py:959–971  ·  view source on GitHub ↗

Read version.txt file and parse the fastdeploy version number. Args: Returns: str: fastdeploy version number, or "Unknown" if parsing fails

()

Source from the content-addressed store, hash-verified

957
958
959def current_package_version():
960 """
961 Read version.txt file and parse the fastdeploy version number.
962
963 Args:
964 Returns:
965 str: fastdeploy version number, or "Unknown" if parsing fails
966 """
967 version_info = get_version_info()
968 if version_info is None:
969 return "Unknown"
970
971 return version_info.get("fastdeploy_version", "Unknown")
972
973
974class DeprecatedOptionWarning(argparse.Action):

Callers 4

__init__.pyFile · 0.90
test_normal_versionMethod · 0.90
test_file_not_foundMethod · 0.90
test_no_version_lineMethod · 0.90

Calls 2

get_version_infoFunction · 0.85
getMethod · 0.45

Tested by 3

test_normal_versionMethod · 0.72
test_file_not_foundMethod · 0.72
test_no_version_lineMethod · 0.72