nox-uv 0.5.0__py3-none-any.whl → 0.6.1__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
@@ -26,6 +26,7 @@ def session(
26
26
  uv_only_groups: Sequence[str] = (),
27
27
  uv_all_extras: bool = False,
28
28
  uv_all_groups: bool = False,
29
+ uv_no_install_project: bool = False,
29
30
  uv_sync_locked: bool = True,
30
31
  **kwargs: dict[str, Any],
31
32
  ) -> Callable[..., Callable[..., R]]:
@@ -34,7 +35,7 @@ def session(
34
35
  Args:
35
36
  args: Positional arguments are forwarded to ``nox.session``.
36
37
  kwargs: Keyword arguments are forwarded to ``nox.session``. Used to catch any future
37
- arguments of nox.session that aren't explicitely captured in nox_uv.session.
38
+ arguments of nox.session that aren't explicitly captured in nox_uv.session.
38
39
 
39
40
  Returns:
40
41
  The decorated session function.
@@ -55,6 +56,7 @@ def session(
55
56
  uv_all_extras=uv_all_extras,
56
57
  uv_all_groups=uv_all_groups,
57
58
  uv_only_groups=uv_only_groups,
59
+ uv_no_install_project=uv_no_install_project,
58
60
  uv_sync_locked=uv_sync_locked,
59
61
  **kwargs,
60
62
  ) # type: ignore
@@ -84,6 +86,9 @@ def session(
84
86
  if uv_all_extras:
85
87
  extended_cmd.append("--all-extras")
86
88
 
89
+ if uv_no_install_project:
90
+ extended_cmd.append("--no-install-project")
91
+
87
92
  sync_cmd += extended_cmd
88
93
 
89
94
  @functools.wraps(function)
@@ -104,7 +109,7 @@ def session(
104
109
  else:
105
110
  if len(extended_cmd) > 0:
106
111
  raise s.error(
107
- 'Using "uv" specific paramaters is not allowed outside of a "uv" '
112
+ 'Using "uv" specific parameters is not allowed outside of a "uv" '
108
113
  "venv_backend.\n"
109
114
  f"Check the venv_backend, or the {extended_cmd} parameters."
110
115
  )
nox_uv/py.typed CHANGED
File without changes
@@ -1,14 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nox-uv
3
- Version: 0.5.0
3
+ Version: 0.6.1
4
4
  Summary: Facilitate nox integration with uv for Python projects
5
- Project-URL: Homepage, https://github.com/dantebben/nox-uv
6
- Project-URL: Repository, https://github.com/dantebben/nox-uv
7
- Project-URL: Issues, https://github.com/dantebben/nox-uv/issues
5
+ Keywords: nox,uv
6
+ Author: Dan Tebben
8
7
  Author-email: Dan Tebben <dantebben@gmail.com>
9
8
  License-Expression: MIT
10
9
  License-File: LICENSE.txt
11
- Keywords: nox,uv
12
10
  Classifier: Development Status :: 4 - Beta
13
11
  Classifier: Intended Audience :: Developers
14
12
  Classifier: License :: OSI Approved :: MIT License
@@ -22,8 +20,11 @@ Classifier: Programming Language :: Python :: 3.12
22
20
  Classifier: Programming Language :: Python :: 3.13
23
21
  Classifier: Topic :: Software Development :: Testing
24
22
  Classifier: Typing :: Typed
23
+ Requires-Dist: nox>=2025.5.1
25
24
  Requires-Python: >=3.9
26
- Requires-Dist: nox>=2025.05.01
25
+ Project-URL: Homepage, https://github.com/dantebben/nox-uv
26
+ Project-URL: Issues, https://github.com/dantebben/nox-uv/issues
27
+ Project-URL: Repository, https://github.com/dantebben/nox-uv
27
28
  Description-Content-Type: text/markdown
28
29
 
29
30
  ## Intro
@@ -44,8 +45,8 @@ Description-Content-Type: text/markdown
44
45
  [ruff-badge]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
45
46
  [mypy-badge]: https://www.mypy-lang.org/static/mypy_badge.svg
46
47
 
47
- `nox-uv` is a simple drop-in replacement for [nox](https://nox.thea.codes/)'s `@nox.session` that installs
48
- dependencies constrained by [uv](https://docs.astral.sh/uv/)'s lockfile.
48
+ `nox-uv` is a simple drop-in replacement for [nox](https://nox.thea.codes/)'s `@nox.session` that
49
+ installs dependencies constrained by [uv](https://docs.astral.sh/uv/)'s lockfile.
49
50
 
50
51
  ## Usage
51
52
 
@@ -85,6 +86,8 @@ Within, your `noxfile.py`:
85
86
  dependencies.
86
87
  - `uv sync` is used to install dependencies so that their versions are constrained by
87
88
  `uv.lock`.
89
+ - By default (configurable with the `uv_sync_locked` parameter), `uv.lock` is also
90
+ validated to be up to date.
88
91
 
89
92
  ```py
90
93
  from nox import Session, options
@@ -107,7 +110,7 @@ def type_check(s: Session) -> None:
107
110
 
108
111
 
109
112
  @session(uv_only_groups=["lint"])
110
- def type_check(s: Session) -> None:
113
+ def lint(s: Session) -> None:
111
114
  s.run("ruff", "check", ".")
112
115
  s.run("ruff", "format", "--check", ".")
113
116
  ```
@@ -124,10 +127,11 @@ def type_check(s: Session) -> None:
124
127
  - `uv_groups`: list of `uv` _dependency-groups_
125
128
  - `uv_extras`: list of `uv` _optional-dependencies_
126
129
  - `uv_only_groups`: list of `uv` _only-groups_ to include. Prevents installation of project
127
- _dependencies_.
130
+ _dependencies_
128
131
  - `uv_all_extras`: boolean to install all _optional-dependencies_ from `pyproject.toml`
129
132
  - `uv_all_groups`: boolean to install all _dependency-groups_
130
- - `uv_sync_locked`: boolean to validate that `uv.lock` is up-to-date
133
+ - `uv_no_install_project`: boolean to not install the current project
134
+ - `uv_sync_locked`: boolean to validate that `uv.lock` is up to date
131
135
 
132
136
 
133
137
  ## Inspiration
@@ -0,0 +1,6 @@
1
+ nox_uv/__init__.py,sha256=98c67130740d28d4e9e006e506f15aea706b9f6f0dc7b88c13f4e93b45c15761,3979
2
+ nox_uv/py.typed,sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855,0
3
+ nox_uv-0.6.1.dist-info/licenses/LICENSE.txt,sha256=89367900b1758ac9cce84cbd4e3a26d17206041cac02b07423634767d6be6fc2,1067
4
+ nox_uv-0.6.1.dist-info/WHEEL,sha256=607c46fee47e440c91332c738096ff0f5e54ca3b0818ee85462dd5172a38e793,79
5
+ nox_uv-0.6.1.dist-info/METADATA,sha256=cf63cd5a4651d847b0c4fc0ea65388d2ce51799412c79484c9c79a4c966f7bb9,4802
6
+ nox_uv-0.6.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.7.19
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -1,6 +0,0 @@
1
- nox_uv/__init__.py,sha256=saOMVr75kYQRM1F2y0WhswoalybmXaeqyXWiQw1PtOs,3799
2
- nox_uv/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- nox_uv-0.5.0.dist-info/METADATA,sha256=E0z2X2Ls22uPh4gfkupWkBLlWSAPlAe7LqQGLrlskBM,4599
4
- nox_uv-0.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- nox_uv-0.5.0.dist-info/licenses/LICENSE.txt,sha256=iTZ5ALF1isnM6Ey9Tjom0XIGBBysArB0I2NHZ9a-b8I,1067
6
- nox_uv-0.5.0.dist-info/RECORD,,
@@ -1,4 +0,0 @@
1
- Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
3
- Root-Is-Purelib: true
4
- Tag: py3-none-any