[X] I have searched the issues of this repo and believe that this is not a duplicate.
[X] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
OS version and name: Ubuntu 19.10 x86_64
Poetry version: Poetry version 1.1.6
Issue
When running poetry build for the first time the file (version.py) built by my custom build script (version_info.py) isn't added in the wheel sources resulting in a broken build.
I was trying to do exactly what you were with some shell scripts, googled a more native solution - found this issue and it looked great until I realised it's not working. Subscribed anyway.
-vvv
option).Issue
When running
poetry build
for the first time the file (version.py
) built by my custom build script (version_info.py
) isn't added in the wheel sources resulting in a broken build.Expected file tree:
Actual file tree:
If i run
poetry build
a second time the file is added to the wheel as expected.project-name/version.py.in
contentpyproject.toml
contentversion_info.py
contentAm I missing something obvious?