Files
awesome-python/pyproject.toml
Vinta Chen 1c67c9f0e6 feat: replace regex README parser with markdown-it-py AST parser
Introduce parse_readme() which uses MarkdownIt to build a full AST
instead of line-by-line regex matching. The function splits the document
at the thematic break, groups nodes by h2 heading, extracts category
descriptions from leading italic paragraphs, and separates the
Categories, Resources, and Contributing sections cleanly.

Add markdown-it-py==4.0.0 (+ mdurl) as a runtime dependency to support
the new parser.

Tests cover section counts, names, slugs, descriptions, content
presence, boundary conditions (no separator, no description), and mixed
description markup.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-18 17:21:49 +08:00

25 lines
479 B
TOML

[project]
name = "awesome-python"
version = "0.1.0"
description = "An opinionated list of awesome Python frameworks, libraries, software and resources."
requires-python = ">=3.13"
dependencies = [
"httpx==0.28.1",
"jinja2==3.1.6",
"markdown==3.10.2",
"markdown-it-py==4.0.0",
]
[dependency-groups]
dev = [
"pytest==9.0.2",
"ruff==0.15.6",
]
[tool.pytest.ini_options]
testpaths = ["website/tests"]
[tool.ruff]
target-version = "py313"
line-length = 100