Fix build step to handle packages without pyproject.toml using setup.py fallback
Some checks failed
package-tests / test-python-packages (map[name:aitbc-agent-sdk path:packages/py/aitbc-agent-sdk python_version:3.13]) (push) Failing after 3s
package-tests / test-python-packages (map[name:aitbc-cli path:. python_version:3.13]) (push) Failing after 8s
package-tests / test-python-packages (map[name:aitbc-core path:packages/py/aitbc-core python_version:3.13]) (push) Failing after 5s
package-tests / test-python-packages (map[name:aitbc-crypto path:packages/py/aitbc-crypto python_version:3.13]) (push) Failing after 5s
package-tests / test-python-packages (map[name:aitbc-sdk path:packages/py/aitbc-sdk python_version:3.13]) (push) Successful in 10s
package-tests / test-javascript-packages (map[name:aitbc-sdk node_version:24 path:packages/js/aitbc-sdk]) (push) Successful in 19s
package-tests / cross-language-compatibility (push) Has been skipped
security-scanning / audit (push) Successful in 8s
package-tests / package-integration-tests (push) Has been skipped

This commit is contained in:
aitbc1
2026-03-28 12:46:14 +01:00
parent 39d520bbb1
commit d2351ae59c

View File

@@ -573,12 +573,19 @@ jobs:
echo "Building root-level package with python -m build..."
python3 -m pip install build -q
python3 -m build
else
elif [[ -f "pyproject.toml" ]]; then
# Ensure Poetry is available
export PATH="$HOME/.local/bin:$PATH"
# Build package with Poetry
poetry build
elif [[ -f "setup.py" ]]; then
echo "No pyproject.toml found, using setup.py..."
python3 -m pip install build setuptools wheel -q
python3 -m build
else
echo "❌ No pyproject.toml or setup.py found"
exit 1
fi
# Check build output