Closed SamuelLarkin closed 1 day ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 76.58%. Comparing base (
dbc2282
) to head (aca24a3
). Report is 9 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
CLI load time: 0:00.31
Pull Request HEAD: aca24a35bddeb49a8c542faf85e69fd3bb501526
Imports that take more than 0.1 s:
import time: self [us] | cumulative | imported package
import time: 262 | 106944 | typer
import time: 6358 | 225062 | everyvoice.cli
This PR as a long and explicit list of inclusions and exclusions, is this the best way of doing what we want to achieve?
For ReadAlongs/Studio, the equivalent code (scroll to pyproject.toml lines 94-97) is much shorter, so I was surprised you had to have all these exclusions here, but EV has all these files deeper, so we probably can't remove this list.
You can shorten it a tiny bit by finding patterns that express the sames things in a shorter way, but that's of little value,
One detail: include: "requirements.torch.txt"
is negated by exclude: "requirement*txt"
, but I don't see any value in including this file in the wheel or tar ball, we only use when installing from the sandbox.
TLDR: the changes I suggest are:
tool.hatch.build
since they can be made identical easily enough,"requirements.torch.txt"
from include
.
PR Goal?
Turns out that our understanding of
pyproject.toml
withhatch
was insufficient. This PR aims to reduce what is included in asdist
andwhl
. We decided to remove alltests/
because they would require us to include the wav files and more which bloats thewhl
andsdist
.Fixes?
fixes: #586
Feedback sought?
This PR as a long and explicit list of inclusions and exclusions, is this the best way of doing what we want to achieve?
Priority?
Needed before our next release
Tests added?
None
How to test?
Get yourself some reference prebuild
whl
andsdist
files.Compare the content of each files with its reference.
sdist
Wheel
Access to the unittest
After making a new environment with
make-everyvoice-env
, we can still performpython -m unittest everyvoice.tests.test_dataloader
even if thetests/
directory wasn't included in thewhl
.Confidence?
fair
Version change?
no
Related PRs?
None