(🎁) Support isolated dependencies that install like `pyprojectx`/`pipx`
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start with the proposed pyproject.toml dependency and group declarations, then review the poetry install --without lint example. The request is complete when dependencies can be locked and installed in project-local isolated contexts without interfering with project dependencies, including the proposed group behavior.
Written by the indexing model from the issue text.
Description
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
pseudo pyproject.toml:
[tool.poetry.group.dev.dependencies]
pytest = "6.0.0"
black = { version = "^21.12b0", isolated = true }
OR:
[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
[tool.poetry.group.list]
allisolated = true
[tool.poetry.group.lint.dependencies]
black = "^21.12b0"
flake8 = "^4.0.1"
isort = "^5.10.1"
pre-commit = "^2.16.0"
pylint = "^2.11.2"
pytest = "^7.0.0rc1"
[tool.poetry.group.lint-mypy]
isolated = true
[tool.poetry.group.lint-mypy.dependencies]
basedmypy = "^2.5.0"
types-docutils = "^0.17.4"
types-python-dateutil = "^2.8.6"
types-PyYAML = "^6.0.3"
types-requests = "^2.27.7"
types-setuptools = "^57.4.7"
types-urllib3 = "^1.26.4"
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.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from python-poetry/poetry
-
kind/bug status/triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
python-poetry/poetry#10625 · 7 comments ·
-
kind/bug status/external-issue
Difficulty 4/5 3-5 days Newbie friendliness 48/100
python-poetry/poetry#11048 · 2 comments · 1 reaction ·
-
Allow appending caller-supplied data to the User-Agent (pip's PIP_USER_AGENT_USER_DATA equivalent) Openkind/feature status/triage
Difficulty 4/5 3-5 days Newbie friendliness 48/100
python-poetry/poetry#11012 · 1 comment ·
-
2.5.0 Release Openkind/release
Difficulty 4/5 3-5 days Newbie friendliness 25/100
python-poetry/poetry#10995 · 1 reaction ·
-
kind/bug status/triage
Difficulty 4/5 3-5 days Newbie friendliness 72/100
python-poetry/poetry#10991 · 1 comment ·
All issues in python-poetry/poetry
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100