Skip to content

Commit 3d7458e

Browse files
committed
Refactor install_dev_deps.py to replace tomlkit with toml
- Remove 'tomlkit' from CORE_PACKAGES and update the dependency loading to use 'toml' for improved compatibility and simplicity in the installation script.
1 parent 28102b3 commit 3d7458e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install_dev_deps.py

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

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

88
# Define packages that should be installed via pip instead of conda
99
PIP_PACKAGES = {"build", "pip-tools", "planets"}
@@ -12,7 +12,7 @@
1212
CONDA_ONLY_PACKAGES = {"gdal"}
1313

1414
# Core packages that must be installed first
15-
CORE_PACKAGES = {"tomlkit", "gdal"}
15+
CORE_PACKAGES = {"gdal"}
1616

1717

1818
def install_deps():
@@ -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 = tomlkit.load(f)
45+
pyproject = toml.load(f)
4646

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

0 commit comments

Comments
 (0)