15 May
2019
15 May
'19
2:30 p.m.
On 2019-05-15 21:26:15 +0000 (+0000), Jeremy Stanley wrote: [...]
As of PBR 2.1.0 the penalty can be deferred by separating your version query function out to a separate module and lazy-loading that only when the version info is actually needed [...]
Er, sorry, I meant before 2.1.0 you would work around it that way. Starting in 2.1.0 PBR lazy-imports pkg_resources only when it's being asked to query it, so you no longer need to separate your import of PBR out from your other modules. -- Jeremy Stanley