From 5d14d9359490d95882a0b29e80426027102bab17 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 13 Aug 2024 09:36:31 -0700 Subject: [PATCH] feat: use cog to import exclude_website_pats and emit it into the toml --- pyproject.toml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9b9e9baa6..15176f6c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,8 @@ +# [[[cog +# from aider.help_pats import exclude_website_pats +# ]]] +# [[[end]]] + [project] name = "aider-chat" description = "Aider is AI pair programming in your terminal" @@ -43,14 +48,10 @@ include = ["aider*", "aider.website"] [tool.setuptools.exclude-package-data] "aider.website" = [ - "examples/**", - "_posts/**", - "HISTORY.md", - "docs/benchmarks*md", - "docs/ctags.md", - "docs/unified-diffs.md", - "docs/leaderboards/index.md", - "assets/**", +# [[[cog +# print("\n".join(f' "{pat}",' for pat in exclude_website_pats)) +# ]]] +# [[[end]]] ] [build-system]