nox-uv 0.2.1__py3-none-any.whl → 0.2.2__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
@@ -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
@@ -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>
@@ -0,0 +1,6 @@
1
+ nox_uv/__init__.py,sha256=F8ssJOwgOfXFcQ9Qw5i3iVmmfPQuSVMzAW-iUjGJ6C0,3049
2
+ nox_uv/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ nox_uv-0.2.2.dist-info/METADATA,sha256=aU0SsLaD61iWn54WFmmBqbn5cqqyq4sYkDCZ0nV_5-0,1328
4
+ nox_uv-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ nox_uv-0.2.2.dist-info/licenses/LICENSE.txt,sha256=iTZ5ALF1isnM6Ey9Tjom0XIGBBysArB0I2NHZ9a-b8I,1067
6
+ nox_uv-0.2.2.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- nox_uv/__init__.py,sha256=xtMQ4CI42DOkUvBZCvvl4brjXQlsZD9bB9aT2mYFPm0,2981
2
- nox_uv/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- nox_uv-0.2.1.dist-info/METADATA,sha256=GomceP_IRCri0hrkxlDKhTDLqVxE-ZLSVVlLTXpyu9M,1328
4
- nox_uv-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- nox_uv-0.2.1.dist-info/licenses/LICENSE.txt,sha256=iTZ5ALF1isnM6Ey9Tjom0XIGBBysArB0I2NHZ9a-b8I,1067
6
- nox_uv-0.2.1.dist-info/RECORD,,
File without changes