Skip to content

Commit 7b29beb

Browse files
authored
Fix not using a cryptography wheel on uv (#1475)
1 parent 35b55a3 commit 7b29beb

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

noxfile.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ def tests(session: nox.Session) -> None:
2828
if "random-order" in session.name:
2929
random_order = True
3030

31-
session.env.update(
32-
{
33-
"PIP_NO_BINARY": "" if use_wheel else "cryptography",
34-
}
35-
)
36-
3731
deps = ["coverage>=4.2"]
3832

3933
if cryptography_version == "minimum":
@@ -42,8 +36,13 @@ def tests(session: nox.Session) -> None:
4236
if random_order:
4337
deps.append("pytest-randomly")
4438

39+
extra_install_args = []
40+
if not use_wheel:
41+
extra_install_args.append("--no-binary")
42+
extra_install_args.append("cryptography")
43+
4544
session.install(*deps)
46-
session.install("-e", ".[test]")
45+
session.install("-e", ".[test]", *extra_install_args)
4746
if cryptography_version == "main":
4847
session.install("git+https://github.com/pyca/cryptography.git")
4948

0 commit comments

Comments
 (0)