-
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
(#107)
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
a75ee39
commit 4ff4944
Showing
28 changed files
with
3,688 additions
and
6,230 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 @@ | ||
graphviz |
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,11 @@ | ||
#!/bin/bash | ||
set -ex | ||
curl -LsSf https://astral.sh/uv/install.sh | sh | ||
source $HOME/.cargo/env | ||
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
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,2 +1,2 @@ | ||
watch_file pixi.lock | ||
eval "$(pixi shell-hook)" | ||
uv sync --all-extras --quiet | ||
source .venv/bin/activate |
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,2 +1 @@ | ||
docs/**/* linguist-documentation=false | ||
pixi.lock linguist-language=YAML |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: CI | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: |- | ||
${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }} | ||
env: | ||
PYTHONHASHSEED: "0" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- epic/* | ||
- "[0-9]+.[0-9]+.x" | ||
pull_request: | ||
branches: | ||
- main | ||
- epic/* | ||
- "[0-9]+.[0-9]+.x" | ||
workflow_dispatch: | ||
inputs: | ||
specific-pip-packages: | ||
description: Run CI with specific pip packages | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
doc: | ||
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v2 | ||
permissions: | ||
pages: write | ||
id-token: write | ||
with: | ||
apt-packages: graphviz | ||
gh-pages: true | ||
specific-pip-packages: ${{ inputs.specific-pip-packages }} |
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 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,6 +1,6 @@ | ||
*.egg-info | ||
.ipynb_checkpoints/ | ||
.pixi | ||
.venv/ | ||
.virtual_documents/ | ||
node_modules/ | ||
**/*.pickle | ||
|
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: 2 | ||
build: | ||
os: "ubuntu-24.04" | ||
tools: | ||
python: "3.12" | ||
commands: | ||
- |- | ||
export PIXI_HOME=$READTHEDOCS_VIRTUALENV_PATH | ||
curl -fsSL https://pixi.sh/install.sh | bash | ||
pixi global install uv | ||
- |- | ||
export UV_LINK_MODE=copy | ||
uv run --extra doc --locked --with tox \ | ||
tox -e doc | ||
mkdir -p $READTHEDOCS_OUTPUT | ||
mv docs/_build/html $READTHEDOCS_OUTPUT |
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.