@@ -88,15 +88,15 @@ def test_update_constraints():
88
88
89
89
output = constraints_path .read_text ().split ("\n " )
90
90
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" ,]
92
92
93
93
94
94
95
95
def test_update_constraints_overwrites_existing_file ():
96
96
constraints = [
97
97
"requests==1.0.0" ,
98
98
"packaging==13.0" ,
99
- "six==1.6 .0" ,
99
+ "wheel==0.36 .0" ,
100
100
"click==5.0.0" ,
101
101
]
102
102
with constraints_file (constraints ) as c :
@@ -107,14 +107,14 @@ def test_update_constraints_overwrites_existing_file():
107
107
assert result .exit_code == 0
108
108
109
109
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" ,
111
111
]
112
112
113
113
def test_update_constraints_with_setup_py_missing_lower_bounds ():
114
114
constraints = [
115
115
"requests==1.0.0" ,
116
116
"packaging==14.0" ,
117
- "six==1.0 .0" ,
117
+ "wheel==0.35 .0" ,
118
118
"click==7.0.0" ,
119
119
]
120
120
with constraints_file (constraints ) as c :
@@ -126,15 +126,15 @@ def test_update_constraints_with_setup_py_missing_lower_bounds():
126
126
assert "setup.py is missing explicit lower bounds" in result .output
127
127
128
128
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 " }
130
130
131
131
132
132
133
133
def test_check ():
134
134
constraints = [
135
135
"requests==1.0.0" ,
136
136
"packaging==14.0" ,
137
- "six==1.0 .0" ,
137
+ "wheel==0.35 .0" ,
138
138
"click==7.0.0" ,
139
139
"grpcio==1.0.0"
140
140
]
@@ -150,7 +150,7 @@ def test_update_constraints_with_extra_constraints():
150
150
constraints = [
151
151
"requests==1.0.0" ,
152
152
"packaging==14.0" ,
153
- "six==1.0 .0" ,
153
+ "wheel==0.35 .0" ,
154
154
"click==7.0.0" ,
155
155
"grpcio==1.0.0" ,
156
156
"pytest==6.0.0" , # additional requirement
@@ -182,7 +182,7 @@ def test_check_with_constraints_file_invalid_pins():
182
182
constraints = [
183
183
"requests==1.0.0" ,
184
184
"packaging==14.0" ,
185
- "six ==1.0.0, <2.0.0dev" , # should be ==
185
+ "wheel ==1.0.0, <2.0.0dev" , # should be ==
186
186
"click>=7.0.0" , # should be ==
187
187
]
188
188
with constraints_file (constraints ) as c :
@@ -194,14 +194,14 @@ def test_check_with_constraints_file_invalid_pins():
194
194
195
195
invalid_pkg_list = parse_error_msg (result .output )
196
196
197
- assert set (invalid_pkg_list ) == {"six " , "click" }
197
+ assert set (invalid_pkg_list ) == {"wheel " , "click" }
198
198
199
199
200
200
def test_check_with_constraints_file_missing_packages ():
201
201
constraints = [
202
202
"requests==1.0.0" ,
203
203
"packaging==14.0" ,
204
- # missing 'six ' and 'click' and extra 'grpcio'
204
+ # missing 'wheel ' and 'click' and extra 'grpcio'
205
205
]
206
206
with constraints_file (constraints ) as c :
207
207
result = RUNNER .invoke (
@@ -211,14 +211,14 @@ def test_check_with_constraints_file_missing_packages():
211
211
assert result .exit_code == 2
212
212
213
213
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" }
215
215
216
216
217
217
def test_check_with_constraints_file_different_versions ():
218
218
constraints = [
219
219
"requests==1.2.0" , # setup.py has 1.0.0
220
220
"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
222
222
"click==7.0.0" ,
223
223
"grpcio==1.0.0"
224
224
]
@@ -230,14 +230,14 @@ def test_check_with_constraints_file_different_versions():
230
230
assert result .exit_code == 2
231
231
232
232
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 " }
234
234
235
235
236
236
def test_check_with_setup_py_missing_lower_bounds ():
237
237
constraints = [
238
238
"requests==1.0.0" ,
239
239
"packaging==14.0" ,
240
- "six ==1.0.0" ,
240
+ "wheel ==1.0.0" ,
241
241
"click==7.0.0" ,
242
242
]
243
243
with constraints_file (constraints ) as c :
@@ -248,4 +248,4 @@ def test_check_with_setup_py_missing_lower_bounds():
248
248
assert result .exit_code == 2
249
249
250
250
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