Merge pull request #73 from modelscope/tamannaaaaa-my-branch

Improve the script file
This commit is contained in:
Artiprocher
2024-06-28 11:21:13 +08:00
committed by GitHub

View File

@@ -1,20 +1,29 @@
import os
import pkg_resources
from setuptools import setup, find_packages
import pkg_resources
# Path to the requirements file
requirements_path = os.path.join(os.path.dirname(__file__), "requirements.txt")
# Read the requirements from the requirements file
if os.path.exists(requirements_path):
with open(requirements_path, 'r') as f:
install_requires = [str(r) for r in pkg_resources.parse_requirements(f)]
else:
install_requires = []
setup(
name="diffsynth",
py_modules=["diffsynth"],
version="1.0.0",
description="",
description="Enjoy the magic of Diffusion models!",
author="Artiprocher",
packages=find_packages(),
install_requires=[
str(r)
for r in pkg_resources.parse_requirements(
open(os.path.join(os.path.dirname(__file__), "requirements.txt"))
)
install_requires=install_requires,
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache-2.0 License",
"Operating System :: OS Independent",
],
include_package_data=True
python_requires='>=3.6',
)