Skip to content

Commit 573aedb

Browse files
committed
update to latest development versions
1 parent aeb2e6e commit 573aedb

File tree

8 files changed

+1194
-286
lines changed

8 files changed

+1194
-286
lines changed

Cargo.lock

Lines changed: 1146 additions & 244 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ resolver = "2"
66
edition = "2021"
77

88
[workspace.dependencies]
9-
async-trait = "0.1.82"
10-
chrono = "0.4.38"
11-
clap = "4.5.20"
12-
clap-verbosity-flag = "3.0.1"
13-
fs-err = "3.0.0"
14-
indexmap = "2.7.0"
15-
itertools = "0.13.0"
16-
log = "0.4.22"
17-
miette = "7.4.0"
9+
async-trait = "0.1.86"
10+
chrono = "0.4.39"
11+
clap = "4.5.29"
12+
clap-verbosity-flag = "3.0.2"
13+
fs-err = "3.1.0"
14+
indexmap = "2.7.1"
15+
itertools = "0.14.0"
16+
log = "0.4.25"
17+
miette = "7.5.0"
1818
minijinja = "2.7.0"
1919
parking_lot = "0.12.3"
20-
reqwest = "0.12.5"
20+
reqwest = "0.12.12"
2121
reqwest-middleware = "0.4.0"
2222
serde = "1.0"
2323
serde_yaml = "0.9"
2424
serde_json = "1.0"
25-
tempfile = "3.10.1"
26-
toml_edit = "0.22.22"
27-
tokio = "1.37.0"
25+
tempfile = "3.16.0"
26+
toml_edit = "0.22.24"
27+
tokio = "1.43.0"
2828
tracing-subscriber = "0.3.19"
2929
url = "2.5.4"
3030
pyproject-toml = "0.13.4"
@@ -35,14 +35,14 @@ jsonrpc-stdio-server = "18.0.0"
3535
jsonrpc-http-server = "18.0.0"
3636
jsonrpc-core = "18.0.0"
3737

38-
rattler-build = { git = "https://github.com/prefix-dev/rattler-build", rev = "3ed52d1", default-features = false }
38+
rattler-build = { git = "https://github.com/prefix-dev/rattler-build", rev = "674439811c9b67c5928115a594fa168f0eee0cbc", default-features = false }
3939

40-
rattler_conda_types = { version = "0.30.0", default-features = false }
41-
rattler_package_streaming = { version = "0.22.22", default-features = false }
42-
rattler_virtual_packages = { version = "2.0.1", default-features = false }
40+
rattler_conda_types = { version = "0.30.2", default-features = false }
41+
rattler_package_streaming = { version = "0.22.27", default-features = false }
42+
rattler_virtual_packages = { version = "2.0.2", default-features = false }
4343

44-
pixi_build_types = { git = "https://github.com/prefix-dev/pixi", branch = "main" }
45-
pixi_consts = { git = "https://github.com/prefix-dev/pixi", branch = "main" }
46-
pixi_manifest = { git = "https://github.com/prefix-dev/pixi", branch = "main" }
47-
pixi_spec = { git = "https://github.com/prefix-dev/pixi", branch = "main" }
48-
pixi_build_type_conversions = { git = "https://github.com/prefix-dev/pixi", branch = "main" }
44+
pixi_build_types = { path = "../pixi/crates/pixi_build_types" }
45+
pixi_consts = { path = "../pixi/crates/pixi_consts" }
46+
pixi_manifest = { path = "../pixi/crates/pixi_manifest" }
47+
pixi_spec = { path = "../pixi/crates/pixi_spec" }
48+
pixi_build_type_conversions = { path = "../pixi/crates/pixi_build_type_conversions" }

crates/pixi-build/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ jsonrpc-http-server = { workspace = true }
4444
jsonrpc-core = { workspace = true }
4545

4646
[dev-dependencies]
47-
insta = { version = "1.41.1", features = ["yaml", "redactions", "filters"] }
48-
toml_edit = { version = "0.22.22" }
47+
insta = { version = "1.42.1", features = ["yaml", "redactions", "filters"] }
48+
toml_edit = { version = "0.22.24" }

crates/pixi-build/src/bin/pixi-build-cmake/protocol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ impl Protocol for CMakeBuildBackend {
189189
Ok(CondaMetadataResult {
190190
packages,
191191
input_globs: None,
192+
additional_hash: None,
192193
})
193194
}
194195

crates/pixi-build/src/bin/pixi-build-python/protocol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ impl Protocol for PythonBuildBackend {
197197
Ok(CondaMetadataResult {
198198
packages,
199199
input_globs: None,
200+
additional_hash: None,
200201
})
201202
}
202203

crates/pixi-build/src/bin/pixi-build-rattler-build/protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ impl Protocol for RattlerBuildBackend {
185185
Ok(CondaMetadataResult {
186186
packages: solved_packages,
187187
input_globs: None,
188+
additional_hash: None,
188189
})
189190
}
190191

@@ -272,7 +273,6 @@ impl Protocol for RattlerBuildBackend {
272273
.with_keep_build(true)
273274
.finish();
274275

275-
eprintln!("before outputs ");
276276
for output in outputs {
277277
let temp_recipe = TemporaryRenderedRecipe::from_output(&output)?;
278278

crates/pixi-build/src/cli.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,12 @@ fn project_model_v1(
129129
channel_config: &ChannelConfig,
130130
) -> miette::Result<Option<ProjectModelV1>> {
131131
// Load the manifest
132-
let manifest = pixi_manifest::Manifest::from_path(manifest_path)?;
133-
let package = manifest.package;
132+
let manifest =
133+
pixi_manifest::Manifests::from_workspace_manifest_path(manifest_path.to_path_buf())?;
134+
let package = manifest.value.package.as_ref();
134135
// This can be null in the rattler-build backend
135136
Ok(package.map(|manifest| {
136-
to_project_model_v1(&manifest, channel_config)
137+
to_project_model_v1(&manifest.value, channel_config)
137138
.expect("failed to convert manifest to project model")
138139
}))
139140
}

crates/pixi-build/src/manifest_ext.rs

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
use std::{path::Path, str::FromStr, sync::OnceLock};
1+
use std::{path::PathBuf, str::FromStr, sync::OnceLock};
22

3-
use pixi_manifest::Manifest;
3+
use pixi_manifest::Manifests;
44
use rattler_conda_types::{ChannelConfig, ParseChannelError, Platform, Version};
55
use reqwest::Url;
66

77
pub trait ManifestExt {
8-
fn manifest(&self) -> &Manifest;
8+
fn manifest(&self) -> &Manifests;
99

1010
/// Returns the path to the root directory that contains the manifest.
11-
fn manifest_root(&self) -> &Path {
12-
self.manifest()
13-
.path
14-
.parent()
15-
.expect("manifest path should have a parent")
11+
fn manifest_root(&self) -> PathBuf {
12+
self.manifest().workspace.provenance.absolute_path()
1613
}
1714

1815
/// Returns the resolved channels that are specified in the manifest
@@ -25,6 +22,7 @@ pub trait ManifestExt {
2522
) -> Result<Vec<Url>, ParseChannelError> {
2623
self.manifest()
2724
.workspace
25+
.value
2826
.workspace
2927
.channels
3028
.iter()
@@ -42,9 +40,9 @@ pub trait ManifestExt {
4240
fn supports_target_platform(&self, platform: Platform) -> bool {
4341
self.manifest()
4442
.workspace
43+
.value
4544
.workspace
4645
.platforms
47-
.value
4846
.contains(&platform)
4947
}
5048

@@ -53,7 +51,7 @@ pub trait ManifestExt {
5351
/// Note that this may be `None` because having a version is not required.
5452
/// Use [`Self::version_or_default`] to get a default version in that case.
5553
fn version(&self) -> Option<&Version> {
56-
self.manifest().workspace.workspace.version.as_ref()
54+
self.manifest().workspace.value.workspace.version.as_ref()
5755
}
5856

5957
/// Returns the version of the project or a default version if no version is
@@ -65,8 +63,8 @@ pub trait ManifestExt {
6563
}
6664
}
6765

68-
impl ManifestExt for Manifest {
69-
fn manifest(&self) -> &Manifest {
66+
impl ManifestExt for Manifests {
67+
fn manifest(&self) -> &Manifests {
7068
self
7169
}
7270
}
@@ -75,7 +73,7 @@ impl ManifestExt for Manifest {
7573
mod tests {
7674
use std::path::Path;
7775

78-
use pixi_manifest::Manifest;
76+
use pixi_manifest::{ManifestKind, ManifestProvenance, Manifests, WithProvenance};
7977

8078
#[test]
8179
fn test_manifest_root() {
@@ -97,6 +95,11 @@ mod tests {
9795
"#;
9896

9997
let manifest_path = Path::new("pixi.toml");
100-
Manifest::from_str(manifest_path, raw_manifest).unwrap();
98+
let provenance = WithProvenance::new(
99+
raw_manifest,
100+
ManifestProvenance::new(manifest_path.to_path_buf(), ManifestKind::Pixi),
101+
);
102+
103+
Manifests::from_workspace_source(provenance);
101104
}
102105
}

0 commit comments

Comments
 (0)