@@ -16345,7 +16345,7 @@ fn pep_751_compile_registry_wheel() -> Result<()> {
16345
16345
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml
16346
16346
lock-version = "1.0"
16347
16347
created-by = "uv"
16348
- requires-python = ">=3.12.[X] "
16348
+ requires-python = ">=3.12"
16349
16349
16350
16350
[[packages]]
16351
16351
name = "iniconfig"
@@ -16394,7 +16394,7 @@ fn pep_751_compile_registry_sdist() -> Result<()> {
16394
16394
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml
16395
16395
lock-version = "1.0"
16396
16396
created-by = "uv"
16397
- requires-python = ">=3.12.[X] "
16397
+ requires-python = ">=3.12"
16398
16398
16399
16399
[[packages]]
16400
16400
name = "source-distribution"
@@ -16478,7 +16478,7 @@ fn pep_751_compile_directory() -> Result<()> {
16478
16478
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml
16479
16479
lock-version = "1.0"
16480
16480
created-by = "uv"
16481
- requires-python = ">=3.12.[X] "
16481
+ requires-python = ">=3.12"
16482
16482
16483
16483
[[packages]]
16484
16484
name = "anyio"
@@ -16549,7 +16549,7 @@ fn pep_751_compile_git() -> Result<()> {
16549
16549
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml
16550
16550
lock-version = "1.0"
16551
16551
created-by = "uv"
16552
- requires-python = ">=3.12.[X] "
16552
+ requires-python = ">=3.12"
16553
16553
16554
16554
[[packages]]
16555
16555
name = "uv-public-pypackage"
@@ -16599,7 +16599,7 @@ fn pep_751_compile_url_wheel() -> Result<()> {
16599
16599
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml
16600
16600
lock-version = "1.0"
16601
16601
created-by = "uv"
16602
- requires-python = ">=3.12.[X] "
16602
+ requires-python = ">=3.12"
16603
16603
16604
16604
[[packages]]
16605
16605
name = "anyio"
@@ -16663,7 +16663,7 @@ fn pep_751_compile_url_sdist() -> Result<()> {
16663
16663
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml
16664
16664
lock-version = "1.0"
16665
16665
created-by = "uv"
16666
- requires-python = ">=3.12.[X] "
16666
+ requires-python = ">=3.12"
16667
16667
16668
16668
[[packages]]
16669
16669
name = "anyio"
@@ -16732,7 +16732,7 @@ fn pep_751_compile_path_wheel() -> Result<()> {
16732
16732
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml
16733
16733
lock-version = "1.0"
16734
16734
created-by = "uv"
16735
- requires-python = ">=3.12.[X] "
16735
+ requires-python = ">=3.12"
16736
16736
16737
16737
[[packages]]
16738
16738
name = "iniconfig"
@@ -16770,7 +16770,7 @@ fn pep_751_compile_path_wheel() -> Result<()> {
16770
16770
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o nested/pylock.toml
16771
16771
lock-version = "1.0"
16772
16772
created-by = "uv"
16773
- requires-python = ">=3.12.[X] "
16773
+ requires-python = ">=3.12"
16774
16774
16775
16775
[[packages]]
16776
16776
name = "iniconfig"
@@ -16811,7 +16811,7 @@ fn pep_751_compile_path_sdist() -> Result<()> {
16811
16811
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml
16812
16812
lock-version = "1.0"
16813
16813
created-by = "uv"
16814
- requires-python = ">=3.12.[X] "
16814
+ requires-python = ">=3.12"
16815
16815
16816
16816
[[packages]]
16817
16817
name = "iniconfig"
@@ -16850,7 +16850,7 @@ fn pep_751_compile_path_sdist() -> Result<()> {
16850
16850
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o nested/pylock.toml
16851
16851
lock-version = "1.0"
16852
16852
created-by = "uv"
16853
- requires-python = ">=3.12.[X] "
16853
+ requires-python = ">=3.12"
16854
16854
16855
16855
[[packages]]
16856
16856
name = "iniconfig"
@@ -16887,7 +16887,7 @@ fn pep_751_compile_preferences() -> Result<()> {
16887
16887
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml
16888
16888
lock-version = "1.0"
16889
16889
created-by = "uv"
16890
- requires-python = ">=3.12.[X] "
16890
+ requires-python = ">=3.12"
16891
16891
16892
16892
[[packages]]
16893
16893
name = "anyio"
@@ -16928,7 +16928,7 @@ fn pep_751_compile_preferences() -> Result<()> {
16928
16928
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml
16929
16929
lock-version = "1.0"
16930
16930
created-by = "uv"
16931
- requires-python = ">=3.12.[X] "
16931
+ requires-python = ">=3.12"
16932
16932
16933
16933
[[packages]]
16934
16934
name = "anyio"
@@ -16968,7 +16968,7 @@ fn pep_751_compile_preferences() -> Result<()> {
16968
16968
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml
16969
16969
lock-version = "1.0"
16970
16970
created-by = "uv"
16971
- requires-python = ">=3.12.[X] "
16971
+ requires-python = ">=3.12"
16972
16972
16973
16973
[[packages]]
16974
16974
name = "anyio"
@@ -17007,7 +17007,7 @@ fn pep_751_compile_preferences() -> Result<()> {
17007
17007
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml
17008
17008
lock-version = "1.0"
17009
17009
created-by = "uv"
17010
- requires-python = ">=3.12.[X] "
17010
+ requires-python = ">=3.12"
17011
17011
17012
17012
[[packages]]
17013
17013
name = "anyio"
@@ -17055,7 +17055,7 @@ fn pep_751_compile_warn() -> Result<()> {
17055
17055
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml --emit-index-url
17056
17056
lock-version = "1.0"
17057
17057
created-by = "uv"
17058
- requires-python = ">=3.12.[X] "
17058
+ requires-python = ">=3.12"
17059
17059
17060
17060
[[packages]]
17061
17061
name = "iniconfig"
@@ -17268,7 +17268,7 @@ fn pep_751_compile_no_emit_package() -> Result<()> {
17268
17268
# uv pip compile --cache-dir [CACHE_DIR] requirements.txt --universal -o pylock.toml --no-emit-package idna
17269
17269
lock-version = "1.0"
17270
17270
created-by = "uv"
17271
- requires-python = ">=3.12.[X] "
17271
+ requires-python = ">=3.12"
17272
17272
17273
17273
[[packages]]
17274
17274
name = "anyio"
@@ -17562,3 +17562,47 @@ fn git_path_transitive_dependency() -> Result<()> {
17562
17562
17563
17563
Ok(())
17564
17564
}
17565
+
17566
+ /// Ensure that `--emit-index-annotation` plays nicely with `--annotation-style=line`.
17567
+ #[test]
17568
+ fn omit_python_patch_universal() -> Result<()> {
17569
+ let context = TestContext::new("3.11");
17570
+
17571
+ let requirements_in = context.temp_dir.child("requirements.in");
17572
+ requirements_in.write_str("redis")?;
17573
+
17574
+ uv_snapshot!(context.filters(), context.pip_compile()
17575
+ .arg("requirements.in"), @r"
17576
+ success: true
17577
+ exit_code: 0
17578
+ ----- stdout -----
17579
+ # This file was autogenerated by uv via the following command:
17580
+ # uv pip compile --cache-dir [CACHE_DIR] requirements.in
17581
+ redis==5.0.3
17582
+ # via -r requirements.in
17583
+
17584
+ ----- stderr -----
17585
+ Resolved 1 package in [TIME]
17586
+ "
17587
+ );
17588
+
17589
+ uv_snapshot!(context.filters(), context.pip_compile()
17590
+ .arg("requirements.in")
17591
+ .arg("--universal"), @r"
17592
+ success: true
17593
+ exit_code: 0
17594
+ ----- stdout -----
17595
+ # This file was autogenerated by uv via the following command:
17596
+ # uv pip compile --cache-dir [CACHE_DIR] requirements.in --universal
17597
+ async-timeout==4.0.3 ; python_full_version < '3.11.[X]'
17598
+ # via redis
17599
+ redis==5.0.3
17600
+ # via -r requirements.in
17601
+
17602
+ ----- stderr -----
17603
+ Resolved 2 packages in [TIME]
17604
+ "
17605
+ );
17606
+
17607
+ Ok(())
17608
+ }
0 commit comments