setup.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import os
  2. import pathlib
  3. import sys
  4. sys.path.append(os.path.dirname(__file__))
  5. from setuptools import find_packages, setup
  6. import versioneer
  7. here = pathlib.Path(__file__).parent.resolve()
  8. long_description = (here / "README.md").read_text(encoding="utf-8")
  9. setup(
  10. name="rembg",
  11. description="Remove image background",
  12. long_description=long_description,
  13. long_description_content_type="text/markdown",
  14. url="https://github.com/danielgatis/rembg",
  15. author="Daniel Gatis",
  16. author_email="[email protected]",
  17. classifiers=[
  18. "License :: OSI Approved :: MIT License",
  19. "Topic :: Scientific/Engineering",
  20. "Topic :: Scientific/Engineering :: Mathematics",
  21. "Topic :: Scientific/Engineering :: Artificial Intelligence",
  22. "Topic :: Software Development",
  23. "Topic :: Software Development :: Libraries",
  24. "Topic :: Software Development :: Libraries :: Python Modules",
  25. "Programming Language :: Python",
  26. "Programming Language :: Python :: 3 :: Only",
  27. "Programming Language :: Python :: 3.8",
  28. "Programming Language :: Python :: 3.9",
  29. "Programming Language :: Python :: 3.10",
  30. ],
  31. keywords="remove, background, u2net",
  32. packages=["rembg"],
  33. python_requires=">3.7, <3.11",
  34. install_requires=[
  35. "aiohttp>=3.8.1",
  36. "asyncer>=0.0.2",
  37. "click>=8.1.3",
  38. "fastapi>=0.92.0",
  39. "filetype>=1.2.0",
  40. "imagehash>=4.3.1",
  41. "numpy>=1.23.5",
  42. "onnxruntime>=1.14.1",
  43. "opencv-python-headless>=4.6.0.66",
  44. "pillow>=9.3.0",
  45. "pooch>=1.6.0",
  46. "pymatting>=1.1.8",
  47. "python-multipart>=0.0.5",
  48. "scikit-image>=0.19.3",
  49. "scipy>=1.9.3",
  50. "tqdm>=4.64.1",
  51. "uvicorn>=0.20.0",
  52. "watchdog>=2.1.9",
  53. ],
  54. entry_points={
  55. "console_scripts": [
  56. "rembg=rembg.cli:main",
  57. ],
  58. },
  59. extras_require={
  60. "gpu": ["onnxruntime-gpu>=1.14.1"],
  61. },
  62. version=versioneer.get_version(),
  63. cmdclass=versioneer.get_cmdclass(),
  64. )