Skip to content

Include package metadata in PyInstaller bundles - #721

Merged
mosquito merged 1 commit into
masterfrom
fix/pyinstaller-metadata
Sep 27, 2026
Merged

mosquito merged 1 commit into
masterfrom
fix/pyinstaller-metadata

Conversation

@mosquito

Copy link
Copy Markdown
Owner

Frozen applications fail to import aio-pika because its distribution metadata is missing when resolving __version__.

Register a PyInstaller hook through the pyinstaller40 entry point to copy the metadata automatically. Keep the hook alongside aio_pika/__init__.py, with the hook-directory function in that module, so applications need no extra build flags or spec changes. PyInstaller remains an optional build tool.

Fixes #681.

@mosquito
mosquito merged commit 4f8b124 into master Sep 27, 2026
6 checks passed
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 92.562% (-0.2%) from 92.72% — fix/pyinstaller-metadata into master

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.

Package is not included in the Pyinstaller output directory

2 participants