Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 25 additions & 46 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 27 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[workspace]
default-members = ["crates/pixi"]
default-members = [
"crates/pixi",
]
exclude = [
# Only pulled in when enabling certain features. We do not want to include
# these crates when running workspace wide commands.
"crates/pixi_allocator",
# Debug output directories that don't contain Cargo.toml
"crates/pixi-build-cmake",
"crates/pixi-build-python",
# Standalone projects that should not be part of the workspace
"docs",
"examples",
Expand Down Expand Up @@ -88,7 +87,7 @@ ordermap = "1.0.0"
parking_lot = "0.12.4"
pathdiff = "0.2.3"
pep440_rs = "0.7.3"
pep508_rs = "0.9.2"
pep508_rs = { version = "0.9.2", features = ["non-pep508-extensions"] }
percent-encoding = "2.3.1"
pin-project-lite = "0.2.16"
pixi_allocator = { path = "crates/pixi_allocator" }
Expand Down Expand Up @@ -257,6 +256,29 @@ reqwest-middleware = { git = "https://github.com/astral-sh/reqwest-middleware",
reqwest-retry = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "7650ed76215a962a96d94a79be71c27bffde7ab2" }
version-ranges = { git = "https://github.com/astral-sh/pubgrub", rev = "d8efd77673c9a90792da9da31b6c0da7ea8a324b" }

coalesced_map = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
file_url = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_cache = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_conda_types = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_config = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_digest = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_lock = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_menuinst = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_networking = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_package_streaming = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_repodata_gateway = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_shell = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_solve = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_upload = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_redaction = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_virtual_packages = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
rattler_s3 = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }
simple_spawn_blocking = { git = "https://github.com/conda/rattler", branch ="feature/lockfile-v7" }

[patch."https://github.com/prefix-dev/rattler-build"]
#rattler-build = { path = "/var/home/tobias/src/rattler-build" }

[profile.ci]
codegen-units = 16
inherits = "release"
Expand Down
21 changes: 14 additions & 7 deletions crates/pixi/tests/integration_rust/add_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,11 @@ preview = ['pixi-build']
.unwrap();

let lock = pixi.lock_file().await.unwrap();
let p = lock.platform(&Platform::Win64.to_string()).unwrap();
let git_package = lock
.default_environment()
.unwrap()
.packages(Platform::Win64)
.packages(p)
.unwrap()
.find(|p| p.as_conda().unwrap().location().as_str().contains("git+"));

Expand Down Expand Up @@ -864,10 +865,11 @@ preview = ['pixi-build']
.unwrap();

let lock = pixi.lock_file().await.unwrap();
let p = lock.platform(&Platform::Linux64.to_string()).unwrap();
let git_package = lock
.default_environment()
.unwrap()
.packages(Platform::Linux64)
.packages(p)
.unwrap()
.find(|p| p.as_conda().unwrap().location().as_str().contains("git+"));

Expand Down Expand Up @@ -923,10 +925,11 @@ preview = ['pixi-build']"#,

// Check the lock file
let lock = pixi.lock_file().await.unwrap();
let p = lock.platform(&Platform::Linux64.to_string()).unwrap();
let git_package = lock
.default_environment()
.unwrap()
.packages(Platform::Linux64)
.packages(p)
.unwrap()
.find(|p| p.as_conda().unwrap().location().as_str().contains("git+"));

Expand Down Expand Up @@ -979,10 +982,11 @@ preview = ['pixi-build']"#,

// Check the lock file
let lock = pixi.lock_file().await.unwrap();
let p = lock.platform(&Platform::Win64.to_string()).unwrap();
let git_package = lock
.default_environment()
.unwrap()
.packages(Platform::Win64)
.packages(p)
.unwrap()
.find(|p| p.as_conda().unwrap().location().as_str().contains("git+"));

Expand Down Expand Up @@ -1082,13 +1086,16 @@ platforms = ["{platform}"]
});

let lock_file = pixi.lock_file().await.unwrap();
let p = lock_file
.platform(&Platform::current().to_string())
.unwrap();

let (boltons, _) = lock_file
let boltons = lock_file
.default_environment()
.unwrap()
.pypi_packages(Platform::current())
.pypi_packages(p)
.unwrap()
.find(|(p, _)| p.name.to_string() == "boltons")
.find(|p| p.name.to_string() == "boltons")
.unwrap();

insta::with_settings!( {filters => vec![
Expand Down
Loading
Loading