Skip to content

Commit

Permalink
Merge branch 'main' into quantco
Browse files Browse the repository at this point in the history
  • Loading branch information
tdejager authored Jul 2, 2024
2 parents 49dff81 + bce5b57 commit dc87161
Show file tree
Hide file tree
Showing 9 changed files with 737 additions and 549 deletions.
1,263 changes: 727 additions & 536 deletions pixi.lock

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/cli/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,7 @@ fn get_tasks_per_env(
let mut tasks_per_env: HashMap<Environment, HashMap<TaskName, Task>> = HashMap::new();
for env in environments {
let mut tasks: HashMap<TaskName, Task> = HashMap::new();
let this_env_tasks = env
.tasks(Some(env.best_platform()))
.expect("error getting tasks");
let this_env_tasks = env.tasks(Some(env.best_platform())).unwrap_or_default();
for taskname in task_list.iter() {
// if the task is in the environment, add it to the list
if let Some(&task) = this_env_tasks.get(taskname) {
Expand Down
2 changes: 1 addition & 1 deletion src/install_pypi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ async fn resolve_editables(
if ArchiveTimestamp::up_to_date_with(&editable.path, ArchiveTarget::Install(dist))
.into_diagnostic()?
// If the editable is dynamic, we need to rebuild it
&& !uv_installer::is_dynamic(dist.path())
&& !uv_installer::is_dynamic(&editable.path)
// And the dist is already editable
&& dist.is_editable()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: src/project/virtual_packages.rs
assertion_line: 226
expression: packages
---
[
Expand Down Expand Up @@ -32,7 +31,7 @@ expression: packages
source: "__glibc",
},
version: Version {
version: [[0], [2], [17]],
version: [[0], [2], [28]],
local: [],
},
build_string: "0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ expression: packages
source: "__glibc",
},
version: Version {
version: [[0], [2], [17]],
version: [[0], [2], [28]],
local: [],
},
build_string: "0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ expression: packages
source: "__glibc",
},
version: Version {
version: [[0], [2], [17]],
version: [[0], [2], [28]],
local: [],
},
build_string: "0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ expression: packages
source: "__osx",
},
version: Version {
version: [[0], [10], [15]],
version: [[0], [13], [0]],
local: [],
},
build_string: "0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ expression: packages
source: "__osx",
},
version: Version {
version: [[0], [11], [0]],
version: [[0], [13], [0]],
local: [],
},
build_string: "0",
Expand Down
6 changes: 3 additions & 3 deletions src/project/virtual_packages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use thiserror::Error;

/// The default GLIBC version to use. This is used when no system requirements are specified.
pub fn default_glibc_version() -> Version {
"2.17".parse().unwrap()
"2.28".parse().unwrap()
}

/// The default linux version to use. This is used when no system requirements are specified.
Expand All @@ -27,8 +27,8 @@ pub fn default_linux_version() -> Version {
/// MacOS platform.
pub fn default_mac_os_version(platform: Platform) -> Version {
match platform {
Platform::OsxArm64 => "11.0".parse().unwrap(),
Platform::Osx64 => "10.15".parse().unwrap(),
Platform::OsxArm64 => "13.0".parse().unwrap(),
Platform::Osx64 => "13.0".parse().unwrap(),
_ => panic!(
"default_mac_os_version() called with non-osx platform: {}",
platform
Expand Down

0 comments on commit dc87161

Please sign in to comment.