-
Notifications
You must be signed in to change notification settings - Fork 409
feat: Support PEP508 environment markers #5241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nichmor
merged 18 commits into
prefix-dev:main
from
hameerabbasi:support-pep508-env-markers
Jan 13, 2026
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
a3046ac
Support conversions and handling of PEP508 environment markers in `pi…
hameerabbasi 1b270d2
Modify a few places where `PyPiIndex::env_markers()` was ignored.
hameerabbasi b518658
Modify the schema for `pixi.toml` to include `env-markers`.
hameerabbasi e2d162a
Add integration test for PEP508 environment markers.
hameerabbasi 3547693
Small clean-up.
hameerabbasi c0e48e8
Make test more complete.
hameerabbasi d277327
Change `.unwrap` to `.expect`.
hameerabbasi 3f5206f
Add test to ensure a linux marked dep isn't added to an osx lockfile.
hameerabbasi 6726400
Change `numpy`->`nvidia-nccl-cu12` to simulate Linux-only dep.
hameerabbasi f68c201
Merge two tests into one for both platforms.
hameerabbasi 9a28741
Add comments to help better understand the test.
hameerabbasi 98a7c16
Partial fix for failing test.
hameerabbasi 88dcfed
Add test to ensure that PEP508 are correctly converted to UV markers.
hameerabbasi d04ec46
Doc example.
hameerabbasi 9735fb0
Add satisfiability tests.
hameerabbasi 11f29fc
Make satisfiability tests pass.
hameerabbasi b0ab1d5
Accept changed snapshot from rebase.
hameerabbasi 9d193c2
Address review comments by @nichmor.
hameerabbasi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...xi_core__lock_file__satisfiability__tests__failing_satisfiability@changed-env-marker.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| source: crates/pixi_core/src/lock_file/satisfiability/mod.rs | ||
| expression: s | ||
| snapshot_kind: text | ||
| --- | ||
| environment 'default' does not satisfy the requirements of the project for platform 'osx-arm64' | ||
| Diagnostic severity: error | ||
| Caused by: the requirement 'numpy==2.* ; sys_platform == 'darwin'' could not be satisfied (required by '<environment>') |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.