IOPaint/setup.py

47 lines
1.6 KiB
Python
Raw Normal View History

2022-04-18 09:01:10 +02:00
import setuptools
from pathlib import Path
web_files = Path("lama_cleaner/app/build/").glob("**/*")
web_files = [str(it).replace("lama_cleaner/", "") for it in web_files]
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def load_requirements():
requirements_file_name = "requirements.txt"
requires = []
with open(requirements_file_name) as f:
for line in f:
if line:
requires.append(line.strip())
return requires
# https://setuptools.readthedocs.io/en/latest/setuptools.html#including-data-files
setuptools.setup(
name="lama-cleaner",
2023-02-07 14:43:52 +01:00
version="0.35.0",
2022-04-18 09:01:10 +02:00
author="PanicByte",
author_email="cwq1913@gmail.com",
description="Image inpainting tool powered by SOTA AI Model",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Sanster/lama-cleaner",
packages=setuptools.find_packages("./"),
package_data={"lama_cleaner": web_files},
install_requires=load_requirements(),
2022-12-10 14:31:51 +01:00
python_requires=">=3.7",
2022-04-18 09:01:10 +02:00
entry_points={"console_scripts": ["lama-cleaner=lama_cleaner:entry_point"]},
classifiers=[
2022-12-10 14:31:51 +01:00
"License :: OSI Approved :: Apache Software License",
2022-04-18 09:01:10 +02:00
"Operating System :: OS Independent",
2022-12-10 14:31:51 +01:00
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
2023-01-14 15:13:09 +01:00
"Programming Language :: Python :: 3.10",
2022-12-10 14:31:51 +01:00
"Topic :: Scientific/Engineering :: Artificial Intelligence",
2022-04-18 09:01:10 +02:00
],
)