feat: expose uv_normalize types (#2082)

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->

Expose the uv_normalize types from pep508, so that these can be used
with a crates.io version.

---------

Co-authored-by: konsti <konstin@mailbox.org>
This commit is contained in:
Tim de Jager 2024-02-29 16:06:56 +01:00 committed by GitHub
parent b983ff4fa7
commit 9a99aa7776
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,9 +43,8 @@ pub use marker::{
};
use pep440_rs::{Version, VersionSpecifier, VersionSpecifiers};
use uv_fs::normalize_url_path;
#[cfg(feature = "pyo3")]
use uv_normalize::InvalidNameError;
use uv_normalize::{ExtraName, PackageName};
// Parity with the crates.io version of pep508_rs
pub use uv_normalize::{ExtraName, InvalidNameError, PackageName};
pub use verbatim_url::{split_scheme, Scheme, VerbatimUrl};
mod marker;