mdgrep/pyproject.toml
dschlueter d9f81ac918 feat: markdown dialect option, faster search (0.1.1)
- split_markdown/load_markdown: dialect="commonmark"|"python-markdown" so list
  blocks match the HTML structure of the renderer (list after paragraph needs a
  blank line; nesting needs 4 spaces in Python-Markdown)
- SearchEngine caches the searched text per block on load
- regex timeout only for /regex/ terms (words and phrases are linear);
  typical queries over 26k blocks: ~30-140 ms instead of 250-700 ms

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 19:37:40 +02:00

29 lines
738 B
TOML

[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "mdgrep"
version = "0.1.1"
description = "Boolean full-text search (substrings, phrases, regex, AND/OR/NOT, parentheses) over Markdown and other text blocks, with CLI, Flask API and a JavaScript search widget"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [{ name = "Dieter Schlüter" }]
dependencies = ["regex>=2023.0"]
[project.optional-dependencies]
web = ["flask>=2.3"]
dev = ["pytest>=7", "flask>=2.3"]
[project.scripts]
mdgrep = "mdgrep.cli:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
mdgrep = ["static/*"]
[tool.pytest.ini_options]
testpaths = ["tests"]