[build-system] requires = ["hatchling"] build-backend = "hatchling.build" [project] name = "roicropper" version = "1.0.1" description = "Crop image objects to 1:1 square or any aspect ratio focusing on the main object" readme = "README.md" license = { file = "LICENSE" } requires-python = ">=3.11" dependencies = [ "opencv-python-headless>=4.8", "numpy>=1.24", ] [project.optional-dependencies] cli = [ "typer>=0.9.0", "rich>=13.0", ] web = [ "gradio>=4.0", ] dev = [ "pytest>=7.0", "pytest-cov>=4.0", "ruff>=0.1.0", ] [project.scripts] roi-cropper = "cli.__main__:app" roi-cropper-web = "roicropper.web:launch" [tool.hatch.build.targets.wheel] packages = ["src/roicropper", "cli"] [tool.ruff] line-length = 100 [tool.pytest.ini_options] testpaths = ["tests"]