uv/crates/pypi-types/src
Ibraheem Ahmed fa53de9223
Avoid Removing Quotes From Requirement Markers (#3214)
## Summary

Avoid removing quotes from markers, e.g. `numpy (>=1.19) ;
python_version >= "3.7"` should not be rewritten. Fixes
https://github.com/astral-sh/uv/issues/2551.

This PR also makes fixups a bit more flexible internally for fixes that
aren't simple to implement with a pure regex replacement, like this one.
https://github.com/astral-sh/uv/pull/1529 fixed a similar problem but
the current regex is still not smart enough to avoid all markers
completely (like `python_version`).

## Test Plan

Added a few unit tests.
2024-04-23 14:07:51 -04:00
..
base_url.rs Use scheme parsing to determine absolute vs. relative URLs (#2904) 2024-04-08 17:04:27 -04:00
direct_url.rs Clippy pedantic (#1963) 2024-02-25 14:04:05 -05:00
lenient_requirement.rs Avoid Removing Quotes From Requirement Markers (#3214) 2024-04-23 14:07:51 -04:00
lib.rs Use simpler pip-like `Scheme` for install paths (#2173) 2024-03-04 15:50:13 -05:00
metadata.rs Clean up `Error` enum in `Metadata23` (#2835) 2024-04-05 14:40:33 +00:00
scheme.rs Query interpreter to determine correct `virtualenv` paths (#2188) 2024-03-05 16:13:24 -05:00
simple_json.rs Replace `unwrap` with `?` in hash generation (#3003) 2024-04-12 00:41:08 +00:00