You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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.
The text was updated successfully, but these errors were encountered:
ajprax
changed the title
tests run with hatch test fails for lack of dependency that is included in pyproject.toml
test run with hatch test fails for lack of dependency that is included in pyproject.tomlNov 24, 2024
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.
The text was updated successfully, but these errors were encountered: