Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.

Commit 82164db

Browse files
committed
Remove python dev-dependency.
1 parent 12dd48c commit 82164db

11 files changed

Lines changed: 57 additions & 135 deletions

File tree

‎.github/workflows/cmake-ci.yml‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,10 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
1616

17-
- name: Install dependencies
18-
run: |
19-
sudo bash scripts/install.sh
20-
21-
- name: Configure CMake
22-
run: |
23-
cmake -S . -B cmake-build-debug -DCMAKE_BUILD_TYPE=Debug
24-
2517
- name: Build
2618
run: |
27-
cmake --build cmake-build-debug --config Debug
19+
bash scripts/build.sh Debug
2820
29-
- name: Run tests
21+
- name: Run Golden Tests
3022
run: |
3123
bash tests/run_tests.sh

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
### Setup
1616

1717
```bash
18-
bash ./scripts/setup.sh
18+
bash ./scripts/build.sh
1919
```
2020

2121
### Run Golden Tests

‎SPEC_DRAFT.md‎

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

‎requirements.txt‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎scripts/build.sh‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
set -xeu
3+
4+
# This script sets up the project which includes building the CMake project.
5+
6+
SCRIPTS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
7+
ROOT_DIR="$(cd "$SCRIPTS_DIR/.." && pwd)"
8+
BUILD_DIR="$ROOT_DIR/cmake-build-debug"
9+
10+
source "$ROOT_DIR/scripts/commons.sh"
11+
12+
# Usage: ./build.sh [Debug|Release|RelWithDebInfo|MinSizeRel]
13+
BUILD_TYPE="${1:-Debug}"
14+
case "$BUILD_TYPE" in
15+
Debug|Release|RelWithDebInfo|MinSizeRel) ;;
16+
*) log_fatal "Invalid build type \"$BUILD_TYPE\"."; exit 1 ;;
17+
esac
18+
19+
# Install dependencies.
20+
log_info "Installing dependencies."
21+
sudo apt-get update
22+
sudo apt-get install -y cmake libreadline-dev
23+
24+
# CMake Project Setup.
25+
mkdir -p "$BUILD_DIR"
26+
cmake -S "$ROOT_DIR" -B "$BUILD_DIR" -DCMAKE_BUILD_TYPE="$BUILD_TYPE"
27+
log_info "Building cmake project."
28+
cmake --build "$BUILD_DIR" --config "$BUILD_TYPE"

‎scripts/commons.sh‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
set -eu
3+
4+
# Enable colored output, when inside TTY mode.
5+
if [ -t 1 ]; then
6+
RED="\033[0;31m"
7+
GREEN="\033[1;32m"
8+
BLUE="\033[0;34m"
9+
GRAY="\033[0;90m"
10+
RESET="\033[0m"
11+
else
12+
RED=""
13+
GREEN=""
14+
BLUE=""
15+
GRAY=""
16+
RESET=""
17+
fi
18+
19+
function log_info() { echo -e "[${BLUE}INFO${RESET}] $*"; }
20+
function log_pass() { echo -e "[${GREEN}PASS${RESET}] $*"; }
21+
function log_note() { echo -e "[${GRAY}NOTE${RESET}] $*"; }
22+
function log_fail() { echo -e "[${RED}FAIL${RESET}] $*" >&2; }
23+
function log_error() { echo -e "[${RED}ERROR${RESET}] $*" >&2; }
24+
function log_fatal() { echo -e "[${RED}FATAL${RESET}] $*" >&2; exit 1; }

‎scripts/dump_todo.py‎

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

‎scripts/install.sh‎

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

‎scripts/setup.ps1‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# This script sets up the project which includes building the CMake project, and
2-
# creating python environment for development.
1+
# This script sets up the project which includes building the CMake project.
32
# Should be run from within the PROJECT ROOT.
43

54
# --- CMake Project Setup ---
@@ -12,13 +11,3 @@ Set-Location $BuildDir
1211
cmake ..
1312
cmake --build .
1413
Set-Location ..
15-
16-
# --- Python Environment Setup ---
17-
$VenvDir = "venv"
18-
if (!(Test-Path $VenvDir))
19-
{
20-
python -m venv $VenvDir
21-
}
22-
. .\$VenvDir\Scripts\Activate.ps1
23-
python -m pip install --upgrade pip
24-
pip install -r requirements.txt

‎scripts/setup.sh‎

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

0 commit comments

Comments
 (0)