Skip to content

Fix absolute RECORD path resolution - #537

Open
binggao1230 wants to merge 1 commit into
python:mainfrom
binggao1230:fix-535-record-absolute-path
Open

binggao1230 wants to merge 1 commit into
python:mainfrom
binggao1230:fix-535-record-absolute-path

Conversation

@binggao1230

Copy link
Copy Markdown

Closes #535.

Summary

  • resolve PathDistribution.locate_file() paths through os.fspath() before joining with the distribution parent
  • add a regression test that uses PureWindowsPath to cover absolute Windows RECORD entries on non-Windows hosts

Verification

  • PYTHONPATH=. uv run --python 3.11 --with '.[test]' pytest tests/test_api.py::APITests::test_locate_file_with_windows_absolute_path -q\n- PYTHONPATH=. uv run --python 3.11 --with '.[test]' pytest tests/test_api.py::APITests::test_files_dist_info tests/test_api.py::APITests::test_files_egg_info -q\n- PYTHONPATH=. uv run --python 3.11 --with '.[test]' pytest -q\n- PYTHONPATH=. uv run --python 3.11 --with '.[test,check]' pytest --ruff -q\n- PYTHONPATH=. uv run --python 3.11 --with '.[test,type]' pytest --mypy -q\n- git diff --check\n\nAI assistance was used under my direction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant