Swap setup.py for pyproject.toml
This commit is contained in:
parent
1769baa382
commit
2510965027
40
pyproject.toml
Normal file
40
pyproject.toml
Normal file
@ -0,0 +1,40 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=42", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "mflux"
|
||||
version = "0.2.0"
|
||||
description = "A MLX port of FLUX based on the Huggingface Diffusers implementation."
|
||||
readme = "README.md"
|
||||
authors = [
|
||||
{ name = "Filip Strand", email = "strand.filip@gmail.com" }
|
||||
]
|
||||
classifiers = [
|
||||
"Programming Language :: Python :: 3",
|
||||
"Operating System :: MacOS",
|
||||
]
|
||||
python-requires = ">=3.11"
|
||||
dependencies = [
|
||||
"mlx>=0.16.0",
|
||||
"numpy>=2.0.0",
|
||||
"pillow>=10.4.0",
|
||||
"transformers>=4.44.0",
|
||||
"sentencepiece>=0.2.0",
|
||||
"torch>=2.3.1",
|
||||
"tqdm>=4.66.5",
|
||||
"huggingface-hub>=0.24.5",
|
||||
"safetensors>=0.4.4",
|
||||
"piexif>=1.1.3",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
homepage = "https://github.com/filipstrand/mflux"
|
||||
|
||||
[project.scripts]
|
||||
mflux-generate = "mflux.generate:main"
|
||||
mflux-save = "mflux.save:main"
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
include = ["mflux*"]
|
||||
37
setup.py
37
setup.py
@ -1,37 +0,0 @@
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name="mflux",
|
||||
version="0.2.0",
|
||||
author="Filip Strand",
|
||||
author_email="strand.filip@gmail.com",
|
||||
description="A MLX port of FLUX based on the Huggingface Diffusers implementation.",
|
||||
long_description=open('README.md').read(),
|
||||
long_description_content_type="text/markdown",
|
||||
url="https://github.com/filipstrand/mflux",
|
||||
packages=find_packages(where="src"),
|
||||
package_dir={"": "src"},
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
"mflux-generate=src.mflux.generate:main",
|
||||
"mflux-save=src.mflux.save:main",
|
||||
]
|
||||
},
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
"Operating System :: MacOS",
|
||||
],
|
||||
python_requires='>=3.11',
|
||||
install_requires=[
|
||||
'mlx>=0.16.0',
|
||||
'numpy>=2.0.0',
|
||||
'pillow>=10.4.0',
|
||||
'transformers>=4.44.0',
|
||||
'sentencepiece>=0.2.0',
|
||||
'torch>=2.3.1',
|
||||
'tqdm>=4.66.5',
|
||||
'huggingface-hub>=0.24.5',
|
||||
'safetensors>=0.4.4',
|
||||
'piexif>=1.1.3',
|
||||
],
|
||||
)
|
||||
Loading…
Reference in New Issue
Block a user