[Rpm-maint] [PATCH] Add __version__ and __version_info__ to python module
pmatilai at laiskiainen.org
Mon May 3 15:32:52 UTC 2010
On Mon, 3 May 2010, James Antill wrote:
> On Mon, 2010-05-03 at 15:10 +0300, Panu Matilainen wrote:
>> Um, what's wrong with just using rpm.version symbol which is already
>> exported to python in HEAD?
> Bah, because it's not in F-13 and I'm blind and thus. can't see it in
> grep output :). Although it would be nice to provide the version_info
> tuple too, and AFAIK using leading and trailing "__" seems to be more of
> the std. than not ... but I don't really care that much.
The version symbol is not in any released rpm version yet so no problem
changing it to __version__ and adding __version_info__ too, I just wasn't
aware of such a standard. But ok, googling for __version__ does indeed
suggest it's at least a defacto-standard even if not written down
anywhere. Consider it done.
- Panu -
More information about the Rpm-maint