@@ -53,7 +53,7 @@ def get_versions_from_constraint_file(constraint_file):
53
53
54
54
55
55
@pytest .mark .parametrize ("python_version" , ["3.6" , "3.8" , "3.10" ])
56
- def test_pinned_versions (tmp_path , python_version , build_frontend_env ):
56
+ def test_pinned_versions (tmp_path , python_version , build_frontend_env_nouv ):
57
57
if utils .platform == "linux" :
58
58
pytest .skip ("linux doesn't pin individual tool versions, it pins manylinux images instead" )
59
59
if python_version == "3.6" and utils .platform == "macos" and platform .machine () == "arm64" :
@@ -79,7 +79,7 @@ def test_pinned_versions(tmp_path, python_version, build_frontend_env):
79
79
add_env = {
80
80
"CIBW_BUILD" : build_pattern ,
81
81
"CIBW_ENVIRONMENT" : cibw_environment_option ,
82
- ** build_frontend_env ,
82
+ ** build_frontend_env_nouv ,
83
83
},
84
84
)
85
85
@@ -93,21 +93,23 @@ def test_pinned_versions(tmp_path, python_version, build_frontend_env):
93
93
assert set (actual_wheels ) == set (expected_wheels )
94
94
95
95
96
- def test_dependency_constraints_file (tmp_path , build_frontend_env ):
96
+ def test_dependency_constraints_file (tmp_path , build_frontend_env_nouv ):
97
97
if utils .platform == "linux" :
98
98
pytest .skip ("linux doesn't pin individual tool versions, it pins manylinux images instead" )
99
99
100
100
project_dir = tmp_path / "project"
101
101
project_with_expected_version_checks .generate (project_dir )
102
102
103
103
tool_versions = {
104
+ "pip" : "23.1.2" ,
104
105
"delocate" : "0.10.3" ,
105
106
}
106
107
107
108
constraints_file = tmp_path / "constraints file.txt"
108
109
constraints_file .write_text (
109
110
textwrap .dedent (
110
111
"""
112
+ pip=={pip}
111
113
delocate=={delocate}
112
114
""" .format (** tool_versions )
113
115
)
@@ -128,7 +130,7 @@ def test_dependency_constraints_file(tmp_path, build_frontend_env):
128
130
"CIBW_ENVIRONMENT" : cibw_environment_option ,
129
131
"CIBW_DEPENDENCY_VERSIONS" : str (constraints_file ),
130
132
"CIBW_SKIP" : "cp36-*" ,
131
- ** build_frontend_env ,
133
+ ** build_frontend_env_nouv ,
132
134
},
133
135
)
134
136
0 commit comments