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]
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]