sonatype-nexus-community / vscode-iq-plugin

Visual Studio Code plugin for Nexus IQ
MIT License
18 stars 21 forks source link

Add support for excluding dev dependencies for poetry >= 1.5.1 #252

Open koraytugay opened 1 year ago

koraytugay commented 1 year ago

package.category section was removed in: https://github.com/python-poetry/poetry/pull/7637/files

This means the current implementation in https://github.com/sonatype-nexus-community/vscode-iq-plugin/blob/main/ext-src/packages/poetry/PoetryUtils.ts#L33 will not filter dev dependencies anymore.

This PR introduces a way to filter out dev dependencies by reading the production dependencies from pyproject.toml file (if it exists) and resolving the transitive dependency of the production dependencies from poetry.lock.

I am attaching test files that can be used to manually test the new functionality. testfiles.tar.gz

cc @bhamail / @DarthHater

koraytugay commented 1 year ago

@bhamail @DarthHater

Please review when time permits.