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
[tool.poetry]
name = "pkg_a"packages = [{include = "ns", from = "src"}]
This seems to work (i.e. I can poetry install this) but I see problems in other tools. For example, mypy reports
poetry run mypy -p ns.pkg_b
Can't find package 'ns.pkg_b'
Now I don't expect this group to debug mypy issues but I'm just trying to understand if my package is a valid one. Can you have a package export two modules (pkg_a and pkg_b) under one namespace package (ns)?
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
-
Directory structure:
pyproject.toml:
This seems to work (i.e. I can
poetry install
this) but I see problems in other tools. For example, mypy reportsNow I don't expect this group to debug mypy issues but I'm just trying to understand if my package is a valid one. Can you have a package export two modules (
pkg_a
andpkg_b
) under one namespace package (ns
)?Beta Was this translation helpful? Give feedback.
All reactions