feat: Migrate to uv for dependency management and script execution.

This commit is contained in:
Omid Zamani
2026-01-02 16:37:33 +01:00
parent 4f2975eeb4
commit d089e7e06f
8 changed files with 1135 additions and 19 deletions

View File

@@ -2,6 +2,8 @@
#
# Wrapper for building the docs
set -e
. venv/bin/activate
# Ensure uv is in PATH
export PATH="$HOME/.local/bin:$PATH"
cd doc/
make html
uv run make html

View File

@@ -2,5 +2,7 @@
#
# Wrapper for cmdelpoy to run it in activated virtualenv.
set -e
. venv/bin/activate
cmdeploy "$@"
# Ensure uv is in PATH
export PATH="$HOME/.local/bin:$PATH"
uv run cmdeploy "$@"

View File

@@ -18,8 +18,16 @@ if command -v lsb_release 2>&1 >/dev/null; then
esac
fi
python3 -m venv --upgrade-deps venv
# Ensure uv is in PATH
export PATH="$HOME/.local/bin:$PATH"
venv/bin/pip install -e chatmaild
venv/bin/pip install -e cmdeploy
venv/bin/pip install sphinx sphinxcontrib-mermaid sphinx-autobuild furo # for building the docs
if ! command -v uv &> /dev/null; then
echo "uv not found. Please install it first or run init.sh"
exit 1
fi
uv venv venv
uv pip install -e chatmaild
uv pip install -e cmdeploy
uv pip install sphinx sphinxcontrib-mermaid sphinx-autobuild furo # for building the docs