Skip to content

Commit

Permalink
DX: define developer environment with uv (#364)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 22, 2024
1 parent d029231 commit 97a693e
Show file tree
Hide file tree
Showing 37 changed files with 5,080 additions and 1,384 deletions.
21 changes: 21 additions & 0 deletions .binder/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
set -ex
curl -LsSf https://pixi.sh/install.sh | bash
export PATH="$HOME/.pixi/bin:$PATH"

pixi_packages="$(NO_COLOR= pixi list --explicit --no-install | awk 'NR > 1 {print $1}')"
if [[ -n "$pixi_packages" ]]; then
pixi global install $pixi_packages
fi
export PYTHONHASHSEED="0"
bash julia/install.sh
pixi clean cache --yes

uv export \
--extra jupyter \
--extra notebooks \
> requirements.txt
uv pip install \
--requirement requirements.txt \
--system
uv cache clean
1 change: 1 addition & 0 deletions .binder/runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.12
1 change: 0 additions & 1 deletion .constraints/.gitignore

This file was deleted.

230 changes: 0 additions & 230 deletions .constraints/py3.10.txt

This file was deleted.

Loading

0 comments on commit 97a693e

Please sign in to comment.