You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently encountered this problem installing ansible-lint for a work project. I won't reproduce all of that info here, but the gist of it is that in order to install a recent version of ansible-lint, I had to include the following chunk in my pyproject.toml file:
This is fine, and I understand that this isn't really a problem with uv itself, but my work uses only Linux and macOS, and we'd like to configure this globally to avoid any potential problems with dependencies on Windows, and not have to remember to add this bit of config to the pyproject.toml file every time we start a new python project.
I tried adding
environments = ["platform_system != 'Windows'"]
to my ~/.config/uv/uv.toml file, but it didn't help. My reading of the relevant documentation is that this is just a per-project setting, and that it can't be set globally. I also did not see any relevant environment variables that could be set, although perhaps I missed something.
So, I guess the question is: is there a way to set this globally? If not, please consider adding this feature.
The text was updated successfully, but these errors were encountered:
This affects not only my work but also my personal projects. It would be great if I could globally specify a list of default platform or platforms like:
platforms = ["linux", "macos"]
Another option would be to have project templates that allow you to easily reproduce core settings without braving the uncertainties of copypasta.
I recently encountered this problem installing ansible-lint for a work project. I won't reproduce all of that info here, but the gist of it is that in order to install a recent version of
ansible-lint
, I had to include the following chunk in mypyproject.toml
file:This is fine, and I understand that this isn't really a problem with
uv
itself, but my work uses only Linux and macOS, and we'd like to configure this globally to avoid any potential problems with dependencies on Windows, and not have to remember to add this bit of config to thepyproject.toml
file every time we start a new python project.I tried adding
to my
~/.config/uv/uv.toml
file, but it didn't help. My reading of the relevant documentation is that this is just a per-project setting, and that it can't be set globally. I also did not see any relevant environment variables that could be set, although perhaps I missed something.So, I guess the question is: is there a way to set this globally? If not, please consider adding this feature.
The text was updated successfully, but these errors were encountered: