envelopes icon indicating copy to clipboard operation
envelopes copied to clipboard

Include `envelopes.__version_info__`

Open cool-RR opened this issue 11 years ago • 4 comments

cool-RR avatar Jan 06 '14 15:01 cool-RR

Sorry, you already have __version__, but it would be nice to add envelopes.__version_info__.

cool-RR avatar Jan 06 '14 15:01 cool-RR

what would be the difference between these two objects?

funkyfuture avatar May 15 '18 14:05 funkyfuture

Haha, 4 years have passed :)

The difference is that envelopes.version_info will be an object like Python's sys.version_info that is easily accessible, unlike a string. i.e. you can get the major, minor versions and easily compare versions.

cool-RR avatar May 15 '18 14:05 cool-RR

yeah, sadly.

if you want to parse version strings, you can use semver. but a native implementation wouldn't be that hard.

funkyfuture avatar May 15 '18 14:05 funkyfuture