File tree Expand file tree Collapse file tree 5 files changed +25
-2
lines changed Expand file tree Collapse file tree 5 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 48
48
- name : Install dependencies
49
49
run : |
50
50
python -m pip install --upgrade pip
51
+ pip install toml
51
52
pip install yapf==0.32.0
52
53
- name : Running yapf
53
54
run : |
Original file line number Diff line number Diff line change @@ -193,3 +193,6 @@ cython_debug/
193
193
.pypirc
194
194
195
195
kernel_meta /
196
+
197
+ # version file generated by setuptools-scm
198
+ /vllm_ascend /_version.py
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ # Should be mirrored in requirements.txt
3
+ requires = [
4
+ " setuptools>=64" ,
5
+ " setuptools-scm>=8" ,
6
+ " decorator" ,
7
+ " pyyaml" ,
8
+ " scipy" ,
9
+ " torch-npu == 2.5.1rc1"
10
+ ]
11
+ build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ decorator
2
2
pyyaml
3
3
scipy
4
4
setuptools
5
- torch_npu == 2.5.1rc1
5
+ setuptools-scm
6
+ torch-npu == 2.5.1rc1
Original file line number Diff line number Diff line change 21
21
from typing import List
22
22
23
23
from setuptools import setup
24
+ from setuptools_scm import get_version
24
25
25
26
ROOT_DIR = os .path .dirname (__file__ )
27
+ try :
28
+ VERSION = get_version (write_to = "vllm_ascend/_version.py" )
29
+ except LookupError :
30
+ # The checkout action in github action CI does not checkout the tag. It
31
+ # only checks out the commit. In this case, we set a dummy version.
32
+ VERSION = "0.0.0"
26
33
27
34
28
35
def get_path (* filepath ) -> str :
@@ -66,7 +73,7 @@ def _read_requirements(filename: str) -> List[str]:
66
73
name = 'vllm_ascend' ,
67
74
# Follow:
68
75
# https://packaging.python.org/en/latest/specifications/version-specifiers
69
- version = '0.1.0a1' ,
76
+ version = VERSION ,
70
77
author = "vLLM-Ascend team" ,
71
78
license = "Apache 2.0" ,
72
79
description = ("vLLM Ascend backend plugin" ),
You can’t perform that action at this time.
0 commit comments