Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

koraytugay
Copy link

@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
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