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
[tool.poetry.group.test.dependencies]
pytest = "6.0.0"
[tool.poetry.group.lint.dependencies]
black = { version = "^21.12b0", isolated = true }
I have dev dependencies that are never imported by my source code or my test code, they act more as standalone cli applications. I still want the version to be locked down, and provide a one click install for developers working with my project, but I don't want the possibility of that dependency interfering with dependency resolution or accidentally becoming imported due to it being in the pythonpath.
When declared with the optional isolated properties, I want Poetry to install the dependency like a pyprojectx context would, completely isolated from the other dependencies.
I would want it installed, isolated within the current project, but also isolated from the project dependencies.
Of course, to copy the functionality of pyprojectx, multiple dependencies could be specified into each context/group
Ideally this exact scenario would benefit from some kind of sub-grouping feature such that poetry install --without lint would also not install basedmypy, but that's an extremely minor point IMO.
The text was updated successfully, but these errors were encountered:
lint is only intended to be executed with python 3.7 or 3.8
typing is intended to be executed with the same python versions the project has
lint is isolated, so dependencies required by flake8 (importlib-metadata<5) doesn't influence other packages in other groups if they don't depend on lint
poetry install --with lint will fail because lint does not have main in depends_on
when doing poetry install --only typing, it will install main too since it depends on it
KotlinIsland
changed the title
(🎁) Support isolated dependencies that install like pipx
(🎁) Support isolated dependencies that install like pyprojectx/pipxJul 14, 2024
Feature Request
pseudo pyproject.toml:
OR:
I have dev dependencies that are never imported by my source code or my test code, they act more as standalone cli applications. I still want the version to be locked down, and provide a one click install for developers working with my project, but I don't want the possibility of that dependency interfering with dependency resolution or accidentally becoming imported due to it being in the pythonpath.
When declared with the optional
isolated
properties, I want Poetry to install the dependency like a pyprojectx context would, completely isolated from the other dependencies.I would want it installed, isolated within the current project, but also isolated from the project dependencies.
Of course, to copy the functionality of pyprojectx, multiple dependencies could be specified into each context/group
Ideally this exact scenario would benefit from some kind of sub-grouping feature such that
poetry install --without lint
would also not install basedmypy, but that's an extremely minor point IMO.The text was updated successfully, but these errors were encountered: