-
Notifications
You must be signed in to change notification settings - Fork 31
/
setup.py
59 lines (52 loc) · 1.63 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
54
55
56
57
58
59
import os
from setuptools import find_packages, setup
from setuptools.command.install import install
VERSION = "0.5.2"
class VersionInstallCommand(install):
def run(self):
install.run(self)
version_file = os.path.join(self.install_lib, "diffusionkit", "version.py")
with open(version_file, "w") as f:
f.write(f"__version__ = '{VERSION}'\n")
with open("README.md") as f:
readme = f.read()
setup(
name="diffusionkit",
version=VERSION,
url="https://github.com/argmaxinc/DiffusionKit",
description="Argmax Model Optimization Toolkit for Diffusion Models.",
long_description=readme,
long_description_content_type="text/markdown",
author="Argmax, Inc.",
install_requires=[
"argmaxtools>=0.1.13",
"torch",
"safetensors",
"mlx==0.17.3",
"jaxtyping",
"transformers",
"pillow",
"sentencepiece",
],
packages=find_packages(where="python/src"),
package_dir={"": "python/src"},
entry_points={
"console_scripts": [
"diffusionkit-cli=diffusionkit.mlx.scripts.generate_images:cli",
],
},
cmdclass={
"install": VersionInstallCommand,
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
],
)