nox-uv 0.7.0__tar.gz → 0.7.1__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.
- {nox_uv-0.7.0 → nox_uv-0.7.1}/PKG-INFO +4 -3
- {nox_uv-0.7.0 → nox_uv-0.7.1}/README.md +3 -2
- {nox_uv-0.7.0 → nox_uv-0.7.1}/pyproject.toml +1 -1
- {nox_uv-0.7.0 → nox_uv-0.7.1}/src/nox_uv/__init__.py +6 -0
- {nox_uv-0.7.0 → nox_uv-0.7.1}/LICENSE.txt +0 -0
- {nox_uv-0.7.0 → nox_uv-0.7.1}/src/nox_uv/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nox-uv
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: Facilitate nox integration with uv for Python projects
|
|
5
5
|
Keywords: nox,uv
|
|
6
6
|
Author: Dan Tebben
|
|
@@ -121,7 +121,7 @@ def lint(s: Session) -> None:
|
|
|
121
121
|
|
|
122
122
|
> [!NOTE]
|
|
123
123
|
> The `default_groups` defined in `pyproject.toml` are _not_ installed by default. The
|
|
124
|
-
> user must explicitly list the desired groups in the `uv_groups` parameter.
|
|
124
|
+
> user must explicitly list the desired groups in the `uv_groups` parameter.
|
|
125
125
|
|
|
126
126
|
### Added parameters
|
|
127
127
|
|
|
@@ -135,9 +135,10 @@ def lint(s: Session) -> None:
|
|
|
135
135
|
- `uv_no_groups`: list of groups to exclude during install of `uv_all_groups`
|
|
136
136
|
- `uv_no_install_project`: boolean to not install the current project
|
|
137
137
|
- `uv_sync_locked`: boolean to validate that `uv.lock` is up to date
|
|
138
|
+
- `uv_quiet`: boolean to silence `uv sync` command
|
|
138
139
|
|
|
139
140
|
|
|
140
141
|
## Inspiration
|
|
141
142
|
|
|
142
|
-
This is heavily influenced by, but much more limited than,
|
|
143
|
+
This is heavily influenced by, but much more limited than,
|
|
143
144
|
[nox-poetry](https://nox-poetry.readthedocs.io).
|
|
@@ -91,7 +91,7 @@ def lint(s: Session) -> None:
|
|
|
91
91
|
|
|
92
92
|
> [!NOTE]
|
|
93
93
|
> The `default_groups` defined in `pyproject.toml` are _not_ installed by default. The
|
|
94
|
-
> user must explicitly list the desired groups in the `uv_groups` parameter.
|
|
94
|
+
> user must explicitly list the desired groups in the `uv_groups` parameter.
|
|
95
95
|
|
|
96
96
|
### Added parameters
|
|
97
97
|
|
|
@@ -105,9 +105,10 @@ def lint(s: Session) -> None:
|
|
|
105
105
|
- `uv_no_groups`: list of groups to exclude during install of `uv_all_groups`
|
|
106
106
|
- `uv_no_install_project`: boolean to not install the current project
|
|
107
107
|
- `uv_sync_locked`: boolean to validate that `uv.lock` is up to date
|
|
108
|
+
- `uv_quiet`: boolean to silence `uv sync` command
|
|
108
109
|
|
|
109
110
|
|
|
110
111
|
## Inspiration
|
|
111
112
|
|
|
112
|
-
This is heavily influenced by, but much more limited than,
|
|
113
|
+
This is heavily influenced by, but much more limited than,
|
|
113
114
|
[nox-poetry](https://nox-poetry.readthedocs.io).
|
|
@@ -30,6 +30,7 @@ def session(
|
|
|
30
30
|
uv_no_groups: Sequence[str] = (),
|
|
31
31
|
uv_no_install_project: bool = False,
|
|
32
32
|
uv_sync_locked: bool = True,
|
|
33
|
+
uv_quiet: bool = False,
|
|
33
34
|
**kwargs: dict[str, Any],
|
|
34
35
|
) -> Callable[..., Callable[..., R]]:
|
|
35
36
|
"""Drop-in replacement for the :func:`nox.session` decorator to add support for `uv`.
|
|
@@ -62,6 +63,7 @@ def session(
|
|
|
62
63
|
uv_only_groups=uv_only_groups,
|
|
63
64
|
uv_no_install_project=uv_no_install_project,
|
|
64
65
|
uv_sync_locked=uv_sync_locked,
|
|
66
|
+
uv_quiet=uv_quiet,
|
|
65
67
|
**kwargs,
|
|
66
68
|
) # type: ignore
|
|
67
69
|
|
|
@@ -75,6 +77,10 @@ def session(
|
|
|
75
77
|
if uv_sync_locked:
|
|
76
78
|
sync_cmd.append("--locked")
|
|
77
79
|
|
|
80
|
+
# Silence uv command
|
|
81
|
+
if uv_quiet:
|
|
82
|
+
sync_cmd.append("--quiet")
|
|
83
|
+
|
|
78
84
|
# Add the groups
|
|
79
85
|
extended_cmd.extend([f"--group={g}" for g in uv_groups])
|
|
80
86
|
|
|
File without changes
|
|
File without changes
|