This commit is contained in:
Quanzheng Long
2026-03-16 16:41:14 -07:00
parent 09c8bb7c1c
commit bfdd7deb60
+22 -1
View File
@@ -1,10 +1,31 @@
PYPI_REPOSITORY ?= pypi
PYPI_TOKEN ?=
PYTHON_VERSION ?= 3.13
TEST_BASE = uv run --python $(PYTHON_VERSION) --with pytest --with anyio --with typing_extensions --with pydantic --with langgraph pytest -q -s
.PHONY: publish-to-pypi-saf-python-sdk
.PHONY: publish-to-pypi-saf-python-sdk all-tests test_primitives test_sub_agents test_update_elision test_run_pool_size test-benchmark
publish-to-pypi-saf-python-sdk:
@test -n "$(PYPI_TOKEN)" || (echo "PYPI_TOKEN is required"; exit 1)
cd "$(CURDIR)" && \
MATURIN_PYPI_TOKEN="$(PYPI_TOKEN)" \
uvx maturin publish --repository $(PYPI_REPOSITORY) --non-interactive --skip-existing --no-sdist
all-tests:
$(TEST_BASE) tests/advanced-graph/test_*.py
test_primitives:
$(TEST_BASE) tests/advanced-graph/test_primitives.py
test_sub_agents:
$(TEST_BASE) tests/advanced-graph/test_sub_agents.py
test_update_elision:
$(TEST_BASE) tests/advanced-graph/test_update_elision.py
test_run_pool_size:
$(TEST_BASE) tests/advanced-graph/test_run_pool_size.py
test-benchmark:
uv run --python $(PYTHON_VERSION) --with anyio --with typing_extensions --with pydantic --with langgraph python tests/advanced-graph/benchmark_stategraph_vs_advancedgraph.py