Make warnings user-facing (#628)

## Summary

Now, `puffin_warnings::warn_once` and `puffin_warnings::warn` will go to
`stderr`, as long as the user isn't running under `--quiet`. Previously,
these went through `tracing`, and so were only visible when running
under `--verbose`.
This commit is contained in:
Charlie Marsh 2023-12-12 21:24:38 -05:00 committed by GitHub
parent 490fb55ac5
commit a24eb57e93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 95 additions and 66 deletions

View file

@ -9,8 +9,8 @@ use pep508_rs::MarkerEnvironment;
use platform_tags::{TagPriority, Tags};
use puffin_client::SimpleMetadata;
use puffin_interpreter::Interpreter;
use puffin_macros::warn_once;
use puffin_normalize::PackageName;
use puffin_warnings::warn_once;
use pypi_types::Yanked;
use crate::file::{DistFile, SdistFile, WheelFile};
@ -64,7 +64,7 @@ impl VersionMap {
}
None => {
warn_once!(
"{} is missing an upload date, but user provided {}",
"{} is missing an upload date, but user provided: {}",
file.filename,
exclude_newer,
);