Skip to content

Commit 996515c

Browse files
authored
Merge pull request #73 from modelscope/tamannaaaaa-my-branch
Improve the script file
2 parents bd5fc32 + c2ccc39 commit 996515c

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

setup.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
import os
2-
import pkg_resources
32
from setuptools import setup, find_packages
3+
import pkg_resources
4+
5+
# Path to the requirements file
6+
requirements_path = os.path.join(os.path.dirname(__file__), "requirements.txt")
47

8+
# Read the requirements from the requirements file
9+
if os.path.exists(requirements_path):
10+
with open(requirements_path, 'r') as f:
11+
install_requires = [str(r) for r in pkg_resources.parse_requirements(f)]
12+
else:
13+
install_requires = []
514

615
setup(
716
name="diffsynth",
8-
py_modules=["diffsynth"],
917
version="1.0.0",
10-
description="",
18+
description="Enjoy the magic of Diffusion models!",
1119
author="Artiprocher",
1220
packages=find_packages(),
13-
install_requires=[
14-
str(r)
15-
for r in pkg_resources.parse_requirements(
16-
open(os.path.join(os.path.dirname(__file__), "requirements.txt"))
17-
)
21+
install_requires=install_requires,
22+
include_package_data=True,
23+
classifiers=[
24+
"Programming Language :: Python :: 3",
25+
"License :: OSI Approved :: Apache-2.0 License",
26+
"Operating System :: OS Independent",
1827
],
19-
include_package_data=True
28+
python_requires='>=3.6',
2029
)

0 commit comments

Comments
 (0)