Repository navigation
chore(main): Exclude kiota-dom-export.txt from builds - #1488
Jason Frey (Fryguy) wants to merge 1 commit into
Conversation
8233b9c to
408ea94
Compare
kiota-dom-export.txt is not needed at runtime and is a very large file (~32MB), contributing to a bloated package.
408ea94 to
f03a881
Compare
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Reduces distribution/package size by excluding a large, non-runtime text artifact (kiota-dom-export.txt) from Flit packaging inputs (per #1287).
Changes:
- Add Flit sdist exclusion for
msgraph/generated/kiota-dom-export.txt
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| [tool.flit.sdist] | ||
| exclude = ["msgraph/generated/kiota-dom-export.txt"] |
|
I am not a python expert, so I don't know if Copilot's suggestions make sense. Please advise. |
|
Ramses Sanchez-Hernandez (@ramsessanchez) - can you please review? I'd like to get this one completed. |
Eduard Arbona (earbona23)
left a comment
There was a problem hiding this comment.
this targets the ~32MB generated file from #1287, nd for this repo's release path it does remove it from the published wheel not just the sdist: the publish pipeline builds with a bare python -m build, nd pypa builds the wheel FROM the sdist, so flit's [tool.flit.sdist] exclude keeps it out of the wheel too. so it meets the goal. one fragility: that depends on the build step staying python -m build, if it ever becomes --wheel or flit build the file comes back silently since nothing asserts its absence, add a guard that fails if kiota-dom-export.txt is in dist/*. also reconcile the dup: #1498 fixes the same #1287 by switching the backend to hatchling (robust even for a direct wheel build, but a bigger change). consolidate nd close one, this is the minimal lower-risk option nd enough for the current pipeline.
kiota-dom-export.txt is not needed at runtime and is a very large file (~32MB), contributing to a bloated package.
Fixes #1287
Luis Ramos (@lramosvea) Please review. Note that I hadn't originally created this PR, because I was under the impression that this repository's content was auto-generated as I saw recent PRs from a bot updating these files.
I also wasn't sure if this was a chore or build or something else - let me know if you want it changed.