forked from sgl-project/SpecForge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (21 loc) · 761 Bytes
/
setup.py
File metadata and controls
29 lines (21 loc) · 761 Bytes
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
from setuptools import find_packages, setup
def read_requirements():
with open(f"requirements.txt", "r") as f:
lines = (line.strip() for line in f)
return [line for line in lines if line and not line.startswith(("#", "--"))]
def read_readme():
with open("README.md", "r") as f:
return f.read()
def read_version():
with open("version.txt", "r") as f:
return f.read().strip()
setup(
name="specforge",
packages=find_packages(exclude=["configs", "scripts", "tests"]),
version=read_version(),
install_requires=read_requirements(),
long_description=read_readme(),
long_description_content_type="text/markdown",
author="SGLang Team",
url="https://github.com/sgl-project/SpecForge",
)