@@ -358,114 +358,6 @@ fn requirements_txt_conditional_transitive_extra() -> Result<()> {
358358 Ok ( ( ) )
359359}
360360
361- #[ cfg( feature = "test-universal" ) ]
362- #[ test]
363- fn requirements_txt_does_not_activate_extra_through_incompatible_path ( ) -> Result < ( ) > {
364- let context = uv_test:: test_context!( "3.13" ) ;
365-
366- context. temp_dir . child ( "pyproject.toml" ) . write_str (
367- r#"
368- [project]
369- name = "root"
370- version = "0.1.0"
371- requires-python = ">=3.9"
372- dependencies = [
373- "shared==1.0.0 ; sys_platform == 'linux'",
374- "shared==2.0.0 ; sys_platform != 'linux'",
375- ]
376-
377- [project.optional-dependencies]
378- feature = ["bridge==1.0.0 ; sys_platform == 'linux'"]
379- "# ,
380- ) ?;
381-
382- context. temp_dir . child ( "uv.lock" ) . write_str (
383- r#"
384- version = 1
385- revision = 3
386- requires-python = ">=3.9"
387-
388- [manifest]
389- members = ["root"]
390-
391- [[package]]
392- name = "root"
393- version = "0.1.0"
394- source = { virtual = "." }
395- dependencies = [
396- { name = "shared", version = "1.0.0", source = { registry = "https://example.com/simple" }, marker = "sys_platform == 'linux'" },
397- { name = "shared", version = "2.0.0", source = { registry = "https://other.example/simple" }, marker = "sys_platform != 'linux'" },
398- ]
399-
400- [package.optional-dependencies]
401- feature = [{ name = "bridge", version = "1.0.0", source = { registry = "https://example.com/simple" }, marker = "sys_platform == 'linux'" }]
402-
403- [package.metadata]
404- provides-extras = ["feature"]
405-
406- [[package]]
407- name = "bridge"
408- version = "1.0.0"
409- source = { registry = "https://example.com/simple" }
410- dependencies = [
411- { name = "shared", version = "1.0.0", source = { registry = "https://example.com/simple" }, marker = "sys_platform == 'linux'", extra = ["a"] },
412- { name = "shared", version = "2.0.0", source = { registry = "https://other.example/simple" }, marker = "sys_platform != 'linux'", extra = ["a"] },
413- ]
414-
415- [[package]]
416- name = "shared"
417- version = "1.0.0"
418- source = { registry = "https://example.com/simple" }
419- resolution-markers = ["sys_platform == 'linux'"]
420-
421- [package.optional-dependencies]
422- a = [{ name = "leaf-b", version = "1.0.0", source = { registry = "https://example.com/simple" } }]
423-
424- [package.metadata]
425- provides-extras = ["a"]
426-
427- [[package]]
428- name = "shared"
429- version = "2.0.0"
430- source = { registry = "https://other.example/simple" }
431- resolution-markers = ["sys_platform != 'linux'"]
432- dependencies = [{ name = "leaf-b", version = "1.0.0", source = { registry = "https://example.com/simple" } }]
433-
434- [package.optional-dependencies]
435- a = [{ name = "leaf-c", version = "1.0.0", source = { registry = "https://example.com/simple" } }]
436-
437- [package.metadata]
438- provides-extras = ["a"]
439-
440- [[package]]
441- name = "leaf-b"
442- version = "1.0.0"
443- source = { registry = "https://example.com/simple" }
444-
445- [[package]]
446- name = "leaf-c"
447- version = "1.0.0"
448- source = { registry = "https://example.com/simple" }
449- "# ,
450- ) ?;
451-
452- uv_snapshot ! ( context. filters( ) , context. export( )
453- . arg( "--extra" ) . arg( "feature" )
454- . arg( "--frozen" )
455- . arg( "--no-header" )
456- . arg( "--no-annotate" )
457- . arg( "--no-hashes" ) , @"
458- exit_code: 0 (success)
459- ----- stdout -----
460- bridge==1.0.0 ; sys_platform == 'linux'
461- leaf-b==1.0.0
462- shared==1.0.0 ; sys_platform == 'linux'
463- shared==2.0.0 ; sys_platform != 'linux'
464- " ) ;
465-
466- Ok ( ( ) )
467- }
468-
469361#[ cfg( feature = "test-universal" ) ]
470362#[ test]
471363fn requirements_txt_project_extra ( ) -> Result < ( ) > {
0 commit comments