Exclude docs/, tests/, etc. from wheel#480
Conversation
There was a problem hiding this comment.
The reason why the wheel is massive is because of the following setting:
Lines 118 to 119 in 2b81af0
packages.find.where = ["."] tells setuptools that the package is the entire root directory of the repo; /docs, /tests, readme.png and everything else included.
You can set packages.find.where to "waveorder" and this reduces the wheel size to yaml files).
Alongside that we can remove the MANIFEST.in.
In addition we can remove include-package-data = true as it's true by default.
docs/examples/deprecated from wheeldocs/, tests/, etc. from wheel
Ahh, gotcha that makes sense. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #480 +/- ##
==========================================
+ Coverage 37.97% 46.13% +8.15%
==========================================
Files 49 50 +1
Lines 9770 10342 +572
==========================================
+ Hits 3710 4771 +1061
+ Misses 6060 5571 -489 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fixes #456.
Excluding
docs/examples/deprecatedreduces the wheel size from ~65MB to ~7MB.The next largest contributors are documentation images.