-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DX: define developer environment with
uv
(#23)
* DX: pin all notebook dependencies * DX: switch to Python 3.10 in developer environment --------- 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
1 parent
a6cdc36
commit 10900e8
Showing
128 changed files
with
26,845 additions
and
1,840 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/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" | ||
pixi clean cache --yes | ||
|
||
uv export \ | ||
--extra jupyter \ | ||
--extra notebooks \ | ||
> requirements.txt | ||
uv pip install \ | ||
--requirement requirements.txt \ | ||
--system | ||
uv cache clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python-3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,6 @@ indent_size = 4 | |
|
||
[LICENSE] | ||
indent_size = unset | ||
|
||
[uv.lock] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
if [ -e .venv ]; then | ||
source .venv/bin/activate | ||
elif [ -e venv ]; then | ||
source venv/bin/activate | ||
elif [ -e .pixi ]; then | ||
watch_file pixi.lock | ||
eval "$(pixi shell-hook)" | ||
else | ||
layout anaconda | ||
fi | ||
watch_file pixi.lock | ||
eval "$(pixi shell-hook)" | ||
uv sync --all-extras --quiet | ||
source .venv/bin/activate |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Update | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: |- | ||
${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }} | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- epic/* | ||
paths: | ||
- .pre-commit-config.yaml | ||
- Manifest.toml | ||
- pixi.lock | ||
- uv.lock | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lock: | ||
uses: ComPWA/actions/.github/workflows/lock.yml@v2 | ||
secrets: | ||
token: ${{ secrets.PAT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.