nox-uv 0.1.1.dev0__tar.gz → 0.2.0__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.1.1.dev0
3
+ Version: 0.2.0
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.1.1-dev0"
3
+ version = "0.2.0"
4
4
  description = "Facilitate nox integration with uv for Python projects"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -57,11 +57,6 @@ def session(
57
57
 
58
58
  [function] = args
59
59
 
60
- if venv_backend is None:
61
- venv_backend = nox.options.default_venv_backend
62
-
63
- is_uv = venv_backend == "uv"
64
-
65
60
  # Create the `uv sync` command
66
61
  sync_cmd = ["uv", "sync", "--no-default-groups"]
67
62
 
@@ -81,7 +76,7 @@ def session(
81
76
 
82
77
  @functools.wraps(function)
83
78
  def wrapper(s: nox.Session, *_args: Any, **_kwargs: Any) -> None:
84
- if is_uv:
79
+ if s.venv_backend == "uv":
85
80
  env: dict[str, Any] = {"UV_PROJECT_ENVIRONMENT": s.virtualenv.location}
86
81
 
87
82
  # UV called from Nox does not respect the Python version set in the Nox session.
@@ -390,7 +390,7 @@ wheels = [
390
390
 
391
391
  [[package]]
392
392
  name = "nox-uv"
393
- version = "0.1.1.dev0"
393
+ version = "0.2.0"
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