-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
Optional dependencies are not synced #842
Comments
You need to use the actual option https://hatch.pypa.io/latest/config/environment/overview/#features |
(please close this when you confirm that option works for you) |
Thanks, it does! |
Actually I think Hatch needs to support the syntax. Some packages have transitive [optional-dependencies]
test-min = ['pytest']
test = ['mypkg[test-min]']
[tool.hatch.envs.test]
dependencies = ['my-package-name']
features = ['test'] Will changing the |
No, can you please open a separate feature request? |
I want to use
pip
in CI to install my test dependencies. Therefore my config looks like this:This works fine, but hatch never realizes when dependencies changed, so I have to manually sync dependencies.
If #650 were implemented, there would be a workaround less time/bandwidth consuming than
hatch env prune && hatch run test:test
The text was updated successfully, but these errors were encountered: