From 64339f708970fac0d267bf5cab233a5bfcb69d9c Mon Sep 17 00:00:00 2001 From: tamannaaaaa Date: Thu, 27 Jun 2024 18:23:44 +0530 Subject: [PATCH 1/2] Improved the script file --- setup.py | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/setup.py b/setup.py index 68e78e7..a8c24aa 100644 --- a/setup.py +++ b/setup.py @@ -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="A library for differential synthesis.", 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 :: MIT License", + "Operating System :: OS Independent", ], - include_package_data=True + python_requires='>=3.6', ) From c2ccc39e3c96f9a01c316e175be4327af6bebebd Mon Sep 17 00:00:00 2001 From: Artiprocher Date: Fri, 28 Jun 2024 11:16:42 +0800 Subject: [PATCH 2/2] update script file based on tamannaaaaa --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a8c24aa..1f70f2a 100644 --- a/setup.py +++ b/setup.py @@ -15,14 +15,14 @@ else: setup( name="diffsynth", version="1.0.0", - description="A library for differential synthesis.", + description="Enjoy the magic of Diffusion models!", author="Artiprocher", packages=find_packages(), install_requires=install_requires, include_package_data=True, classifiers=[ "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", + "License :: OSI Approved :: Apache-2.0 License", "Operating System :: OS Independent", ], python_requires='>=3.6',