chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:18:33 +08:00
commit 4ececc111a
2017 changed files with 331736 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0
# DeepSpeed Team
import argparse
from packaging import version as pkg_version
parser = argparse.ArgumentParser()
parser.add_argument("--current_version",
type=str,
help="The current version being published to help set the next version.")
args = parser.parse_args()
current_version = pkg_version.parse(args.current_version)
with open('./version.txt', 'w') as fd:
fd.write(f'{current_version.major}.{current_version.minor}.{current_version.micro + 1}\n')
print(f'{current_version} -> {current_version.major}.{current_version.minor}.{current_version.micro + 1}')