@@ -1350,34 +1350,22 @@ def download_generated_index(
1350
1350
def run_for_generated_index (
1351
1351
packages : Dict [str , List [Package ]],
1352
1352
args : List [str ],
1353
- fast_deps : bool = False ,
1354
1353
allow_error : bool = False ,
1355
1354
) -> Tuple [TestPipResult , Path ]:
1356
1355
"""
1357
1356
Produce a PyPI directory structure pointing to the specified packages, then
1358
1357
execute `pip download -i ...` pointing to our generated index.
1359
1358
"""
1360
1359
index_dir = index_for_packages (packages )
1361
- pip_args = []
1362
- if fast_deps :
1363
- pip_args .append ("--use-feature=fast-deps" )
1364
- pip_args .extend (
1365
- [
1366
- "download" ,
1367
- "-d" ,
1368
- str (download_dir ),
1369
- "-i" ,
1370
- path_to_url (index_dir ),
1371
- ]
1372
- )
1373
- pip_args .extend (args )
1374
- result = script .pip (
1375
- * pip_args ,
1376
- # We need allow_stderr_warning=True if fast_deps=True, since that will print
1377
- # a warning to stderr.
1378
- allow_stderr_warning = fast_deps ,
1379
- allow_error = allow_error ,
1380
- )
1360
+ pip_args = [
1361
+ "download" ,
1362
+ "-d" ,
1363
+ str (download_dir ),
1364
+ "-i" ,
1365
+ path_to_url (index_dir ),
1366
+ * args ,
1367
+ ]
1368
+ result = script .pip (* pip_args , allow_error = allow_error )
1381
1369
return (result , download_dir )
1382
1370
1383
1371
return run_for_generated_index
@@ -1413,12 +1401,11 @@ def test_download_metadata(
1413
1401
requirement_to_download : str ,
1414
1402
expected_outputs : List [str ],
1415
1403
) -> None :
1416
- """Verify that when using --use-feature=fast-deps, if a data-dist-info-metadata
1417
- attribute is present, then it is used instead of the actual dist's METADATA."""
1404
+ """Verify that if a data-dist-info-metadata attribute is present, then it is used
1405
+ instead of the actual dist's METADATA."""
1418
1406
_ , download_dir = download_generated_index (
1419
1407
_simple_packages ,
1420
1408
[requirement_to_download ],
1421
- fast_deps = True ,
1422
1409
)
1423
1410
assert sorted (os .listdir (download_dir )) == expected_outputs
1424
1411
@@ -1442,7 +1429,6 @@ def test_incorrect_metadata_hash(
1442
1429
result , _ = download_generated_index (
1443
1430
_simple_packages ,
1444
1431
[requirement_to_download ],
1445
- fast_deps = True ,
1446
1432
allow_error = True ,
1447
1433
)
1448
1434
assert result .returncode != 0
@@ -1466,7 +1452,6 @@ def test_metadata_not_found(
1466
1452
result , _ = download_generated_index (
1467
1453
_simple_packages ,
1468
1454
[requirement_to_download ],
1469
- fast_deps = True ,
1470
1455
allow_error = True ,
1471
1456
)
1472
1457
assert result .returncode != 0
0 commit comments