File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
- argmaxtools
1
+ argmaxtools >= 0.1.13
2
2
torch
3
3
safetensors
4
4
mlx
Original file line number Diff line number Diff line change
1
+ import os
2
+
1
3
from setuptools import find_packages , setup
4
+ from setuptools .command .install import install
5
+
6
+ VERSION = "0.2.16"
7
+
8
+
9
+ class VersionInstallCommand (install ):
10
+ def run (self ):
11
+ install .run (self )
12
+ version_file = os .path .join (self .install_lib , "diffusionkit" , "version.py" )
13
+ with open (version_file , "w" ) as f :
14
+ f .write (f"__version__ = '{ VERSION } '\n " )
2
15
3
- VERSION = "0.2.13"
4
16
5
17
with open ("README.md" ) as f :
6
18
readme = f .read ()
14
26
long_description_content_type = "text/markdown" ,
15
27
author = "Argmax, Inc." ,
16
28
install_requires = [
17
- "argmaxtools" ,
29
+ "argmaxtools>=0.1.13 " ,
18
30
"torch" ,
19
31
"safetensors" ,
20
32
"mlx" ,
30
42
"diffusionkit-cli=diffusionkit.mlx.scripts.generate_images:cli" ,
31
43
],
32
44
},
45
+ cmdclass = {
46
+ "install" : VersionInstallCommand ,
47
+ },
33
48
classifiers = [
34
49
"Development Status :: 4 - Beta" ,
35
50
"Intended Audience :: Developers" ,
You can’t perform that action at this time.
0 commit comments