@@ -88,15 +88,15 @@ def test_update_constraints():
8888
8989 output = constraints_path .read_text ().split ("\n " )
9090
91- assert output == ["click==7.0.0" , "grpcio==1.0.0" , "packaging==14.0" , "requests==1.0.0" , "six==1.0 .0" ,]
91+ assert output == ["click==7.0.0" , "grpcio==1.0.0" , "packaging==14.0" , "requests==1.0.0" , "wheel==0.35 .0" ,]
9292
9393
9494
9595def test_update_constraints_overwrites_existing_file ():
9696 constraints = [
9797 "requests==1.0.0" ,
9898 "packaging==13.0" ,
99- "six==1.6 .0" ,
99+ "wheel==0.36 .0" ,
100100 "click==5.0.0" ,
101101 ]
102102 with constraints_file (constraints ) as c :
@@ -107,14 +107,14 @@ def test_update_constraints_overwrites_existing_file():
107107 assert result .exit_code == 0
108108
109109 output = c .read_text ().split ("\n " )
110- assert output == ["click==7.0.0" , "grpcio==1.0.0" , "packaging==14.0" , "requests==1.0.0" , "six==1.0 .0" ,
110+ assert output == ["click==7.0.0" , "grpcio==1.0.0" , "packaging==14.0" , "requests==1.0.0" , "wheel==0.35 .0" ,
111111 ]
112112
113113def test_update_constraints_with_setup_py_missing_lower_bounds ():
114114 constraints = [
115115 "requests==1.0.0" ,
116116 "packaging==14.0" ,
117- "six==1.0 .0" ,
117+ "wheel==0.35 .0" ,
118118 "click==7.0.0" ,
119119 ]
120120 with constraints_file (constraints ) as c :
@@ -126,15 +126,15 @@ def test_update_constraints_with_setup_py_missing_lower_bounds():
126126 assert "setup.py is missing explicit lower bounds" in result .output
127127
128128 invalid_pkg_list = parse_error_msg (result .output )
129- assert set (invalid_pkg_list ) == {"requests" , "packaging" , "six " }
129+ assert set (invalid_pkg_list ) == {"requests" , "packaging" , "wheel " }
130130
131131
132132
133133def test_check ():
134134 constraints = [
135135 "requests==1.0.0" ,
136136 "packaging==14.0" ,
137- "six==1.0 .0" ,
137+ "wheel==0.35 .0" ,
138138 "click==7.0.0" ,
139139 "grpcio==1.0.0"
140140 ]
@@ -150,7 +150,7 @@ def test_update_constraints_with_extra_constraints():
150150 constraints = [
151151 "requests==1.0.0" ,
152152 "packaging==14.0" ,
153- "six==1.0 .0" ,
153+ "wheel==0.35 .0" ,
154154 "click==7.0.0" ,
155155 "grpcio==1.0.0" ,
156156 "pytest==6.0.0" , # additional requirement
@@ -182,7 +182,7 @@ def test_check_with_constraints_file_invalid_pins():
182182 constraints = [
183183 "requests==1.0.0" ,
184184 "packaging==14.0" ,
185- "six ==1.0.0, <2.0.0dev" , # should be ==
185+ "wheel ==1.0.0, <2.0.0dev" , # should be ==
186186 "click>=7.0.0" , # should be ==
187187 ]
188188 with constraints_file (constraints ) as c :
@@ -194,14 +194,14 @@ def test_check_with_constraints_file_invalid_pins():
194194
195195 invalid_pkg_list = parse_error_msg (result .output )
196196
197- assert set (invalid_pkg_list ) == {"six " , "click" }
197+ assert set (invalid_pkg_list ) == {"wheel " , "click" }
198198
199199
200200def test_check_with_constraints_file_missing_packages ():
201201 constraints = [
202202 "requests==1.0.0" ,
203203 "packaging==14.0" ,
204- # missing 'six ' and 'click' and extra 'grpcio'
204+ # missing 'wheel ' and 'click' and extra 'grpcio'
205205 ]
206206 with constraints_file (constraints ) as c :
207207 result = RUNNER .invoke (
@@ -211,14 +211,14 @@ def test_check_with_constraints_file_missing_packages():
211211 assert result .exit_code == 2
212212
213213 invalid_pkg_list = parse_error_msg (result .output )
214- assert set (invalid_pkg_list ) == {"six " , "click" , "grpcio" }
214+ assert set (invalid_pkg_list ) == {"wheel " , "click" , "grpcio" }
215215
216216
217217def test_check_with_constraints_file_different_versions ():
218218 constraints = [
219219 "requests==1.2.0" , # setup.py has 1.0.0
220220 "packaging==14.1" , # setup.py has 14.0
221- "six==1.4 .0" , # setup.py has 1.0 .0
221+ "wheel==0.36 .0" , # setup.py has 0.35 .0
222222 "click==7.0.0" ,
223223 "grpcio==1.0.0"
224224 ]
@@ -230,14 +230,14 @@ def test_check_with_constraints_file_different_versions():
230230 assert result .exit_code == 2
231231
232232 invalid_pkg_list = parse_diff_versions_error_msg (result .output )
233- assert set (invalid_pkg_list ) == {"requests" , "packaging" , "six " }
233+ assert set (invalid_pkg_list ) == {"requests" , "packaging" , "wheel " }
234234
235235
236236def test_check_with_setup_py_missing_lower_bounds ():
237237 constraints = [
238238 "requests==1.0.0" ,
239239 "packaging==14.0" ,
240- "six ==1.0.0" ,
240+ "wheel ==1.0.0" ,
241241 "click==7.0.0" ,
242242 ]
243243 with constraints_file (constraints ) as c :
@@ -248,4 +248,4 @@ def test_check_with_setup_py_missing_lower_bounds():
248248 assert result .exit_code == 2
249249
250250 invalid_pkg_list = parse_error_msg (result .output )
251- assert set (invalid_pkg_list ) == {"requests" , "packaging" , "six " }
251+ assert set (invalid_pkg_list ) == {"requests" , "packaging" , "wheel " }
0 commit comments