feat: use cog to import exclude_website_pats and emit it into the toml

This commit is contained in:
Paul Gauthier (aider) 2024-08-13 09:36:31 -07:00
parent a8f82e9063
commit 5d14d93594

View file

@ -1,3 +1,8 @@
# [[[cog
# from aider.help_pats import exclude_website_pats
# ]]]
# [[[end]]]
[project] [project]
name = "aider-chat" name = "aider-chat"
description = "Aider is AI pair programming in your terminal" description = "Aider is AI pair programming in your terminal"
@ -43,14 +48,10 @@ include = ["aider*", "aider.website"]
[tool.setuptools.exclude-package-data] [tool.setuptools.exclude-package-data]
"aider.website" = [ "aider.website" = [
"examples/**", # [[[cog
"_posts/**", # print("\n".join(f' "{pat}",' for pat in exclude_website_pats))
"HISTORY.md", # ]]]
"docs/benchmarks*md", # [[[end]]]
"docs/ctags.md",
"docs/unified-diffs.md",
"docs/leaderboards/index.md",
"assets/**",
] ]
[build-system] [build-system]