diff --git a/pyproject.toml b/pyproject.toml index 4dbb5d1..291f0ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ dynamic = [ ] dependencies = [ "tox<5,>=4.13", - "uv<1,>=0.1.4", + "uv<1,>=0.1.5", ] optional-dependencies.test = [ "covdefaults>=2.3", diff --git a/tests/test_tox_uv_installer.py b/tests/test_tox_uv_installer.py index ee2a213..c6d3212 100644 --- a/tests/test_tox_uv_installer.py +++ b/tests/test_tox_uv_installer.py @@ -1,5 +1,6 @@ from __future__ import annotations +import sys from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -22,7 +23,10 @@ def test_uv_install_in_ci_seed(tox_project: ToxProjectCreator, monkeypatch: pyte result = project.run() result.assert_success() report = {i.split("=")[0] for i in result.out.splitlines()[-3][4:].split(",")} - assert report == {"pip", "setuptools", "wheel"} + if sys.version_info >= (3, 12): # pragma: >=3.12 cover + assert report == {"pip"} + else: # pragma: <3.12 cover + assert report == {"pip", "setuptools", "wheel"} def test_uv_install_with_pre(tox_project: ToxProjectCreator) -> None: diff --git a/tests/test_tox_uv_package.py b/tests/test_tox_uv_package.py index 1fd26c0..1167142 100644 --- a/tests/test_tox_uv_package.py +++ b/tests/test_tox_uv_package.py @@ -1,5 +1,6 @@ from __future__ import annotations +import sys from typing import TYPE_CHECKING import pytest @@ -30,9 +31,15 @@ def test_uv_package_editable(tox_project: ToxProjectCreator, package: str, demo_ def test_uv_package_editable_legacy(tox_project: ToxProjectCreator, demo_pkg_setuptools: Path) -> None: - project = tox_project( - {"tox.ini": "[testenv]\npackage=editable-legacy\n[testenv:.pkg]\nuv_seed=true"}, base=demo_pkg_setuptools - ) + ini = f""" + [testenv] + package=editable-legacy + + [testenv:.pkg] + uv_seed = true + {"deps = wheel" if sys.version_info >= (3, 12) else ""} + """ + project = tox_project({"tox.ini": ini}, base=demo_pkg_setuptools) result = project.run() result.assert_success()