Skip to content

Commit 2317f62

Browse files
authored
🚀 add alpha version (#13)
1 parent cdb69fd commit 2317f62

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hatch_build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os
44
import platform
5+
import re
56
import shutil
67
import sys
78
import tarfile
@@ -83,7 +84,7 @@ def download_yamlfmt(self, target_os_info: str, target_arch: str) -> None:
8384
file_path = self.temp_dir / f"{self.BIN_NAME}_{target_os_info}_{target_arch}.tar.gz"
8485
request.urlretrieve(
8586
self.YAMLFMT_REPO.format(
86-
version=self.metadata.version,
87+
version=re.sub(r"[ab]\d+$", "", self.metadata.version), # 去掉版本号中的后缀, alpha/beta
8788
target_os_info=target_os_info_to_go_os.get(target_os_info, target_os_info),
8889
target_arch=target_arch_to_go_arch.get(target_arch, target_arch),
8990
),

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "google-yamlfmt"
3-
version = "0.16.0"
3+
version = "0.16.0-alpha.0"
44
description = "A tool for formatting YAML files, yamlfmt from Google: https://github.com/google/yamlfmt"
55
readme = "README.md"
66
license = { text = "MIT" }

0 commit comments

Comments
 (0)