-
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
- Loading branch information
Showing
26 changed files
with
5,044 additions
and
341 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,18 @@ | ||
#!/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 | ||
pixi clean cache --yes | ||
|
||
uv export \ | ||
--extra jupyter \ | ||
> 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,22 @@ | ||
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 | ||
- 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 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 @@ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
version: 2 | ||
|
||
sphinx: | ||
builder: html | ||
configuration: docs/conf.py | ||
fail_on_warning: true | ||
|
||
formats: | ||
- htmlzip | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
apt_packages: | ||
- graphviz | ||
os: ubuntu-24.04 | ||
tools: | ||
python: "3.12" | ||
jobs: | ||
pre_install: | ||
- ./docs/install-julia-on-rtd.sh | ||
post_install: | ||
- python -m pip install 'uv>=0.2.0' | ||
- python -m uv pip install -e .[doc] | ||
commands: | ||
- |- | ||
export PIXI_HOME=$READTHEDOCS_VIRTUALENV_PATH | ||
curl -fsSL https://pixi.sh/install.sh | bash | ||
export UV_LINK_MODE=copy | ||
pixi run \ | ||
uv run \ | ||
--extra doc \ | ||
--locked \ | ||
--with tox \ | ||
tox -e doc | ||
mkdir -p $READTHEDOCS_OUTPUT | ||
mv docs/_build/html $READTHEDOCS_OUTPUT |
Oops, something went wrong.