(crcmod and tqdm are optional dependencies of the library, watchdog is used in a simple test watcher)
If I run hatch env show I see the dependencies properly included in the test environment, and when I run hatch -e test run python I can import them, but when I run hatch test they fail with an import error.
To add further confusion, tqdm works properly, while crcmod (and numpy from further testing on another branch) both fail to import during tests. tqdm was the first added, but I haven't been able to find any other differences between how it and the others were added.
I'm working on a library that includes some optional dependencies. At test time, these dependencies are required to test the optional code.
I have the dependencies included in
pyproject.toml
thusly:(
crcmod
andtqdm
are optional dependencies of the library,watchdog
is used in a simple test watcher)If I run
hatch env show
I see the dependencies properly included in thetest
environment, and when I runhatch -e test run python
I can import them, but when I runhatch test
they fail with an import error.To add further confusion,
tqdm
works properly, whilecrcmod
(andnumpy
from further testing on another branch) both fail to import during tests.tqdm
was the first added, but I haven't been able to find any other differences between how it and the others were added.This branch has the issue.