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
[project]
name = "mypkg1234"version = "1.0.0"
[project.optional-dependencies]
api = [
"fastapi"
]
uvicorn = [
"mypkg1234[api]",
"uvicorn",
]
[tool.hatch.envs.uvicorn]
features = [ "uvicorn" ]
Inside of the EnvironmentPlugin my expected value of the dependencies property would be : ["fastapi", "uvicorn"] - but instead it's actually ["mypkg1234[api]", "uvicorn"].
I believe that unraveling the transitive dependencies on dependencies_complex would resolve this issue and mine. I'll take a look at this and see if I might be of some help.
Python’s standard way to specify extras is
mypkg[extra]
. Therefore transitive extras can exist.Hatch however only supports its own
features
key, not the standard syntax, when determining if the dependencies changed.E.g. after adding a dependency to the
test-min
extra,hatch run test:<command>
should sync dependencies fo thetest
environment.See also #842
The text was updated successfully, but these errors were encountered: