-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (28 loc) · 998 Bytes
/
setup.py
File metadata and controls
34 lines (28 loc) · 998 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
30
31
32
import os
from setuptools import find_packages, setup
# Path to the requirements file
requirements_path = os.path.join(os.path.dirname(__file__), "requirements.txt")
# Read the requirements manually without pkg_resources
install_requires = []
if os.path.exists(requirements_path):
with open(requirements_path, 'r', encoding='utf-8') as f:
for line in f:
req = line.strip()
# 忽略空行和以 '#' 开头的注释行
if req and not req.startswith('#'):
install_requires.append(req)
setup(
name="DVD",
version="1.0.0",
author="Artiprocher",
packages=find_packages(),
install_requires=install_requires,
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
package_data={"diffsynth": ["tokenizer_configs/**/**/*.*"]},
python_requires='>=3.6',
)