|
@@ -11,6 +11,52 @@ here = pathlib.Path(__file__).parent.resolve()
|
|
|
|
|
|
long_description = (here / "README.md").read_text(encoding="utf-8")
|
|
|
|
|
|
+install_requires = [
|
|
|
+ "numpy",
|
|
|
+ "onnxruntime",
|
|
|
+ "opencv-python-headless",
|
|
|
+ "pillow",
|
|
|
+ "pooch",
|
|
|
+ "pymatting",
|
|
|
+ "scikit-image",
|
|
|
+ "scipy",
|
|
|
+]
|
|
|
+
|
|
|
+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",
|
|
|
+ "tqdm",
|
|
|
+ "uvicorn",
|
|
|
+ "watchdog",
|
|
|
+ ],
|
|
|
+}
|
|
|
+
|
|
|
+entry_points = {
|
|
|
+ "console_scripts": [
|
|
|
+ "rembg=rembg.cli:main",
|
|
|
+ ],
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
setup(
|
|
|
name="rembg",
|
|
|
description="Remove image background",
|
|
@@ -35,37 +81,11 @@ setup(
|
|
|
"Programming Language :: Python :: 3.11",
|
|
|
],
|
|
|
keywords="remove, background, u2net",
|
|
|
- packages=["rembg", "rembg.sessions", "rembg.commands"],
|
|
|
python_requires=">=3.8, <3.12",
|
|
|
- install_requires=[
|
|
|
- "aiohttp",
|
|
|
- "asyncer",
|
|
|
- "click",
|
|
|
- "fastapi",
|
|
|
- "filetype",
|
|
|
- "gradio",
|
|
|
- "imagehash",
|
|
|
- "numpy",
|
|
|
- "onnxruntime",
|
|
|
- "opencv-python-headless",
|
|
|
- "pillow",
|
|
|
- "pooch",
|
|
|
- "pymatting",
|
|
|
- "python-multipart",
|
|
|
- "scikit-image",
|
|
|
- "scipy",
|
|
|
- "tqdm",
|
|
|
- "uvicorn",
|
|
|
- "watchdog",
|
|
|
- ],
|
|
|
- entry_points={
|
|
|
- "console_scripts": [
|
|
|
- "rembg=rembg.cli:main",
|
|
|
- ],
|
|
|
- },
|
|
|
- extras_require={
|
|
|
- "gpu": ["onnxruntime-gpu"],
|
|
|
- },
|
|
|
+ packages=find_packages(),
|
|
|
+ install_requires=install_requires,
|
|
|
+ entry_points=entry_points,
|
|
|
+ extras_require=extras_require,
|
|
|
version=versioneer.get_version(),
|
|
|
cmdclass=versioneer.get_cmdclass(),
|
|
|
)
|