From dece2193fc0fe3018f22170b994a92be58c6eaa4 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 16 Dec 2024 12:07:02 -0800 Subject: [PATCH] Switch to MANIFEST.in to exclude aider/website/assets/ and other from whl build file --- MANIFEST.in | 8 ++++++-- aider/help_pats.py | 4 +++- pyproject.toml | 4 ---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index d8b8fbb24..ba9b75c25 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,10 +1,14 @@ +# This needs to sync with aider/help_pats.py + +global-exclude .DS_Store recursive-exclude aider/website/examples * recursive-exclude aider/website/_posts * -exclude **/OLD/** exclude aider/website/HISTORY.md exclude aider/website/docs/benchmarks*.md exclude aider/website/docs/ctags.md exclude aider/website/docs/unified-diffs.md exclude aider/website/docs/leaderboards/index.md recursive-exclude aider/website/assets * -global-exclude .DS_Store +recursive-exclude aider/website *.js +recursive-exclude aider/website *.html +recursive-exclude aider/website *.yml diff --git a/aider/help_pats.py b/aider/help_pats.py index b86ef51f8..5d2b14865 100644 --- a/aider/help_pats.py +++ b/aider/help_pats.py @@ -1,4 +1,7 @@ +# This needs to sync with MANIFEST.in + exclude_website_pats = [ + "**/.DS_Store", "examples/**", "_posts/**", "HISTORY.md", @@ -7,5 +10,4 @@ exclude_website_pats = [ "docs/unified-diffs.md", "docs/leaderboards/index.md", "assets/**", - "**/.DS_Store", ] diff --git a/pyproject.toml b/pyproject.toml index 1ae33a2da..f0d892bbc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,10 +44,6 @@ include-package-data = true [tool.setuptools.packages.find] include = ["aider"] -[tool.setuptools.package-data] -"aider" = ["queries/*.scm"] -"aider.website" = ["**/*.md"] - [build-system] requires = ["setuptools>=68", "setuptools_scm[toml]>=8"] build-backend = "setuptools.build_meta"