Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix warning message for missing METADATA file
Fixes #12446 Update the warning message for missing `METADATA` file in dist-info directories. * Update the warning message in `src/pip/_internal/metadata/importlib/_compat.py` to differentiate between a missing `METADATA` file and other metadata issues. * Add a check for the existence of the `METADATA` file in the `get_dist_canonical_name` function. * Add a test case in `tests/functional/test_list.py` to verify the new warning message for a missing `METADATA` file. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/pypa/pip/issues/12446?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information