Skip to content

Enable conditional dependencies and extras for user input#28

Draft
jaimergp wants to merge 5 commits intomainfrom
conditional-dependencies-2
Draft

Enable conditional dependencies and extras for user input#28
jaimergp wants to merge 5 commits intomainfrom
conditional-dependencies-2

Conversation

@jaimergp
Copy link
Member

@jaimergp jaimergp commented Jan 13, 2026

Needs:

@jaimergp jaimergp marked this pull request as draft January 13, 2026 21:07
@danyeaw danyeaw moved this from Sorting ⚙️ to In Progress 🏗️ in conda Roadmap and Sprint Planning Jan 15, 2026
@danyeaw danyeaw mentioned this pull request Jan 16, 2026
3 tasks
@jaimergp jaimergp self-assigned this Jan 20, 2026
@jaimergp
Copy link
Member Author

@danyeaw, FYI, if I disable the experimental_* flags in rattler.MatchSpec, the solver still processes the conditional dependencies found in the repodata just fine. To prove it:

$ python -m pytest -k test_conditional_specs      
================================================== test session starts ===================================================
platform darwin -- Python 3.10.19, pytest-9.0.2, pluggy-1.6.0 -- /Users/jrodriguez/devel/conda-rattler-solver/.pixi/envs/test-py310/bin/python
cachedir: .pytest_cache
rootdir: /Users/jrodriguez/devel/conda-rattler-solver
configfile: pyproject.toml
plugins: mock-3.15.1, timeout-2.4.0, xprocess-1.0.2, split-0.10.0, rerunfailures-16.1, cov-7.0.0
collected 142 items / 138 deselected / 4 selected                                                                        

tests/test_solver.py::test_conditional_specs_in_cli FAILED                                                         [ 25%]
tests/test_solver.py::test_conditional_specs_in_repodata_virtual PASSED                                            [ 50%]
tests/test_solver.py::test_conditional_specs_in_repodata_side1 PASSED                                              [ 75%]
tests/test_solver.py::test_conditional_specs_in_repodata_side2 PASSED                                              [100%]

Only the in_cli variant fails, as expected.

@jaimergp jaimergp changed the title Enable conditional dependencies and extras Enable conditional dependencies and extras for user input Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant