forked from siliconflow/onediff
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
53 lines (49 loc) · 1.69 KB
/
setup.py
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from setuptools import find_packages, setup
def get_version():
variables = {}
with open("src/onediff/__init__.py", "r") as f:
for line in f:
if line.startswith("__version__"):
exec(line, variables)
return variables["__version__"]
setup(
name="onediff",
version=get_version(),
description="an out-of-the-box acceleration library for diffusion models",
url="https://github.com/siliconflow/onediff",
author="OneDiff contributors",
license="Apache-2.0",
license_files=("LICENSE",),
author_email="contact@siliconflow.com",
package_dir={"": "src"},
packages=find_packages("src"),
python_requires=">=3.8.0",
install_requires=[
"transformers>=4.27.1",
"diffusers>=0.19.3",
"accelerate",
"torch",
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
extras_require={
# optional dependencies, required by some features
# dev dependencies. Install them by `pip3 install 'onediff[dev]'`
"dev": [
"pre-commit",
],
},
)