From edecc8cbd00f530ecdfa4b07dcc54e72f2af62b0 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Mon, 25 Sep 2023 12:03:00 +0100 Subject: [PATCH] Move tree-sitter and tree_sitter_languages to optional extras --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 78040063bc..4cfe1cb5fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,8 +46,11 @@ markdown-it-py = { extras = ["plugins", "linkify"], version = ">=2.1.0" } #rich = {path="../rich", develop=true} importlib-metadata = ">=4.11.3" typing-extensions = "^4.4.0" -tree-sitter = "^0.20.1" -tree_sitter_languages = {version = ">=1.7.0", python = "^3.8"} +tree-sitter = {version = "^0.20.1", optional = true } +tree_sitter_languages = {version = ">=1.7.0", optional = true} + +[tool.poetry.extras] +syntax = ["tree-sitter", "tree_sitter_languages"] [tool.poetry.group.dev.dependencies] pytest = "^7.1.3"