Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04

ARG PIXI_VERSION=v0.62.2
ARG PIXI_VERSION=v0.63.1

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" \
&& chmod +x /usr/local/bin/pixi \
Expand Down
5 changes: 4 additions & 1 deletion scripts/rename_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
mv python_template "$1"

# change project name in all files
find . \( -type d -name .git -prune \) -o \( -type f -not -name 'tasks.json' -not -name 'update_from_template.sh' \) -print0 | xargs -0 sed -i "s/python_template/$1/g"
find . \( -type d -name .git -prune \) -o \( -type f -not -name 'tasks.json' -not -name 'update_from_template.sh' -not -name 'pixi.lock' \) -print0 | xargs -0 sed -i "s/python_template/$1/g"

# regenerate lockfile to match renamed project
pixi update

# author name
if [ -n "$2" ]; then
Expand Down
8 changes: 7 additions & 1 deletion scripts/update_from_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ git fetch --all
git checkout main && git pull origin main
git checkout -B feature/update_from_template; git pull
git merge template/main --allow-unrelated-histories -m 'feat: pull changes from remote template'
git checkout --ours pixi.lock; git add pixi.lock
git checkout --ours pixi.lock

# regenerate lockfile to match merged pyproject.toml
pixi update
git add pixi.lock
git diff --cached --quiet || git commit -m 'chore: update pixi.lock after template merge'

git remote remove template
git push --set-upstream origin feature/update_from_template
git checkout main