From 96b24345eb3f093a7c056a75c7b2a17be357681b Mon Sep 17 00:00:00 2001
From: Jo <10510431+j178@users.noreply.github.com>
Date: Wed, 24 Jul 2024 03:56:50 +0800
Subject: [PATCH] Allow comments in `.python-version[s]` (#5350)
## Summary
Do the same thing as https://github.com/astral-sh/rye/pull/1038.
---
crates/uv-python/src/version_files.rs | 21 +++++++++++--
crates/uv/tests/python_pin.rs | 43 +++++++++++++++++++++++++--
2 files changed, 60 insertions(+), 4 deletions(-)
diff --git a/crates/uv-python/src/version_files.rs b/crates/uv-python/src/version_files.rs
index 4067d1b4d..22cad953c 100644
--- a/crates/uv-python/src/version_files.rs
+++ b/crates/uv-python/src/version_files.rs
@@ -56,7 +56,17 @@ async fn read_versions_file() -> Result