Use "pre-release" in prose and Prerelease in code (#5697)

## Summary

Closes https://github.com/astral-sh/uv/issues/5630.
This commit is contained in:
Charlie Marsh 2024-08-01 16:56:29 -04:00 committed by GitHub
parent 6797caccdb
commit 499c368f1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 278 additions and 277 deletions

View file

@ -177,7 +177,7 @@ impl PythonVersion {
mod tests {
use std::str::FromStr;
use pep440_rs::{PreRelease, PreReleaseKind, Version};
use pep440_rs::{Prerelease, PrereleaseKind, Version};
use crate::PythonVersion;
@ -200,8 +200,8 @@ mod tests {
assert_eq!(version.python_version().to_string(), "3.11");
assert_eq!(
version.python_full_version(),
Version::new([3, 11, 8]).with_pre(Some(PreRelease {
kind: PreReleaseKind::Alpha,
Version::new([3, 11, 8]).with_pre(Some(Prerelease {
kind: PrereleaseKind::Alpha,
number: 1
}))
);