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

Allows to use Maturin with UV #290

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Allows to use Maturin with UV #290

wants to merge 1 commit into from

Conversation

Tpt
Copy link
Contributor

@Tpt Tpt commented Oct 4, 2024

No description provided.

@Tpt Tpt force-pushed the tpt/maturin-uv branch 4 times, most recently from a9f79c6 to c704bfc Compare October 4, 2024 12:26
@Tpt Tpt changed the title Draft: allows to use Maturin with UV Allows to use Maturin with UV Oct 4, 2024
@Tpt Tpt force-pushed the tpt/maturin-uv branch 6 times, most recently from fe1ba70 to 04edf8f Compare October 4, 2024 13:51
Copy link
Contributor

@vsiles vsiles left a comment

Choose a reason for hiding this comment

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

@NiklasRosenstein in case you're around sometimes, this would be a really nice to have to start migrating some projects to uv ;)

Copy link
Contributor

@NiklasRosenstein NiklasRosenstein left a comment

Choose a reason for hiding this comment

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

This looks good to me, left a comment.

else:
from .maturin import MaturinUvPythonBuildSystem

if "[tool.uv]" not in pyproject_content:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if "[tool.uv]" not in pyproject_content:
if "[tool.uv" not in pyproject_content:

Just like the checks for poetry/pdm?

"Got no hint as to the Python dependency system used in the project '%s', falling back to UV (experimental)",
project_directory,
)
return MaturinUvPythonBuildSystem(project_directory)

if "pdm" in pyproject_content:
from .pdm import PDMPythonBuildSystem

return PDMPythonBuildSystem(project_directory)

if "[tool.uv]" not in pyproject_content:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if "[tool.uv]" not in pyproject_content:
if "[tool.uv" not in pyproject_content:

For consistency with the above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants