mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-25 00:52:25 +02:00
makefile
This commit is contained in:
+22
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user