File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change 11import os
2- import pkg_resources
32from 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
615setup (
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)
You can’t perform that action at this time.
0 commit comments