Skip to content

Commit

Permalink
Test with Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <[email protected]>
  • Loading branch information
gaborbernat committed Feb 20, 2024
1 parent 3d184f0 commit d2b695a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- "3.8"
os:
- ubuntu-latest
# - windows-latest
- windows-latest
- macos-latest
steps:
- name: setup python for tox
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dynamic = [
]
dependencies = [
"tox<5,>=4.13",
"uv<1,>=0.1.5",
"uv<1,>=0.1.6",
]
optional-dependencies.test = [
"covdefaults>=2.3",
Expand Down
4 changes: 2 additions & 2 deletions src/tox_uv/_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from tox.tox_env.python.package import EditableLegacyPackage, EditablePackage, SdistPackage, WheelPackage
from tox.tox_env.python.pip.pip_install import Pip
from tox.tox_env.python.pip.req_file import PythonDeps
from uv.__main__ import find_uv_bin # noqa: PLC2701
from uv import find_uv_bin

if TYPE_CHECKING:
from tox.config.main import Config
Expand All @@ -32,7 +32,7 @@ def _register_config(self) -> None:

@property
def uv(self) -> str:
return cast(str, find_uv_bin())
return find_uv_bin()

def default_install_command(self, conf: Config, env_name: str | None) -> Command: # noqa: ARG002
cmd = [self.uv, "pip", "install", "{opts}", "{packages}"]
Expand Down
4 changes: 2 additions & 2 deletions src/tox_uv/_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from tox.execute.local_sub_process import LocalSubProcessExecutor
from tox.execute.request import StdinSource
from tox.tox_env.python.api import Python, PythonInfo, VersionInfo
from uv.__main__ import find_uv_bin # noqa: PLC2701
from uv import find_uv_bin
from virtualenv.discovery.py_spec import PythonSpec

from ._installer import UvInstaller
Expand Down Expand Up @@ -91,7 +91,7 @@ def _get_python(self, base_python: list[str]) -> PythonInfo | None: # noqa: PLR

@property
def uv(self) -> str:
return cast(str, find_uv_bin())
return find_uv_bin()

@property
def venv_dir(self) -> Path:
Expand Down

0 comments on commit d2b695a

Please sign in to comment.