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
I have a folder x with 3 sibling packages, which I specify in the pyproject.toml as follows
[tool.poetry]
name = "my-project"
version = "0.1.0"
description = "Nice multiple packages"
authors = ["Hi <[email protected]>"]
license = "Free or not free"
readme = "README.md"
packages = [
{ include = "x", from = "." },
{ include = "y", from = "." },
{ include = "z", from = "." },
]
My project's structure looks like this
x/
x/
y/
z/
pyproject.toml
If I do poetry show, I don't see x, y or z. If I do pip list, I see my-project.
I don't know if this is the intended behaviour or not.
I also don't know if poetry supports my scenario or not. I think it depends on what I want to do. I've seen some discussions on whether poetry supports multiple pyproject.tomls.
In my case, I don't have a pyproject.toml under x, y or z, so I suppose that's why they are not installed as separate packages. It seems that include is only used to specify other packages to include in the distribution, when we do poetry build. Is this correct? Anyway, why doesn't poetry show also show my package?
I'm asking this question more because VSCode is not suggesting some code from y in x. I think this is a problem with pylance, but still I am curious to know why poetry show doesn't show my package.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a folder
x
with 3 sibling packages, which I specify in thepyproject.toml
as followsMy project's structure looks like this
If I do
poetry show
, I don't seex
,y
orz
. If I dopip list
, I seemy-project
.I don't know if this is the intended behaviour or not.
I also don't know if poetry supports my scenario or not. I think it depends on what I want to do. I've seen some discussions on whether poetry supports multiple
pyproject.toml
s.In my case, I don't have a
pyproject.toml
underx
,y
orz
, so I suppose that's why they are not installed as separate packages. It seems thatinclude
is only used to specify other packages to include in the distribution, when we dopoetry build
. Is this correct? Anyway, why doesn'tpoetry show
also show my package?I'm asking this question more because VSCode is not suggesting some code from
y
inx
. I think this is a problem with pylance, but still I am curious to know whypoetry show
doesn't show my package.Beta Was this translation helpful? Give feedback.
All reactions