You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Install tomli for TOML parsing (safe if already present)
67
+
pip install tomli
68
+
# Extract dependencies and save to file, then install
69
+
python -c "import tomli; f=open('pyproject.toml','rb'); data=tomli.load(f); deps=[d for d in data['project']['dependencies'] if not any(p in d for p in ['guidata','PlotPy','Sigima'])]; open('deps.txt','w').write('\n'.join(deps))"
70
+
pip install -r deps.txt
71
+
# Install DataLab without dependencies
72
+
pip install --no-deps .
73
+
elif [ "${{ github.ref_name }}" = "release" ]; then
74
+
# Clone dependencies from release branches (with fallback to main/master)
# Install tomli for TOML parsing (safe if already present)
90
+
pip install tomli
91
+
# Extract dependencies and save to file, then install
92
+
python -c "import tomli; f=open('pyproject.toml','rb'); data=tomli.load(f); deps=[d for d in data['project']['dependencies'] if not any(p in d for p in ['guidata','PlotPy','Sigima'])]; open('deps.txt','w').write('\n'.join(deps))"
# Install DataLab itself, but do NOT install its pinned deps
141
+
python -m pip install -e . --no-deps
142
+
143
+
# Install Sigima from local clone
144
+
python -m pip install -e ../sigima
145
+
146
+
# Extract dependency names from pyproject.toml (excluding Sigima) and install latest versions
147
+
python -m pip install -U --upgrade-strategy eager $(python -c "import tomllib, re; print(' '.join(re.sub(r'[\[\]<>=!~,.\s].*$', '', d).strip() for d in tomllib.loads(open('pyproject.toml', 'rb').read().decode())['project']['dependencies'] if 'Sigima' not in d))")
0 commit comments