Closed Kludex closed 4 months ago
Attention: Patch coverage is 51.26904% with 96 lines in your changes are missing coverage. Please review. |
Files | Patch % | Lines |
---|---|---|---|
logfire/_vendor/packaging/version.py | 49.38% | 72 Missing and 10 partials :warning: | |
logfire/_vendor/packaging/_structures.py | 56.25% | 14 Missing :warning: |
:loudspeaker: Thoughts on this report? Let us know!
I don't feel good about this. If we don't want to rely on other packages for version parsing then I'd rather find a different solution. For example:
version = '2.5.3'
parts = tuple(map(int, version.split('.')[:2]))
print(parts < (2, 6))
print(parts < (2, 5))
Parsing a full version requires accounting for betas and stuff (which might be easy enough for known packages like pydantic) but in this case we don't even need the full version, just the first two parts.
Deploying logfire-docs with Cloudflare Pages
ea181d0
View logs