Skip to content

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

Open
koraytugay wants to merge 6 commits intosonatype-nexus-community:mainfrom
koraytugay:patch-1
Open

Add support for excluding dev dependencies for poetry >= 1.5.1#252
koraytugay wants to merge 6 commits intosonatype-nexus-community:mainfrom
koraytugay:patch-1

Conversation

@koraytugay
Copy link
Copy Markdown

@koraytugay koraytugay commented Nov 14, 2023

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 koraytugay changed the title Update PoetryUtils.ts Add support for excluding dev dependencies for poetry >= 1.5.1 Nov 17, 2023
@koraytugay
Copy link
Copy Markdown
Author

@bhamail @DarthHater

Please review when time permits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant