Skip to content

Commit 0da89ea

Browse files
committed
Update install_dev_deps.py to use tomlkit and modify CI workflow for dependency installation
- Replace 'toml' with 'tomlkit' in install_dev_deps.py for enhanced functionality. - Update GitHub Actions workflow to install 'tomlkit' alongside 'sh' to ensure proper execution of the installation script.
1 parent 3d7458e commit 0da89ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
shell: bash -l {0}
4949
run: |
5050
echo "=== Starting dependency installation ==="
51-
echo "Installing sh package first..."
52-
mamba install -y -c conda-forge sh
51+
echo "Installing required packages for install_dev_deps.py..."
52+
mamba install -y -c conda-forge sh tomlkit
5353
echo "Running install_dev_deps.py..."
5454
python install_dev_deps.py
5555
echo "=== Dependency installation completed ==="

install_dev_deps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pathlib import Path
44

55
import sh
6-
import toml
6+
import tomlkit
77

88
# Define packages that should be installed via pip instead of conda
99
PIP_PACKAGES = {"build", "pip-tools", "planets"}
@@ -42,7 +42,7 @@ def install_deps():
4242
print("\nReading pyproject.toml...")
4343
pyproject_path = Path("pyproject.toml")
4444
with open(pyproject_path) as f:
45-
pyproject = toml.load(f)
45+
pyproject = tomlkit.load(f)
4646

4747
# Get main, spice, and dev dependencies
4848
print("\nCollecting dependencies from pyproject.toml...")

0 commit comments

Comments
 (0)