Skip to content
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

Doc request: Guidance request about virtualenv settings for child packages, and what other commands are affected. #60

Open
gregg-maiven opened this issue Feb 5, 2025 · 1 comment

Comments

@gregg-maiven
Copy link

Love this project, and how much of the friction it removes!

Two main questions:

  1. What should the various virtualenv settings be for the child proejcts. Should they create virtualenvs or not?

  2. poetry run uses the monorepo root.... with mixed effects.

This is causing my some issues with python run ipython and similar.

Thanks!

@ag14774
Copy link
Owner

ag14774 commented Feb 5, 2025

Good question and that is a good point that we should add some documentation on that.

  1. By default poetry will indeed have the side effect of creating a virtualenv for the child project if one does not exist, but it will not use it. This is not necessary. You can stop this behavior by creating a poetry.toml file in the root of the child project with:
[virtualenvs]
create = false

That being said, even with this, poetry will give you a warning 'Not creating virtualenv' because of this configuration but then the plugin proceeds to create a virtualenv for the monorepo root. I have not found a way to suppress this warning yet. Note that this setting is optional. You can also let poetry create a virtual env but it will still use the shared env from the root of the monorepo.

  1. The side-effect I imagine is that it creates a virtualenv for the child project. Are there any other effects you have observed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants