@@ -334,10 +334,10 @@ fn dependency_excludes_non_contiguous_range_of_compatible_versions() {
334334
335335 ----- stderr -----
336336 × No solution found when resolving dependencies:
337- ╰─▶ Because package-a==1.0.0 depends on package-b==1.0.0 and only the following versions of package-a are available:
337+ ╰─▶ Because only the following versions of package-a are available:
338338 package-a==1.0.0
339339 package-a>2.0.0,<=3.0.0
340- we can conclude that package-a<2.0.0 depends on package-b==1.0.0. (1)
340+ and package-a==1.0.0 depends on package-b==1.0.0, we can conclude that package-a<2.0.0 depends on package-b==1.0.0. (1)
341341
342342 Because only the following versions of package-c are available:
343343 package-c==1.0.0
@@ -445,10 +445,10 @@ fn dependency_excludes_range_of_compatible_versions() {
445445
446446 ----- stderr -----
447447 × No solution found when resolving dependencies:
448- ╰─▶ Because package-a==1.0.0 depends on package-b==1.0.0 and only the following versions of package-a are available:
448+ ╰─▶ Because only the following versions of package-a are available:
449449 package-a==1.0.0
450450 package-a>2.0.0,<=3.0.0
451- we can conclude that package-a<2.0.0 depends on package-b==1.0.0. (1)
451+ and package-a==1.0.0 depends on package-b==1.0.0, we can conclude that package-a<2.0.0 depends on package-b==1.0.0. (1)
452452
453453 Because only the following versions of package-c are available:
454454 package-c==1.0.0
@@ -529,17 +529,17 @@ fn excluded_only_compatible_version() {
529529
530530 ----- stderr -----
531531 × No solution found when resolving dependencies:
532- ╰─▶ Because package-a==1.0.0 depends on package-b==1.0.0 and only the following versions of package-a are available:
532+ ╰─▶ Because only the following versions of package-a are available:
533533 package-a==1.0.0
534534 package-a==2.0.0
535535 package-a==3.0.0
536- we can conclude that package-a<2.0.0 depends on package-b==1.0.0.
536+ and package-a==1.0.0 depends on package-b==1.0.0, we can conclude that package-a<2.0.0 depends on package-b==1.0.0.
537537 And because package-a==3.0.0 depends on package-b==3.0.0, we can conclude that all of:
538538 package-a<2.0.0
539539 package-a>2.0.0
540540 depend on one of:
541- package-b< =1.0.0
542- package-b> =3.0.0
541+ package-b= =1.0.0
542+ package-b= =3.0.0
543543
544544 And because you require one of:
545545 package-a<2.0.0
@@ -1369,19 +1369,22 @@ fn local_less_than_or_equal() {
13691369 uv_snapshot ! ( filters, command( & context)
13701370 . arg( "local-less-than-or-equal-a<=1.2.3" )
13711371 , @r###"
1372- success: false
1373- exit_code: 1
1372+ success: true
1373+ exit_code: 0
13741374 ----- stdout -----
13751375
13761376 ----- stderr -----
1377- × No solution found when resolving dependencies:
1378- ╰─▶ Because only package-a==1.2.3+foo is available and you require package-a<=1.2.3, we can conclude that your requirements are unsatisfiable.
1377+ Resolved 1 package in [TIME]
1378+ Prepared 1 package in [TIME]
1379+ Installed 1 package in [TIME]
1380+ + package-a==1.2.3+foo
13791381 "### ) ;
13801382
13811383 // The version '1.2.3+foo' satisfies the constraint '<=1.2.3'.
1382- assert_not_installed (
1384+ assert_installed (
13831385 & context. venv ,
13841386 "local_less_than_or_equal_a" ,
1387+ "1.2.3+foo" ,
13851388 & context. temp_dir ,
13861389 ) ;
13871390}
@@ -1500,14 +1503,14 @@ fn local_not_used_with_sdist() {
15001503 Resolved 1 package in [TIME]
15011504 Prepared 1 package in [TIME]
15021505 Installed 1 package in [TIME]
1503- + package-a==1.2.3
1506+ + package-a==1.2.3+foo
15041507 "### ) ;
15051508
15061509 // The version '1.2.3' with an sdist satisfies the constraint '==1.2.3'.
15071510 assert_installed (
15081511 & context. venv ,
15091512 "local_not_used_with_sdist_a" ,
1510- "1.2.3" ,
1513+ "1.2.3+foo " ,
15111514 & context. temp_dir ,
15121515 ) ;
15131516}
@@ -1535,17 +1538,24 @@ fn local_simple() {
15351538 uv_snapshot ! ( filters, command( & context)
15361539 . arg( "local-simple-a==1.2.3" )
15371540 , @r###"
1538- success: false
1539- exit_code: 1
1541+ success: true
1542+ exit_code: 0
15401543 ----- stdout -----
15411544
15421545 ----- stderr -----
1543- × No solution found when resolving dependencies:
1544- ╰─▶ Because there is no version of package-a==1.2.3 and you require package-a==1.2.3, we can conclude that your requirements are unsatisfiable.
1546+ Resolved 1 package in [TIME]
1547+ Prepared 1 package in [TIME]
1548+ Installed 1 package in [TIME]
1549+ + package-a==1.2.3+foo
15451550 "### ) ;
15461551
15471552 // The version '1.2.3+foo' satisfies the constraint '==1.2.3'.
1548- assert_not_installed ( & context. venv , "local_simple_a" , & context. temp_dir ) ;
1553+ assert_installed (
1554+ & context. venv ,
1555+ "local_simple_a" ,
1556+ "1.2.3+foo" ,
1557+ & context. temp_dir ,
1558+ ) ;
15491559}
15501560
15511561/// A dependency depends on a conflicting local version of a direct dependency, but we can backtrack to a compatible version.
@@ -1693,20 +1703,29 @@ fn local_transitive_confounding() {
16931703 uv_snapshot ! ( filters, command( & context)
16941704 . arg( "local-transitive-confounding-a" )
16951705 , @r###"
1696- success: false
1697- exit_code: 1
1706+ success: true
1707+ exit_code: 0
16981708 ----- stdout -----
16991709
17001710 ----- stderr -----
1701- × No solution found when resolving dependencies:
1702- ╰─▶ Because package-b==2.0.0 has no wheels with a matching Python ABI tag and package-a==1.0.0 depends on package-b==2.0.0, we can conclude that package-a==1.0.0 cannot be used.
1703- And because only package-a==1.0.0 is available and you require package-a, we can conclude that your requirements are unsatisfiable.
1711+ Resolved 2 packages in [TIME]
1712+ Prepared 2 packages in [TIME]
1713+ Installed 2 packages in [TIME]
1714+ + package-a==1.0.0
1715+ + package-b==2.0.0+foo
17041716 "### ) ;
17051717
17061718 // The version '2.0.0+foo' satisfies the constraint '==2.0.0'.
1707- assert_not_installed (
1719+ assert_installed (
17081720 & context. venv ,
17091721 "local_transitive_confounding_a" ,
1722+ "1.0.0" ,
1723+ & context. temp_dir ,
1724+ ) ;
1725+ assert_installed (
1726+ & context. venv ,
1727+ "local_transitive_confounding_b" ,
1728+ "2.0.0+foo" ,
17101729 & context. temp_dir ,
17111730 ) ;
17121731}
@@ -2011,19 +2030,22 @@ fn local_used_without_sdist() {
20112030 uv_snapshot ! ( filters, command( & context)
20122031 . arg( "local-used-without-sdist-a==1.2.3" )
20132032 , @r###"
2014- success: false
2015- exit_code: 1
2033+ success: true
2034+ exit_code: 0
20162035 ----- stdout -----
20172036
20182037 ----- stderr -----
2019- × No solution found when resolving dependencies:
2020- ╰─▶ Because package-a==1.2.3 has no wheels with a matching Python ABI tag and you require package-a==1.2.3, we can conclude that your requirements are unsatisfiable.
2038+ Resolved 1 package in [TIME]
2039+ Prepared 1 package in [TIME]
2040+ Installed 1 package in [TIME]
2041+ + package-a==1.2.3+foo
20212042 "### ) ;
20222043
20232044 // The version '1.2.3+foo' satisfies the constraint '==1.2.3'.
2024- assert_not_installed (
2045+ assert_installed (
20252046 & context. venv ,
20262047 "local_used_without_sdist_a" ,
2048+ "1.2.3+foo" ,
20272049 & context. temp_dir ,
20282050 ) ;
20292051}
0 commit comments