Skip to content

Commit f6b3bbc

Browse files
authored
Upgrading uv workflow (#590)
* Trying again to force update * dev requirements.txt * labels * test build from uv * restructure * restructure aussi là
1 parent 722347f commit f6b3bbc

File tree

17 files changed

+74
-765
lines changed

17 files changed

+74
-765
lines changed

.github/workflows/prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
- master
8+
- update-uv
89

910
jobs:
1011
docker:

_quarto-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ filters:
109109
- build/replace-title.lua
110110
- build/lang-notebook.lua
111111
- black-formatter
112-
- build/callout-jupyter.lua
112+
- build/callout/callout-jupyter.lua
113113
- include-code-files
114114

115115
crossref:

_quarto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ filters:
7777
- build/replace-title.lua
7878
- build/lang-notebook.lua
7979
#- black-formatter
80-
- build/callout-jupyter.lua
80+
- build/callout/callout-jupyter.lua
8181
- include-code-files
8282

8383
crossref:
File renamed without changes.

build/dev-scripts/init-dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ curl -sSL https://raw.githubusercontent.com/linogaliana/init-scripts/refs/heads/
99
git clone https://github.com/linogaliana/python-datascientist.git --single-branch --depth 1
1010
cd python-datascientist
1111
pip install uv
12-
uv pip install -r requirements.txt
12+
uv pip install -r requirements.txt --system
1313

1414
# Formatters and precommit
1515

build/dev-scripts/preview_all.sh

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
#!/bin/bash
22

3-
pip install -r requirements.txt
4-
quarto render --profile fr --to html
5-
quarto render --profile en --to html
6-
cd _site/
7-
python3 -m http.server -b 0.0.0.0 5000
3+
# Exit immediately if a command exits with a non-zero status
4+
set -e
5+
6+
# Render the Quarto project with the French profile
7+
echo "Rendering Quarto project with French profile..."
8+
quarto render --profile fr
9+
10+
# Run the Python script to modify sidebars for English
11+
echo "Modifying sidebars to English..."
12+
#python build/sidebar.py --to english
13+
14+
# Render the Quarto project with the English profile
15+
echo "Rendering Quarto project with English profile..."
16+
quarto render --profile en
17+
18+
# Run the Python script to modify sidebars back to French
19+
echo "Modifying sidebars back to French..."
20+
#python build/sidebar.py --to french
21+
22+
echo "Build process completed successfully."
23+
python -m http.server 5000 --bind 0.0.0.0
24+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ruff
2+
uv
3+
pre-commit

build/preview_all.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

content/annexes/corrections.qmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ image: https://minio.lab.sspcloud.fr/lgaliana/generative-art/pythonds/classroom.
99
:::: {.content-visible when-format="html"}
1010

1111

12-
{{< include "/build/_printBadges.qmd" >}}
13-
1412

1513

1614
Seules les chapitres dont les corrections ne sont pas apparentes sont listés sur cette page.

0 commit comments

Comments
 (0)