Skip to content

Commit 1fd4942

Browse files
committed
Require argmaxtools 0.1.13 or greater
1 parent dea05df commit 1fd4942

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
argmaxtools
1+
argmaxtools>=0.1.13
22
torch
33
safetensors
44
mlx

setup.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1+
import os
2+
13
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")
215

3-
VERSION = "0.2.13"
416

517
with open("README.md") as f:
618
readme = f.read()
@@ -14,7 +26,7 @@
1426
long_description_content_type="text/markdown",
1527
author="Argmax, Inc.",
1628
install_requires=[
17-
"argmaxtools",
29+
"argmaxtools>=0.1.13",
1830
"torch",
1931
"safetensors",
2032
"mlx",
@@ -30,6 +42,9 @@
3042
"diffusionkit-cli=diffusionkit.mlx.scripts.generate_images:cli",
3143
],
3244
},
45+
cmdclass={
46+
"install": VersionInstallCommand,
47+
},
3348
classifiers=[
3449
"Development Status :: 4 - Beta",
3550
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)