forked from vllm-project/vllm-neuron
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (44 loc) · 1.45 KB
/
setup.py
File metadata and controls
50 lines (44 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# SPDX-License-Identifier: Apache-2.0
import os
from pathlib import Path
from setuptools import find_packages, setup
def read_requirements(filename="core.txt"):
"""Read requirements from a file in the requirements directory."""
req_file = Path(__file__).parent / "requirements" / filename
if req_file.exists():
with open(req_file) as f:
# Filter out comments and empty lines
return [
line.strip()
for line in f
if line.strip() and not line.strip().startswith("#")
]
return []
# Collect configuration data files
data_files = []
for root, dirs, files in os.walk("configuration"):
data_files.append(
(os.path.relpath(root, "configuration"), [os.path.join(root, f) for f in files])
)
setup(
name="vllm-neuron",
version="0.3.0",
author="AWS Neuron team",
license="Apache 2.0",
description="vLLM Neuron backend plugin",
classifiers=[
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
packages=find_packages(exclude=("docs", "examples", "tests*", "csrc")),
python_requires=">=3.10",
install_requires=read_requirements(),
extras_require={
"test": read_requirements("test.txt"),
},
entry_points={
"vllm.platform_plugins": ["neuron = vllm_neuron:register"],
},
include_package_data=True,
)