mirror of
https://github.com/chatmail/relay.git
synced 2026-05-12 17:14:36 +00:00
feat: Migrate to uv for dependency management and script execution.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 "$@"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user