nox-uv 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nox_uv-0.2.1 → nox_uv-0.2.2}/PKG-INFO +1 -1
- {nox_uv-0.2.1 → nox_uv-0.2.2}/pyproject.toml +1 -1
- {nox_uv-0.2.1 → nox_uv-0.2.2}/src/nox_uv/__init__.py +6 -6
- {nox_uv-0.2.1 → nox_uv-0.2.2}/uv.lock +1 -1
- {nox_uv-0.2.1 → nox_uv-0.2.2}/.editorconfig +0 -0
- {nox_uv-0.2.1 → nox_uv-0.2.2}/.github/workflows/ci.yml +0 -0
- {nox_uv-0.2.1 → nox_uv-0.2.2}/.gitignore +0 -0
- {nox_uv-0.2.1 → nox_uv-0.2.2}/.python-version +0 -0
- {nox_uv-0.2.1 → nox_uv-0.2.2}/LICENSE.txt +0 -0
- {nox_uv-0.2.1 → nox_uv-0.2.2}/README.md +0 -0
- {nox_uv-0.2.1 → nox_uv-0.2.2}/noxfile.py +0 -0
- {nox_uv-0.2.1 → nox_uv-0.2.2}/src/nox_uv/py.typed +0 -0
- {nox_uv-0.2.1 → nox_uv-0.2.2}/tests/__init__.py +0 -0
- {nox_uv-0.2.1 → nox_uv-0.2.2}/tests/subnoxfile.py +0 -0
- {nox_uv-0.2.1 → nox_uv-0.2.2}/tests/test_lib.py +0 -0
|
@@ -77,17 +77,17 @@ def session(
|
|
|
77
77
|
@functools.wraps(function)
|
|
78
78
|
def wrapper(s: nox.Session, *_args: Any, **_kwargs: Any) -> None:
|
|
79
79
|
if s.venv_backend == "uv":
|
|
80
|
-
env
|
|
80
|
+
s.env["UV_PROJECT_ENVIRONMENT"] = s.virtualenv.location
|
|
81
81
|
|
|
82
82
|
# UV called from Nox does not respect the Python version set in the Nox session.
|
|
83
83
|
# We need to pass the Python version to UV explicitly.
|
|
84
84
|
if s.python is not None:
|
|
85
|
-
|
|
85
|
+
# NOTE: casting to string explicitly because implicit casting isn't working
|
|
86
|
+
# for the type checker.
|
|
87
|
+
s.env["UV_PYTHON"] = str(s.python)
|
|
88
|
+
|
|
89
|
+
s.run_install(*sync_cmd)
|
|
86
90
|
|
|
87
|
-
s.run_install(
|
|
88
|
-
*sync_cmd,
|
|
89
|
-
env=env,
|
|
90
|
-
)
|
|
91
91
|
function(nox.Session(s._runner), *_args, **_kwargs)
|
|
92
92
|
|
|
93
93
|
return nox.session( # type: ignore
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|