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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nox-uv
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Facilitate nox integration with uv for Python projects
5
5
  Project-URL: Homepage, https://github.com/dantebben/nox-uv
6
6
  Author-email: Dan Tebben <dantebben@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nox-uv"
3
- version = "0.2.1"
3
+ version = "0.2.2"
4
4
  description = "Facilitate nox integration with uv for Python projects"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -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: dict[str, Any] = {"UV_PROJECT_ENVIRONMENT": s.virtualenv.location}
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
- env["UV_PYTHON"] = s.python
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
@@ -390,7 +390,7 @@ wheels = [
390
390
 
391
391
  [[package]]
392
392
  name = "nox-uv"
393
- version = "0.2.1"
393
+ version = "0.2.2"
394
394
  source = { editable = "." }
395
395
  dependencies = [
396
396
  { name = "nox" },
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