Skip to content

Dealing with dependencies with hierarchical name convention (question) #1149

@threonate

Description

@threonate

In our framework, we developed a number of Python packages with a specific hierarchical name convention

a.b.c
a.b.d
a.f.z

etc.

In a package I want to check with deptry, these packages are imported as any other packages

import a.b.c
from a.b.d import func

but deptry complains about it:

DEP001 'a' imported but missing from the dependency definitions
DEP001 'a' imported but missing from the dependency definitions

That is true for a venv without dependencies of a package at hand installed.

In a venv with all dependencies installed, deptry scan is successful. However, if I add another package from the same namespace, say a.y.z and install in the venv but have no imports of it in the source code, deptry issues no complains about it.

Can it be sorted out with deptry configuration?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions