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

Added module_name conversion to fix proj name comparison; backport pr… #39

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

airportyh
Copy link
Collaborator

@airportyh airportyh commented Aug 13, 2024

… 8218

Why?

If you do

poetry init --no-interaction --name foo_bar

to init a poetry project. It erronously creates a packages = [{include = "foo_bar"}] entry in pyproject.toml, causing poetry later to fail because foo_bar is not a subdirectory.

More context: https://replit.slack.com/archives/C03KS2B221W/p1723577758114809?thread_ts=1723568638.858709&cid=C03KS2B221W

Change

This was fixed in a newer version of poetry upstream. Cherry-picked the merge commit.

Test

poetry init --no-interaction --name foo_bar

now no longer creates a packages entry.

@airportyh airportyh requested a review from a team as a code owner August 13, 2024 20:02
@airportyh airportyh requested review from ryantm and blast-hardcheese and removed request for a team August 13, 2024 20:02
This change only ensures that projects whose name needs to be normalized (e.g. projects with a dash) behave the same way as projects whose name is a valid Python module name.
@airportyh airportyh force-pushed the th-fix-packages-include-erronously-added branch from 6b3fab3 to db731f2 Compare August 13, 2024 20:39
@airportyh airportyh merged commit e0b0d14 into replit-1.5 Aug 13, 2024
12 checks passed
@blast-hardcheese blast-hardcheese deleted the th-fix-packages-include-erronously-added branch August 14, 2024 00:26
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.

4 participants