Skip to content

Commit f50bebd

Browse files
committed
Make Shapely installation optional with extras flag [metrics]
1 parent b18c412 commit f50bebd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pydantic = "^1.8.2"
4343
isort = "^5.10.1"
4444
numpy = "^1.19.5"
4545
scipy = "^1.5.4"
46-
Shapely = "^1.8.0"
46+
Shapely = { version = ">=1.8.0", optional = true }
4747

4848
[tool.poetry.dev-dependencies]
4949
poetry = "^1.1.5"
@@ -62,6 +62,9 @@ furo = "^2021.10.9"
6262
sphinx-autoapi = "^1.8.4"
6363
pytest-xdist = "^2.5.0"
6464

65+
[tool.poetry.extras]
66+
metrics = ["Shapely"]
67+
6568

6669
[tool.pytest.ini_options]
6770
markers = [

0 commit comments

Comments
 (0)