Skip to content

test: Add PKG-INFO to egg-info mocks for Python 3.15 compatibility#1488

Merged
Conan-Kudo merged 1 commit intorpm-software-management:mainfrom
hroncok:python3.15
Apr 2, 2026
Merged

test: Add PKG-INFO to egg-info mocks for Python 3.15 compatibility#1488
Conan-Kudo merged 1 commit intorpm-software-management:mainfrom
hroncok:python3.15

Conversation

@hroncok
Copy link
Copy Markdown
Contributor

@hroncok hroncok commented Apr 2, 2026

Python 3.15's importlib.metadata now strictly requires PKG-INFO files in egg-info directories when accessing the requires property. Without it, self.metadata is None and triggers AttributeError when reading d.requires. Although reported as a regression, upstream chose to enforce this requirement rather than handle missing metadata gracefully.

python/cpython#143387

In near future, it will raise MetadataNotFound(FileNotFoundError).

python/cpython#146234

Python 3.15's importlib.metadata now strictly requires PKG-INFO files
in egg-info directories when accessing the requires property. Without it,
self.metadata is None and triggers AttributeError when reading d.requires.
Although reported as a regression, upstream chose to enforce this requirement
rather than handle missing metadata gracefully.

python/cpython#143387

In near future, it will raise MetadataNotFound(FileNotFoundError).

python/cpython#146234
@Conan-Kudo Conan-Kudo merged commit ccb7257 into rpm-software-management:main Apr 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants