-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Import/depend poetry packages #6209
Comments
Did you really search the documentation? https://python-poetry.org/docs/dependency-specification/#path-dependencies |
So that is a path to a built package, I want it to load directly from the pyproject.toml/poetry.lock files and source code folder, without requiring to build the package. |
this is not true |
I agree that it does not have to be, but in the case it is a directory, will all dependencies from the package pyproject.toml file also be installed? If so, this functionality is not clear from the documentation. |
why don't you try it? |
A path dependency is simply a Python project at a given path. Poetry conforms to PEP 517 and will build any project according to the steps there (we should support any pyproject.toml build-system as well as setuptools, with any combination of pyproject.toml/setup.cfg/setup.py). Poetry never supports built distributions as a path dependency for myriad reasons. I'm not sure the docs are really deficient here as I feel that this is a very obvious set of assumptions common across the ecosystem (that is to say, being 'pip compatible') -- but if you have suggested improvements, please open a PR. |
Still having issues getting the sub-package dev-dependencies installed. Can anyone help? |
if A depends on B and B has dev dependencies, then it's expected that installing A will not install B's dev dependencies. |
OK but this is exactly what I want to do. Kind of "fuse" my development environments so that I can run things like integration tests in a single environment. |
Poetry dependencies do not have any special relationship with their dependees currently. If you're looking for a unified development environment across projects, you're likely looking for workspace/monorepo support as requested in #936. You could 'fake' this in the mean time by sharing a venv between projects, but obviously that is a bit brittle and you will have to manage your own guarantees vis-a-vis order of operations and compatibility. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
I have a number of related packages, all stored locally and with their own individual pyproject.toml files. I would like to be able to set up a new pyproject.toml file in a separate directory and add them as imports or dependencies, pulling in all sub-dependencies etc. with them. I know I could achieve this by building wheels and installing, but I want this in my development environments and without having to build and install.
E.g.
Structure
root pyproject.toml example
The text was updated successfully, but these errors were encountered: