mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-23 13:56:43 +08:00
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>
25 lines
479 B
TOML
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
|