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

Package Independent Configuration #2112

Open
mbway opened this issue Jun 16, 2024 · 0 comments
Open

Package Independent Configuration #2112

mbway opened this issue Jun 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mbway
Copy link
Contributor

mbway commented Jun 16, 2024

I think there is a case for having a config file (e.g. $XDG_CONFIG_HOME/maturin.toml or similar) that a user can use to provide default options that aren't tied to a particular project. This would serve a similar purpose to ~/.cargo/cargo.toml.

There are some options that are specific to a particular project and so only really make sense in Cargo.toml/pyproject.toml such as the features option, but there are others where the user may want a different default to the current one. For example a user might want maturin develop to build in release mode by default.

Also, it would be useful to specify to use uv in maturin develop by default (requested here). This setting would not make sense to specify in Cargo.toml/project.toml since it is a user preference rather than a project setting. This setting would be useful for the maturin-import-hook CI to use uv in the tests.

@mbway mbway added the enhancement New feature or request label Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant