From 3cfc717d15dfcf9b7c4710f4a5a17dd31abbdd89 Mon Sep 17 00:00:00 2001 From: ZeYi Lin <944270057@qq.com> Date: Wed, 21 Aug 2024 16:36:39 +0800 Subject: [PATCH 1/2] Update build_pypi.py --- script/build_pypi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/build_pypi.py b/script/build_pypi.py index d977b0b7..c25aa611 100644 --- a/script/build_pypi.py +++ b/script/build_pypi.py @@ -19,8 +19,8 @@ # 设置版本号 version = os.getenv("VERSION") if not version: - raise ValueError("尚未指定构建版本号") -with open("swanlab/package.json", 'r+') as f: + raise ValueError("尚未指定构建版本号,请设置VERSION环境变量,如`export VERSION=0.6.0`") +with open("swanlab/package.json", "r+") as f: p = json.load(f) p["version"] = version f.seek(0) From 53bde0db4d9f7c26347b7ec8ef9fb52f879e2005 Mon Sep 17 00:00:00 2001 From: KAAANG <79990647+SAKURA-CAT@users.noreply.github.com> Date: Wed, 21 Aug 2024 16:51:30 +0800 Subject: [PATCH 2/2] reset --- script/build_pypi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/build_pypi.py b/script/build_pypi.py index c25aa611..1e52b306 100644 --- a/script/build_pypi.py +++ b/script/build_pypi.py @@ -20,7 +20,7 @@ version = os.getenv("VERSION") if not version: raise ValueError("尚未指定构建版本号,请设置VERSION环境变量,如`export VERSION=0.6.0`") -with open("swanlab/package.json", "r+") as f: +with open("swanlab/package.json", 'r+') as f: p = json.load(f) p["version"] = version f.seek(0)