effigies / looseversion

A backwards/forwards-compatible fork of distutils.version.LooseVersion
Other
13 stars 1 forks source link

ENH: Restore Python 2 semantics #17

Closed effigies closed 1 year ago

effigies commented 1 year ago

Time was, any LooseVersion could be compared to any other LooseVersion, and if that meant comparing ints and strs, so be it. That time was Python 2. Obviously Python 2 is end-of-life, but to verify that the behavior was consistent, I needed get tests working in Python 2. That basically means subclassing object and stripping out type annotations, which is fine, since we're publishing a stub anyway.

I'm not going to bother trying to get tox/GitHub actions working with Python 2. This will be installable on end-of-life Pythons, but not supported.

Closes #16.