-
-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test run with hatch test
fails for lack of dependency that is included in pyproject.toml
#1823
Comments
hatch test
fails for lack of dependency that is included in pyproject.toml
hatch test
fails for lack of dependency that is included in pyproject.toml
I believe that |
Ah, I guess I forgot that the test environment was created as a step in a tutorial and not as a base part of hatch, otherwise it would be surprising for the I just tried
Somehow it seems like |
@ajprax, I believe you are correct when you say
Looking at
And a whole lot more. I suspect from that documentation, you can set your dependencies in |
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: