Embedding version in command-line program
Loris Bennett
loris.bennett at fu-berlin.de
Wed Oct 7 08:16:28 EDT 2020
Hi Marco,
Marco Sulla <Marco.Sulla.Python at gmail.com> writes:
> In __init__.py, you can parse the toml file, extract the version and
> store it in a __version__ variable.
But the toml file isn't part of the distribution and so it won't be
installed.
I suppose I could write a separate program which parses the toml file
and then just injects the version into __init__.py.
Cheers,
Loris
--
This signature is currently under construction.
More information about the Python-list
mailing list