[XPU][CI/Release][3/N] Add xpu wheel release to release pipeline (#52108)

Signed-off-by: Kunshang Ji <kunshang.ji@intel.com>
Signed-off-by: Kunshang Ji <jikunshang95@gmail.com>
This commit is contained in:
Kunshang Ji
2026-08-14 14:00:17 +08:00
committed by GitHub
parent ac7509e2b1
commit 8e6d8e4f6a
6 changed files with 99 additions and 29 deletions
+7 -3
View File
@@ -91,9 +91,9 @@ def parse_from_filename(file: str) -> WheelFileInfo:
else:
if "+" in version:
version_part, suffix = version.split("+", 1)
# Only treat known patterns as variants (rocmXXX, cuXXX, cpu)
# Only treat known patterns as variants (rocmXXX, cuXXX, cpu, xpu)
# Git hashes and other suffixes are NOT variants
if suffix.startswith(("rocm", "cu", "cpu")):
if suffix.startswith(("rocm", "cu", "cpu", "xpu")):
variant = suffix
version = version_part
# Otherwise keep the full version string (variant stays None)
@@ -429,7 +429,11 @@ if __name__ == "__main__":
if PY_VERSION_RE.match(version):
# upload-wheels.sh ensures no "dev" is in args.version
wheel_files = list(
filter(lambda x: version in x and "dev" not in x, wheel_files)
filter(
lambda x: (version in x and "dev" not in x)
or (x.startswith("triton-") and "+xpu-" in x),
wheel_files,
)
)
print(f"Non-nightly version detected, wheel files used: {wheel_files}")
else: