Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Show HN: Uv-matrix – A tiny matrix runner for Python projects using Astral uv

Uv-matrix is a compact tool that runs matrix tests for Python projects using Astral uv. It is designed to simplify and speed up testing across multiple environments by leveraging uv's package management.

Background

- **uv** is a fast Python package installer and resolver (by Astral Software), written in Rust as a drop-in alternative to pip and pip-tools. It's gained significant traction in the Python community for its speed and reliability.<br>- **Matrix testing** is a CI practice where the same test suite runs across multiple combinations of Python versions and operating systems (e.g., Python 3.10–3.13 on Linux, macOS, Windows).<br>- **uv-matrix** is a lightweight tool that lets you run these matrix combinations locally (not just in CI). It automatically creates isolated virtual environments for each combination and uses uv to install dependencies quickly.<br>- This matters because testing across Python versions locally is often cumbersome (slow, manual env management). uv-matrix aims to make it trivial and fast, appealing to Python library maintainers who need cross-version compatibility.

Related stories