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

Fix issues around case-sensitive matching in poetry support #474

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

legoktm
Copy link
Member

@legoktm legoktm commented Nov 13, 2023

poetry doesn't normalize case in package names, so in securedrop-client we have jinja2 depending on "MarkupSafe", but the package itself in the lock file is named "markupsafe".

We can avoid this by changing the relevant_dependencies to all be lowercase when reading them out of pyproject.toml (the "main" dependencies) and when reading from poetry.lock.

Test plan

scripts/utils.py Outdated Show resolved Hide resolved
Copy link
Member

@eloquence eloquence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

poetry doesn't normalize case in package names, so in securedrop-client
we have jinja2 depending on "MarkupSafe", but the package itself in the
lock file is named "markupsafe".

We can avoid this by changing the relevant_dependencies to all be
lowercase when reading them out of pyproject.toml (the "main"
dependencies) and when reading from poetry.lock.
@eloquence eloquence merged commit a7310e9 into main Dec 5, 2023
19 checks passed
@eloquence eloquence deleted the poetry-fix-casing branch December 5, 2023 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants