git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Embedding version in command-line program


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.