Skip to content

Commit c21ec9e

Browse files
authored
Merge pull request #59 from DavidCEllis/revert-uv-manager-name
Switch the "managed_by" field for UV installs to be "Astral uv"
2 parents acd64cf + 4047ef5 commit c21ec9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ducktools/pythonfinder/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def _implementation_from_uv_dir(
531531

532532
for pth in python_paths:
533533
if os.path.exists(pth):
534-
install = finder.get_install_details(pth, managed_by="Astral")
534+
install = finder.get_install_details(pth, managed_by="Astral uv")
535535
break
536536

537537
return install

tests/test_uv_finder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_finds_installed_python(self, uv_pythondir, temp_finder):
138138
assert len(pythons) == 1
139139
assert pythons[0].version_str == "3.12.6"
140140
assert pythons[0].implementation == "cpython"
141-
assert pythons[0].managed_by == "Astral UV"
141+
assert pythons[0].managed_by == "Astral uv"
142142

143143
@pytest.mark.uv_python
144144
def test_finds_installed_pypy(self, uv_pythondir, temp_finder):
@@ -152,7 +152,7 @@ def test_finds_installed_pypy(self, uv_pythondir, temp_finder):
152152
assert pythons[0].version >= (3, 10, 14)
153153
assert pythons[0].implementation == "pypy"
154154
assert pythons[0].implementation_version >= (7, 3, 17)
155-
assert pythons[0].managed_by == "Astral UV"
155+
assert pythons[0].managed_by == "Astral uv"
156156

157157

158158
def test_regex_matches():

0 commit comments

Comments
 (0)