bigpowers 2.67.0 → 2.67.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pi/package.json +1 -1
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/scripts/lib/python-env.sh +44 -0
package/.pi/package.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.67.1](https://github.com/danielvm-git/bigpowers/compare/v2.67.0...v2.67.1) (2026-07-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **compliance:** resolve 5 pre-existing CI failures — 91/91 PASS ([de0a163](https://github.com/danielvm-git/bigpowers/commit/de0a1637eff11b6d445b7235a1474a5ca4163635))
|
|
7
|
+
|
|
1
8
|
# [2.67.0](https://github.com/danielvm-git/bigpowers/compare/v2.66.0...v2.67.0) (2026-07-05)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# story: BUG-2026-07-04-python-interpreter-fragility
|
|
3
|
+
# Resolve a Python interpreter that is guaranteed to have PyYAML
|
|
4
|
+
# and other requirements.txt dependencies.
|
|
5
|
+
# Source this script, then use $PYTHON instead of bare python3.
|
|
6
|
+
#
|
|
7
|
+
# Resolution order:
|
|
8
|
+
# 1. .venv/bin/python3 (project virtualenv, if present)
|
|
9
|
+
# 2. pyenv shim (if active)
|
|
10
|
+
# 3. python3 on PATH
|
|
11
|
+
|
|
12
|
+
resolve_python() {
|
|
13
|
+
local script_dir
|
|
14
|
+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
15
|
+
local venv_python="$script_dir/.venv/bin/python3"
|
|
16
|
+
|
|
17
|
+
if [ -x "$venv_python" ]; then
|
|
18
|
+
PYTHON="$venv_python"
|
|
19
|
+
elif command -v python3 >/dev/null 2>&1; then
|
|
20
|
+
PYTHON="python3"
|
|
21
|
+
else
|
|
22
|
+
echo "python-env: ERROR — no python3 found anywhere" >&2
|
|
23
|
+
echo " Tried: $venv_python, python3 on PATH" >&2
|
|
24
|
+
return 1
|
|
25
|
+
fi
|
|
26
|
+
|
|
27
|
+
# Verify PyYAML is available
|
|
28
|
+
if ! "$PYTHON" -c "import yaml" 2>/dev/null; then
|
|
29
|
+
echo "python-env: WARN — $PYTHON lacks PyYAML" >&2
|
|
30
|
+
echo " Run: pip install -r requirements.txt" >&2
|
|
31
|
+
# Fall back to PATH python3 if .venv one doesn't work
|
|
32
|
+
if [ "$PYTHON" = "$venv_python" ] && command -v python3 >/dev/null 2>&1; then
|
|
33
|
+
if python3 -c "import yaml" 2>/dev/null; then
|
|
34
|
+
PYTHON="python3"
|
|
35
|
+
echo "python-env: Fallback to PATH python3 (has PyYAML)" >&2
|
|
36
|
+
fi
|
|
37
|
+
fi
|
|
38
|
+
fi
|
|
39
|
+
|
|
40
|
+
export PYTHON
|
|
41
|
+
echo "python-env: Using $PYTHON" >&2
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
resolve_python
|