uv/scripts/packages/package.name.with.dots
Chris Hughes 9346b4d0f6
fix: Handle dotted package names in script path resolution (#15300)
<!--
Thank you for contributing to uv! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

Fix WindowsRunnable::from_script_path to correctly append extensions
instead of replacing them when resolving executable paths. This resolves
https://github.com/astral-sh/uv/issues/15165#issue-3304086689.

- Add add_extension_to_path helper that appends extensions properly
- Update extension resolution to use the new helper
- Add tests

## Test Plan

Added unit tests for the new and existing functionality that the change
touches. Tested manually locally on Windows.
<!-- How was it tested? -->

---------

Co-authored-by: Zanie Blue <contact@zanie.dev>
2025-08-15 16:44:59 -05:00
..
scripts fix: Handle dotted package names in script path resolution (#15300) 2025-08-15 16:44:59 -05:00
src/package_name_with_dots fix: Handle dotted package names in script path resolution (#15300) 2025-08-15 16:44:59 -05:00
pyproject.toml fix: Handle dotted package names in script path resolution (#15300) 2025-08-15 16:44:59 -05:00
README.md fix: Handle dotted package names in script path resolution (#15300) 2025-08-15 16:44:59 -05:00

package.name.with.dots

Test package for verifying Windows executable handling with dotted package names.

This package is used to test the fix for the uvx Windows executable bug where package names containing dots were incorrectly handled when adding Windows executable extensions.