Learn how to compare version strings in Python programmatically using the packaging.version package. See an example of how to use it to mark a pytest test as skipped based on the version of Datasette.

3m read time From til.simonwillison.net
Post cover image
Table of contents
Related

Sort: