forked from danielgatis/rembg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
93 lines (84 loc) · 2.26 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import os
import pathlib
import sys
sys.path.append(os.path.dirname(__file__))
from setuptools import find_packages, setup
import versioneer
here = pathlib.Path(__file__).parent.resolve()
long_description = (here / "README.md").read_text(encoding="utf-8")
install_requires = [
"jsonschema",
"numpy",
"onnxruntime",
"opencv-python-headless",
"pillow",
"pooch",
"pymatting",
"scikit-image",
"scipy",
"tqdm",
]
extras_require = {
"dev": [
"bandit",
"black",
"flake8",
"imagehash",
"isort",
"mypy",
"pytest",
"setuptools",
"twine",
"wheel",
],
"gpu": ["onnxruntime-gpu"],
"cli": [
"aiohttp",
"asyncer",
"click",
"fastapi",
"filetype",
"gradio",
"python-multipart",
"uvicorn",
"watchdog",
],
}
entry_points = {
"console_scripts": [
"rembg=rembg.cli:main",
],
}
setup(
name="rembg",
description="Remove image background",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/danielgatis/rembg",
author="Daniel Gatis",
author_email="danielgatis@gmail.com",
classifiers=[
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
keywords="remove, background, u2net",
python_requires=">=3.8, <3.13",
packages=find_packages(),
install_requires=install_requires,
entry_points=entry_points,
extras_require=extras_require,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
)