uv/crates/pypi-types/src
Andrew Gallant 33480d61eb switch to jiff from chrono (#6205)
This PR migrates uv's use of `chrono` to `jiff`.

I did most of this work a while back as one of my tests to ensure Jiff
could actually be used in a real world project. I decided to revive
this because I noticed that `reqwest-retry` dropped its Chrono
dependency,
which is I believe the only other thing requiring Chrono in uv.
(Although, we use a fork of `reqwest-middleware` at present, and that
hasn't been updated to latest upstream yet. I wasn't quite sure of the
process we have for that.)

In course of doing this, I actually made two changes to uv:

First is that the lock file now writes an RFC 3339 timestamp for
`exclude-newer`. Previously, we were using Chrono's `Display`
implementation for this which is a non-standard but "human readable"
format. I think the right thing to do here is an RFC 3339 timestamp.

Second is that, in addition to an RFC 3339 timestamp, `--exclude-newer`
used to accept a "UTC date." But this PR changes it to a "local date."
That is, a date in the user's system configured time zone. I think
this makes more sense than a UTC date, but one alternative is to drop
support for a date and just rely on an RFC 3339 timestamp. The main
motivation here is that automatically assuming UTC is often somewhat
confusing, since just writing an unqualified date like `2024-08-19` is
often assumed to be interpreted relative to the writer's "local" time.
2024-08-20 11:31:46 -05:00
..
base_url.rs Remove some unused `pub` functions (#3872) 2024-05-28 15:58:13 +00:00
direct_url.rs Use hasher to compute resolution hash (#5495) 2024-07-26 23:24:09 +00:00
lenient_requirement.rs Upgrade to Rust 1.80.0 (#5472) 2024-07-27 01:49:47 +00:00
lib.rs Add support for `tool.uv` into distribution building (#3904) 2024-05-31 02:42:03 +00:00
metadata.rs Use existing METADATA parser in wheel installer (#5508) 2024-07-27 14:38:16 -04:00
parsed_url.rs Use consistent canonicalization for URLs (#5980) 2024-08-09 21:43:36 -04:00
requirement.rs Use sets rather than vectors for lockfile requirements (#6107) 2024-08-15 13:00:35 +00:00
scheme.rs Query interpreter to determine correct `virtualenv` paths (#2188) 2024-03-05 16:13:24 -05:00
simple_json.rs switch to jiff from chrono (#6205) 2024-08-20 11:31:46 -05:00