Skip to content

Commit 20b7460

Browse files
committed
[VERSION] Update flagtree whl version on triton_v3.2.x
1 parent de9f0cf commit 20b7460

File tree

9 files changed

+62
-316
lines changed

9 files changed

+62
-316
lines changed

.github/workflows/aipu-build-and-test.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CD-Ascend-triton_v3.2.x
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
WHL_VER:
7+
description: '0.5.0.dev1 < 0.5.0a1 < 0.5.0b1 < 0.5.0rc1 < 0.5.0 < 0.5.0.post1'
8+
required: true
9+
default: '0.5.0'
10+
PYTHON_VER:
11+
required: true
12+
default: '3.11'
13+
PLATFORM:
14+
required: true
15+
default: 'x86_64'
16+
FLAGTREE_PYPI_KEY:
17+
required: false
18+
workflow_call:
19+
inputs:
20+
WHL_VER:
21+
type: string
22+
required: true
23+
default: '0.5.0'
24+
PYTHON_VER:
25+
type: string
26+
required: true
27+
default: '3.11'
28+
PLATFORM:
29+
type: string
30+
required: true
31+
default: 'x86_64'
32+
FLAGTREE_PYPI_KEY:
33+
type: string
34+
required: false
35+
36+
jobs:
37+
call-delivery:
38+
uses: flagos-ai/flagtree/.github/workflows/ascend-delivery.yml@main
39+
with:
40+
WHL_VER: ${{ inputs.WHL_VER }}
41+
PYTHON_VER: ${{ inputs.PYTHON_VER }}
42+
PLATFORM: ${{ inputs.PLATFORM }}
43+
FLAGTREE_PYPI_KEY: ${{ inputs.FLAGTREE_PYPI_KEY }}
44+
secrets: inherit

.github/workflows/hcu-build-and-test.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/iluvatar-build-and-test.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/metax-build-and-test.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/mthreads-build-and-test.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/tsingmicro-build-and-test.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/xpu-build-and-test.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

python/setup.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,13 +763,30 @@ def get_git_commit_hash(length=8):
763763
packages, package_dir, package_data = helper.configure_cambricon_packages_and_data(
764764
packages, package_dir, package_data)
765765

766+
767+
def get_flagtree_version():
768+
import hashlib
769+
PYPI_KEY_MD5 = "ed98ae2a2ba0429b189537c0d3dbef43"
770+
key = os.environ.get("FLAGTREE_PYPI_KEY", "")
771+
flagtree_ver = os.environ.get("FLAGTREE_WHEEL_VERSION", "")
772+
if flagtree_ver:
773+
if hashlib.md5(key.encode()).hexdigest() == PYPI_KEY_MD5:
774+
return flagtree_ver
775+
else:
776+
return flagtree_ver + get_git_commit_hash().replace("+", ".")
777+
backend = os.environ.get("FLAGTREE_BACKEND", "")
778+
if backend:
779+
return "0.5.0+" + backend + get_git_commit_hash().replace("+", ".")
780+
return "0.5.0" + get_git_commit_hash()
781+
782+
766783
readme_path = os.path.join(get_base_dir(), "README.md")
767784
with open(readme_path, "r", encoding="utf-8") as fh:
768785
long_description = fh.read()
769786

770787
setup(
771788
name=os.environ.get("FLAGTREE_WHEEL_NAME", "flagtree"),
772-
version=os.environ.get("FLAGTREE_WHEEL_VERSION", "") or "0.5.0" + get_git_commit_hash(),
789+
version=get_flagtree_version(),
773790
author="FlagOS",
774791
author_email="contact@flagos.io",
775792
description=

0 commit comments

Comments
 (0)