uv/crates/uv-interpreter/src
Wolf Vollprecht 7d285148b2
fix: do not error when there are warnings on stderr (#2599)
## Summary

We had some users report bugs because the Python querying failed due to
warnings in `stderr`. I don't think this should fail on any `stderr`
output.

E.g.

```
  × Querying Python at `USER/.pixi/envs/default/bin/python3.10` failed with status exit status: 0 with exit status: 0
  │ --- stdout:
  │ {"markers": {"implementation_name": "cpython", "implementation_version": "3.10.0", "os_name": "posix", "platform_machine": "x86_64", "platform_python_implementation": "CPython", "platform_release": "5.15.146.1-microsoft-standard-WSL2",
  │ "platform_system": "Linux", "platform_version": "#1 SMP Thu Jan 11 04:09:03 UTC 2024", "python_full_version": "3.10.0", "python_version": "3.10", "sys_platform": "linux"}, "base_prefix": "USER/.pixi/
  │ envs/default", "base_exec_prefix": "USER/.pixi/envs/default", "prefix": "USER/.pixi/envs/default", "base_executable": "USER/.pixi/envs/default/
  │ bin/python3.10", "sys_executable": "USER/.pixi/envs/default/bin/python3.10", "stdlib": "USER/.pixi/envs/default/lib/python3.10", "scheme": {"platlib": "/home/mvanniekerk/
  │ code/vice-python/.pixi/envs/default/lib/python3.10/site-packages", "purelib": "USER/.pixi/envs/default/lib/python3.10/site-packages", "include": "USER/.pixi/envs/default/
  │ include/python3.10", "scripts": "USER/.pixi/envs/default/bin", "data": "USER/.pixi/envs/default"}, "virtualenv": {"purelib": "lib/python3.10/site-packages", "platlib": "lib/
  │ python3.10/site-packages", "include": "include/site/python3.10", "scripts": "bin", "data": ""}}
  │ --- stderr:
  │ [03/21/24 15:59:48] WARNING  pyproject.toml does not contain a setuptools.py:119
  │                              tool.setuptools_scm section
  │ ---
```
2024-03-21 19:23:41 -04:00
..
cfg.rs Fix uv-created venv detection (#1908) 2024-02-23 11:11:22 -06:00
find_python.rs Move architecture and operating system probing to Python (#2381) 2024-03-13 11:51:14 +00:00
interpreter.rs fix: do not error when there are warnings on stderr (#2599) 2024-03-21 19:23:41 -04:00
lib.rs VIRTUAL_ENV takes precedence over CONDA_PREFIX (#2574) 2024-03-20 16:14:44 -04:00
python_environment.rs VIRTUAL_ENV takes precedence over CONDA_PREFIX (#2574) 2024-03-20 16:14:44 -04:00
python_version.rs Trim injected python_version marker to (major, minor) (#2395) 2024-03-13 00:11:50 +00:00
virtualenv.rs Use simpler pip-like Scheme for install paths (#2173) 2024-03-04 15:50:13 -05:00