Dependency Tree for Python projects - Sonatype Lifecycle & Repository Firewall - Sonatype Community

Dependency Tree for Python projects

post by peter.drienko on Jan 14, 2025

Hi,

Does Nexus IQ currently support Dependency Tree for Python projects? If not, when do you plan to implement it?

Contrary to a simple requirements.txt file, poetry.lock contains dependency information about transient packages and can be used as a source for the dependency tree feature.

Our use case is the following:

We want to be able to label known, “vetted” packages and fail the report when a non-vetted package is included. We only want to do this for direct dependencies and ignore this on transient dependencies.

For this we want to create a policy which checks:

AND

Without having a Dependency Type, all dependencies are listed as Direct and I have no option to implement this.

Best regards,

P

141 views

post by jzora on Jan 16, 2025

Hi, Peter! Dependency tree isn’t currently supported for Python/.poetry and isn’t formally on our roadmap. However, we’re always looking to enhance visibility across every ecosystem. I’ll pass along your interest to our product leaders.