Lightning-AI / utilities

Common Python utilities and GitHub Actions in Lightning Ecosystem
Apache License 2.0
49 stars 14 forks source link

Fix parsing pre-release package versions #292

Closed awaelchli closed 1 month ago

awaelchli commented 1 month ago

When we replaced the deprecated pkg_resources version parsing in #281, we replaced the version comparison. The previous way implicitly handled pre-release version specifications, like 1.10.0.dev0+931b44f for example. This functionality got accidentally lost (but wasn't tested before). This PR restores this so that we don't break version parsing. The added test fails on main.

Raised in https://github.com/Lightning-AI/lightning-thunder/issues/809


📚 Documentation preview 📚: https://lit-utilities--292.org.readthedocs.build/en/292/

Borda commented 1 month ago

plus pls add chlog.. :rabbit: