Skip to content

Commit

Permalink
Merge branch 'main' into feature/virtual_package_from_lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts authored Feb 26, 2025
2 parents 8c448ed + 7c66a6e commit d3a570a
Show file tree
Hide file tree
Showing 44 changed files with 530 additions and 314 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up pixi
uses: prefix-dev/[email protected].1
uses: prefix-dev/[email protected].3
with:
environments: lint
- name: pre-commit
Expand Down Expand Up @@ -99,7 +99,24 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Machete
uses: bnjbvr/cargo-machete@main
uses: bnjbvr/[email protected]

# Checks for duplicate version of package
cargo-vendor:
name: Cargo Vendor
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
cache: ${{ github.ref == 'refs/heads/main' }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: ". -> target/pixi"
key: ${{ hashFiles('pixi.lock') }}
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Test cargo vendor
run: cargo vendor --locked

#
# Run tests on important platforms.
Expand All @@ -113,7 +130,7 @@ jobs:
runs-on: 8core_ubuntu_latest_runner
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected].1
- uses: prefix-dev/[email protected].3
with:
cache: ${{ github.ref == 'refs/heads/main' }}
- uses: Swatinem/rust-cache@v2
Expand All @@ -135,7 +152,7 @@ jobs:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected].1
- uses: prefix-dev/[email protected].3
with:
cache: ${{ github.ref == 'refs/heads/main' }}
- uses: Swatinem/rust-cache@v2
Expand All @@ -157,7 +174,7 @@ jobs:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected].1
- uses: prefix-dev/[email protected].3
with:
cache: ${{ github.ref == 'refs/heads/main' }}
- uses: Swatinem/rust-cache@v2
Expand All @@ -181,7 +198,7 @@ jobs:
- uses: actions/checkout@v4
- name: Create Dev Drive using ReFS
run: ${{ github.workspace }}/.github/workflows/setup-dev-drive.ps1
- uses: prefix-dev/[email protected].1
- uses: prefix-dev/[email protected].3
with:
cache: ${{ github.ref == 'refs/heads/main' }}
- uses: Swatinem/rust-cache@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
with:
submodules: recursive

- uses: prefix-dev/[email protected].1
- uses: prefix-dev/[email protected].3
with:
environments: docs

Expand All @@ -67,7 +67,7 @@ jobs:
run: |
git checkout tags/${{ github.event.inputs.tag }}
- uses: prefix-dev/[email protected].1
- uses: prefix-dev/[email protected].3
with:
environments: docs

Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
fetch-depth: 0
submodules: recursive

- uses: prefix-dev/[email protected].1
- uses: prefix-dev/[email protected].3
with:
environments: docs

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected].1
- uses: prefix-dev/[email protected].3
with:
cache: true
environments: schema
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trampoline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
target: ${{ matrix.target }}

- name: Set up pixi
uses: prefix-dev/[email protected].1
uses: prefix-dev/[email protected].3
with:
environments: trampoline

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-lockfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up pixi
uses: prefix-dev/[email protected].1
uses: prefix-dev/[email protected].3
with:
run-install: false
- name: Update lockfiles
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ __pycache__
site/
.cache
pytest-temp
/vendor
23 changes: 7 additions & 16 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ tokio = { workspace = true, features = ["rt"] }

[patch.crates-io]
# This is a temporary patch to get `cargo vendor` to work with the `uv` and pep508_rs` crates.
version-ranges = { git = "https://github.com/astral-sh/pubgrub", rev = "57832d0588fbb7aab824813481104761dc1c7740" }
version-ranges = { git = "https://github.com/astral-sh/pubgrub", rev = "b70cf707aa43f21b32f3a61b8a0889b15032d5c4" }

# Config for 'dist'
[workspace.metadata.dist]
Expand Down
2 changes: 2 additions & 0 deletions crates/pixi_consts/src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ pub static ENVIRONMENT_STYLE: LazyLock<Style> = LazyLock::new(|| Style::new().ma
pub static EXPOSED_NAME_STYLE: LazyLock<Style> = LazyLock::new(|| Style::new().yellow());
pub static FEATURE_STYLE: LazyLock<Style> = LazyLock::new(|| Style::new().cyan());
pub static SOLVE_GROUP_STYLE: LazyLock<Style> = LazyLock::new(|| Style::new().cyan());
pub static CONDA_PACKAGE_STYLE: LazyLock<Style> = LazyLock::new(|| Style::new().green());
pub static PYPI_PACKAGE_STYLE: LazyLock<Style> = LazyLock::new(|| Style::new().blue());
pub static DEFAULT_PYPI_INDEX_URL: LazyLock<Url> =
LazyLock::new(|| Url::parse("https://pypi.org/simple").unwrap());

Expand Down
1 change: 0 additions & 1 deletion crates/pixi_git/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ version = "0.0.1"
dashmap = { workspace = true }
dunce = { workspace = true }
fs-err = { workspace = true, features = ["tokio"] }
miette = { workspace = true }
pixi_utils = { workspace = true, features = ["rustls-tls"] }
reqwest = { workspace = true, features = ["blocking"] }
reqwest-middleware = { workspace = true }
Expand Down
Loading

0 comments on commit d3a570a

Please sign in to comment.