Please see thmahe/poetry-pyinstaller-plugin#54 for discussion.
Summary
poetry-pyinstaller-plugin fails to use the correct version string when tool.poetry-dynamic-versioning.metadata is unset or true.
Solution
Ensure tool.poetry-dynamic-versioning.metadata = false. The eliminates the git hash from the version string making it PEP440 compliant. This allows poetry-pyinstaller-plugin to use the version string.
Example
https://github.com/comalice/python_dynamic_version_and_pyinstaller