Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Project dependency detection via pyproject.toml #154

Open
benfiola opened this issue Dec 16, 2020 · 1 comment
Open

Project dependency detection via pyproject.toml #154

benfiola opened this issue Dec 16, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@benfiola
Copy link

benfiola commented Dec 16, 2020

So, say I have the following folder structure:

root/
    library/
        poetry.lock
        pyproject.toml
    dependency/
       poetry.lock
       pyproject.toml

I would attach root/library and root/dependency as individual Pycharm projects - each with their own Poetry environments.

However, these projects can also depend on each other:

#root/library/pyproject.toml
...

[tool.poetry.dependencies]
dependency = {path = "../dependency", develop = true}

While this all works pretty well, I still need to go into Preferences -> Project -> Project Dependencies and specify how these projects depend on one another manually. Is it possible for the Poetry plugin to detect these dependencies and automatically configure the Preferences -> Project -> Project Dependencies panel accordingly?

If it's possible (I'm unfamiliar with the Pycharm plugin APIs and would have to look around) and there's interest, I'd love to contribute a PR to support this as it'd be really useful in my opinion.

@koxudaxi
Copy link
Owner

@benfiola
Thank you for your suggestion.
OK, I will check that the plugin detects and set the dependency.

@koxudaxi koxudaxi added the enhancement New feature or request label Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants