mozilla-releng/mozilla-version

Add documentation: public API, usage examples

Closed this issue · 2 comments

Add documentation: public API, usage examples

Thank you for filing the very first issue of mozilla-version 🎉. Good news first: Version 0.1.x already exposes these value via:

version.major_number
version.minor_number
version.patch_number
version.beta_number

I know it's not crystal clear from the code. These public attributes are set at

setattr(self, field_name, int(matched_value))

Your issue points another problem out, though: there is no public documentation. I'll handle this part. In the meantime, I'm renaming this issue to reflect this lack.