| 18 | |
| 19 | |
| 20 | def _install_prqlc(session: Session) -> None: |
| 21 | # Use uv for installation which is much faster |
| 22 | session.install( |
| 23 | "-v", |
| 24 | # We'd like to prevent `prqlc` from being installed from PyPI, but we do |
| 25 | # want to install its dependencies from there, and currently there's no way in |
| 26 | # plain pip of doing that (https://github.com/pypa/pip/issues/11440). |
| 27 | # "--no-index", |
| 28 | f"--find-links={Path('..', '..', '..', 'target', 'python')}", |
| 29 | "prqlc", |
| 30 | ) |
| 31 | # Install dev dependencies separately since we're using dependency-groups |
| 32 | session.install("pytest>=7", "ty>=0.0.27") |
| 33 | |
| 34 | |
| 35 | @nox.session(python=VERSIONS) # type: ignore[misc] |