11# You can set these variables from the command line.
2- POETRY = poetry
2+ UV = uv
33SPHINXOPTS = -j auto
4- SPHINXBUILD = $(POETRY ) run sphinx-build
4+ SPHINXBUILD = $(UV ) run sphinx-build
55PAPER =
66BUILDDIR = _build
77SOURCEDIR = _source
@@ -20,20 +20,20 @@ all: dirhtml
2020# Setup commands
2121.PHONY : setupenv
2222setupenv :
23- pip install -q poetry
23+ pip install -q uv
2424 sudo apt-get install doxygen
2525
2626.PHONY : setup
2727setup :
28- $(POETRY ) install
28+ $(UV ) sync
2929 cd .. && doxygen Doxyfile.in
3030 @if [ ! -d " $( SOURCEDIR) " ]; then mkdir -p " $( SOURCEDIR) " ; fi
3131 cp -RL source/* $(SOURCEDIR )
3232 cd $(SOURCEDIR ) && find . -name README.md -execdir mv ' {}' index.md ' ;'
3333
3434.PHONY : update
3535update :
36- $(POETRY ) update
36+ $(UV ) sync --upgrade
3737
3838# Clean commands
3939.PHONY : pristine
@@ -61,7 +61,7 @@ singlehtml: setup
6161
6262.PHONY : multiversion
6363multiversion : setup
64- $(POETRY ) run ./_utils/multiversion.sh
64+ $(UV ) run ./_utils/multiversion.sh
6565 @echo
6666 @echo " Build finished. The HTML pages are in $( BUILDDIR) /dirhtml."
6767
@@ -85,18 +85,18 @@ dummy: setup
8585
8686.PHONY : redirects
8787redirects : setup
88- $(POETRY ) run redirects-cli fromfile --yaml-file _utils/redirects.yaml --output-dir $(BUILDDIR ) /dirhtml
88+ $(UV ) run redirects-cli fromfile --yaml-file _utils/redirects.yaml --output-dir $(BUILDDIR ) /dirhtml
8989 @echo
9090 @echo " Build finished. The HTML pages are in $( BUILDDIR) /dirhtml."
9191
9292# Preview commands
9393.PHONY : preview
9494preview : setup
95- $(POETRY ) run sphinx-autobuild -b dirhtml $(ALLSPHINXOPTS ) $(BUILDDIR ) /dirhtml --port 5500 --re-ignore ' api/*'
95+ $(UV ) run sphinx-autobuild -b dirhtml $(ALLSPHINXOPTS ) $(BUILDDIR ) /dirhtml --port 5500 --re-ignore ' api/*'
9696
9797.PHONY : multiversionpreview
9898multiversionpreview : multiversion
99- $(POETRY ) run python -m http.server 5500 --directory $(BUILDDIR ) /dirhtml
99+ $(UV ) run python -m http.server 5500 --directory $(BUILDDIR ) /dirhtml
100100
101101# Test commands
102102.PHONY : test
0 commit comments