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 e126b94
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .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 All @@ -41,6 +41,7 @@ jobs:
run: python -m pip uninstall pip -y
- name: Active uv for global env
run: echo "VIRTUAL_ENV=${Python_ROOT_DIR}" >> $GITHUB_ENV
shell: bash
- name: Install self
run: uv pip install tox-uv@.
- name: setup python for test ${{ matrix.py }}
Expand All @@ -56,7 +57,7 @@ jobs:
file_handler.write(env)
shell: python
- name: setup test suite
run: tox -vv --notest
run: tox -vvvv --notest
- name: run test suite
run: tox --skip-pkg-install

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 e126b94

Please sign in to comment.