|
| 1 | +[tool.poetry] |
| 2 | +name = "rembg" |
| 3 | +version = "0.0.0" # Managed by poetry-dynamic-versioning |
| 4 | +description = "Remove image background" |
| 5 | +authors = [ "Daniel Gatis <[email protected]>"] |
| 6 | +license = "MIT" |
| 7 | +readme = "README.md" |
| 8 | +homepage = "https://github.com/danielgatis/rembg" |
| 9 | +repository = "https://github.com/danielgatis/rembg" |
| 10 | +keywords = ["remove", "background", "u2net"] |
| 11 | +classifiers = [ |
| 12 | + "License :: OSI Approved :: MIT License", |
| 13 | + "Topic :: Scientific/Engineering", |
| 14 | + "Topic :: Scientific/Engineering :: Mathematics", |
| 15 | + "Topic :: Scientific/Engineering :: Artificial Intelligence", |
| 16 | + "Topic :: Software Development", |
| 17 | + "Topic :: Software Development :: Libraries", |
| 18 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 19 | + "Programming Language :: Python", |
| 20 | + "Programming Language :: Python :: 3 :: Only", |
| 21 | + "Programming Language :: Python :: 3.10", |
| 22 | + "Programming Language :: Python :: 3.11", |
| 23 | + "Programming Language :: Python :: 3.12", |
| 24 | + "Programming Language :: Python :: 3.13", |
| 25 | +] |
| 26 | +packages = [{include = "rembg"}] |
| 27 | + |
| 28 | +[tool.poetry.dependencies] |
| 29 | +python = "^3.10" |
| 30 | +jsonschema = "^4.25.0" |
| 31 | +numpy = "^2.2.0" |
| 32 | +opencv-python-headless = "^4.12.0" |
| 33 | +pillow = "^11.3.0" |
| 34 | +pooch = "^1.8.0" |
| 35 | +pymatting = "^1.1.14" |
| 36 | +scikit-image = "^0.25.0" |
| 37 | +scipy = "^1.15.0" |
| 38 | +tqdm = "^4.67.0" |
| 39 | + |
| 40 | +# CPU backend (optional) |
| 41 | +onnxruntime = {version = "^1.23.0", optional = true} |
| 42 | + |
| 43 | +# GPU backend (optional) - only available on Linux/Windows, not on macOS |
| 44 | +onnxruntime-gpu = {version = "^1.23.0", optional = true, markers = "sys_platform != 'darwin'"} |
| 45 | + |
| 46 | +# ROCm backend (optional) - only available on Linux (latest is 1.22.x) |
| 47 | +onnxruntime-rocm = {version = "^1.22.0", optional = true, markers = "sys_platform == 'linux'"} |
| 48 | + |
| 49 | +# CLI dependencies (optional) |
| 50 | +aiohttp = {version = "^3.13.0", optional = true} |
| 51 | +asyncer = {version = "^0.0.10", optional = true} |
| 52 | +click = {version = "^8.3.0", optional = true} |
| 53 | +fastapi = {version = "^0.120.0", optional = true} |
| 54 | +filetype = {version = "^1.2.0", optional = true} |
| 55 | +gradio = {version = "^5.49.0", optional = true} |
| 56 | +python-multipart = {version = "^0.0.20", optional = true} |
| 57 | +uvicorn = {version = "^0.38.0", optional = true} |
| 58 | +watchdog = {version = "^6.0.0", optional = true} |
| 59 | + |
| 60 | +[tool.poetry.group.dev.dependencies] |
| 61 | +bandit = "^1.8.0" |
| 62 | +black = "^25.9.0" |
| 63 | +flake8 = "^7.3.0" |
| 64 | +imagehash = "^4.3.0" |
| 65 | +isort = "^7.0.0" |
| 66 | +mypy = "^1.18.0" |
| 67 | +pytest = "^8.4.0" |
| 68 | + |
| 69 | +[tool.poetry.extras] |
| 70 | +cpu = ["onnxruntime"] |
| 71 | +gpu = ["onnxruntime-gpu"] |
| 72 | +rocm = ["onnxruntime-rocm"] |
| 73 | +cli = ["aiohttp", "asyncer", "click", "fastapi", "filetype", "gradio", "python-multipart", "uvicorn", "watchdog"] |
| 74 | + |
| 75 | +[tool.poetry.scripts] |
| 76 | +rembg = "rembg.cli:main" |
| 77 | + |
1 | 78 | [build-system] |
2 | | -# These are the assumed default build requirements from pip: |
3 | | -# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support |
4 | | -requires = ["setuptools>=65.5.1", "wheel"] |
5 | | -build-backend = "setuptools.build_meta" |
| 79 | +requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"] |
| 80 | +build-backend = "poetry_dynamic_versioning.backend" |
6 | 81 |
|
7 | | -[versioneer] |
8 | | -VCS = "git" |
| 82 | +[tool.poetry-dynamic-versioning] |
| 83 | +enable = true |
| 84 | +vcs = "git" |
9 | 85 | style = "pep440" |
10 | | -versionfile_source = "rembg/_version.py" |
11 | | -versionfile_build = "rembg/_version.py" |
12 | | -tag_prefix = "v" |
13 | | -parentdir_prefix = "rembg-" |
| 86 | +pattern = "^v(?P<base>\\d+\\.\\d+\\.\\d+)" |
| 87 | + |
| 88 | +[tool.poetry-dynamic-versioning.substitution] |
| 89 | +files = ["rembg/__init__.py"] |
0 commit comments