nox-uv 0.1.1.dev0__py3-none-any.whl → 0.2.0__py3-none-any.whl

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/__init__.py CHANGED
@@ -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.
@@ -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>
@@ -0,0 +1,6 @@
1
+ nox_uv/__init__.py,sha256=eh9dTo-E9s59XvbWuctYw6jclZhK38CR8CincSBrrgU,2969
2
+ nox_uv/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ nox_uv-0.2.0.dist-info/METADATA,sha256=gUGuU5-DqGrYtgO4GVD9cmIE0W4s3BitbR47IvQI6R0,1328
4
+ nox_uv-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ nox_uv-0.2.0.dist-info/licenses/LICENSE.txt,sha256=iTZ5ALF1isnM6Ey9Tjom0XIGBBysArB0I2NHZ9a-b8I,1067
6
+ nox_uv-0.2.0.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- nox_uv/__init__.py,sha256=mvMB1ct23RsbfSbcHucPpGIEZkyA8KaE9xPG-VbUlJk,3072
2
- nox_uv/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- nox_uv-0.1.1.dev0.dist-info/METADATA,sha256=3C2eaTInFiHhP_maTwzGqo1T2prQ6Ds8lniSNzyv97M,1333
4
- nox_uv-0.1.1.dev0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- nox_uv-0.1.1.dev0.dist-info/licenses/LICENSE.txt,sha256=iTZ5ALF1isnM6Ey9Tjom0XIGBBysArB0I2NHZ9a-b8I,1067
6
- nox_uv-0.1.1.dev0.dist-info/RECORD,,