Skip to content

Commit bc2e5a0

Browse files
authored
Merge branch 'main' into non_index_coords_compat_override
2 parents 03b59cd + a987bb1 commit bc2e5a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1761
-1105
lines changed

.devcontainer/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM mcr.microsoft.com/devcontainers/base:jammy
2+
3+
ARG PIXI_VERSION=v0.59.0
4+
5+
RUN curl -L -o /usr/local/bin/pixi -fsSL --compressed "https://github.com/prefix-dev/pixi/releases/download/${PIXI_VERSION}/pixi-$(uname -m)-unknown-linux-musl" \
6+
&& chmod +x /usr/local/bin/pixi \
7+
&& pixi info
8+
9+
# set some user and workdir settings to work nicely with vscode
10+
USER vscode
11+
WORKDIR /home/vscode
12+
13+
RUN echo 'eval "$(pixi completion -s bash)"' >> /home/vscode/.bashrc

.devcontainer/devcontainer.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "my-workspace",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"context": ".."
6+
},
7+
"hostRequirements": {
8+
"cpus": 4,
9+
"memory": "16gb"
10+
},
11+
"customizations": {
12+
"vscode": {
13+
"settings": {},
14+
"extensions": ["ms-python.python", "charliermarsh.ruff", "GitHub.copilot"]
15+
}
16+
},
17+
"features": {
18+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
19+
},
20+
"mounts": [
21+
"source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume"
22+
],
23+
"postCreateCommand": "sudo chown vscode .pixi && pixi install"
24+
}

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
doc/whats-new.rst merge=union
33
# allow installing from git archives
44
.git_archival.txt export-subst
5+
# SCM syntax highlighting & preventing 3-way merges
6+
pixi.lock merge=binary linguist-language=YAML linguist-generated=true

.github/stale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ closeComment: |
4545
# Limit the number of actions per hour, from 1-30. Default is 30
4646
limitPerRun: 2 # start with a small number
4747

48+
4849
# Limit to only `issues` or `pulls`
4950
# only: issues
5051

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Generate and cache Pixi lockfile
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
pixi-version:
7+
type: string
8+
outputs:
9+
cache-id:
10+
description: "The lock file contents"
11+
value: ${{ jobs.cache-pixi-lock.outputs.cache-id }}
12+
13+
jobs:
14+
cache-pixi-lock:
15+
name: Pixi lock
16+
runs-on: ubuntu-latest
17+
outputs:
18+
cache-id: ${{ steps.restore.outputs.cache-primary-key }}
19+
steps:
20+
- uses: actions/checkout@v5
21+
with:
22+
fetch-depth: 0
23+
submodules: recursive
24+
- name: Get current date
25+
id: date
26+
run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
27+
- uses: actions/cache/restore@v4
28+
id: restore
29+
with:
30+
path: |
31+
pixi.lock
32+
key: ${{ steps.date.outputs.date }}_${{ inputs.pixi-version }}_${{hashFiles('pixi.toml')}}
33+
- uses: prefix-dev/setup-pixi@v0.9.0
34+
if: ${{ !steps.restore.outputs.cache-hit }}
35+
with:
36+
pixi-version: ${{ inputs.pixi-version }}
37+
run-install: false
38+
- name: Run pixi lock
39+
if: ${{ !steps.restore.outputs.cache-hit }}
40+
run: pixi lock
41+
- uses: actions/cache/save@v4
42+
if: ${{ !steps.restore.outputs.cache-hit }}
43+
id: cache
44+
with:
45+
path: |
46+
pixi.lock
47+
key: ${{ steps.restore.outputs.cache-primary-key }}
48+
- name: Upload pixi.lock
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: pixi-lock
52+
path: pixi.lock

0 commit comments

Comments
 (0)