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 fail for package with '-' in name #32

Closed
wants to merge 2 commits into from

Conversation

hkad98
Copy link

@hkad98 hkad98 commented Mar 6, 2024

When package contained '-' tox-uv failed to install it. The name was split and the first part was taken which caused that the rest of the name was missing.

Closes: #31

When package contained '-' tox-uv failed to install it.
The name was split and the first part was taken which caused that the rest of the name was missing.
@hkad98 hkad98 requested a review from gaborbernat as a code owner March 6, 2024 19:48
Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

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

Tests please 🙏

@hkad98 hkad98 requested a review from gaborbernat March 6, 2024 20:17
@@ -0,0 +1,130 @@
"""
Copy link
Member

Choose a reason for hiding this comment

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

Don't copy, just make name configurable with an env-var.

Copy link
Author

Choose a reason for hiding this comment

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

That will not work. The name contains '-', but pkg_name does not. See logic, plugin, and other variables that use pkg_name instead of name.

Copy link
Member

Choose a reason for hiding this comment

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

It will. I've done it for you in #33, and also demonstrating I believe that the bug is not in our tool but your build backend violating PEP-427.

Add tests for package with '-' in the name.
@AiyionPrime
Copy link

Ah, nice. Thanks for taking care, you two :)

@gaborbernat gaborbernat force-pushed the fix-name-with-dash branch 2 times, most recently from 793ef9d to 9b611fc Compare March 7, 2024 15:55
@hkad98 hkad98 closed this Mar 7, 2024
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.

Installation fails if the package contains '-'
3 participants