File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments