mirror of
https://github.com/commaai/opendbc.git
synced 2026-06-08 06:04:45 +08:00
PyPI rejects wheel uploads whose Requires-Dist entries contain direct URLs, which was blocking the 0.3.0 release with a 400 Bad Request. Move comma-car-segments and cppcheck from [project.optional-dependencies].testing to a PEP 735 [dependency-groups].testing — groups are not published in the wheel. Update setup.sh to install them via --all-groups. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
23 lines
582 B
Bash
Executable File
23 lines
582 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
|
|
# TODO: why doesn't uv do this?
|
|
export PYTHONPATH=$BASEDIR
|
|
|
|
# *** dependencies install ***
|
|
if ! command -v uv &>/dev/null; then
|
|
echo "'uv' is not installed. Installing 'uv'..."
|
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
|
|
# must source this after install on some platforms
|
|
if [ -f $HOME/.local/bin/env ]; then
|
|
source $HOME/.local/bin/env
|
|
fi
|
|
fi
|
|
|
|
export UV_PROJECT_ENVIRONMENT="$BASEDIR/.venv"
|
|
uv sync --all-extras --all-groups --inexact
|
|
source "$PYTHONPATH/.venv/bin/activate"
|