Open
Description
PEP 420 introduced implicit namespace packages, which are packages without __init__.py
. Those packages, and the modules under them, don't seem to appear in the dependency graph generated by pydeps.
Here's an example. Given the following directory structure:
.
├── main.py
├── pkg1
│ └── foo.py
└── pkg2
├── bar.py
└── __init__.py
And main.py
:
import pkg1.foo
import pkg2.bar
pydeps main.py
generates the following graph:
I would have expected pkg1.foo
to be included in the dependency graph. (On the other hand, I'm not sure there's a point in having pkg1
there since it's going to be empty.)