open-swe/pyproject.toml
Adam Moussa cfb5624663
Some checks are pending
CI / Lint (push) Waiting to run
CI / Format check (push) Waiting to run
CI / Typecheck (push) Waiting to run
CI / Unit tests (push) Waiting to run
CI / Playwright E2E (push) Waiting to run
CI / Docker build smoke (push) Waiting to run
CI / Triage ledger up to date (push) Waiting to run
CI / ui bun.lock in sync (push) Waiting to run
feat(open-swe): add E2B sandbox provider (port of upstream 48217b68, #1489) (#199)
Additive sandbox provider adapted to this fork's synchronous create_sandbox
factory: agent/integrations/e2b.py registered as a lazy-import entry in
SANDBOX_FACTORIES, so the e2b/langchain-e2b imports only load when
SANDBOX_TYPE=e2b (dark-safe on unset env; unset E2B_API_KEY raises a clean
ValueError only when the provider is selected). Supports reconnect-by-id and
optional E2B_TEMPLATE. Non-langsmith providers skip the GitHub proxy step,
so the GitHub-App token flow is untouched.

Upstream: langchain-ai/open-swe 48217b68 (#1489), re-implemented against the
fork's sync sandbox lifecycle rather than cherry-picked (upstream ships on
the deferred async sandbox.py base).

Docs: provider tables/lists in README, CUSTOMIZATION, INSTALLATION; the
CUSTOMIZATION registration example now shows the lazy-tuple form the code
actually uses. uv.lock refreshed (adds e2b, langchain-e2b, dockerfile-parse).
2026-07-16 18:23:42 -04:00

74 lines
1.7 KiB
TOML

[project]
name = "open-swe-agent"
version = "0.1.0"
description = "Open SWE Agent - Python agent for automating software engineering tasks"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
dependencies = [
"deepagents==0.6.12",
"fastapi>=0.139.2",
"uvicorn>=0.51.0",
"httpx>=0.28.1",
"PyJWT>=2.13.0",
"cryptography>=49.0.0",
"langgraph-sdk>=0.4.2",
"langchain>=1.3.14",
"langgraph>=1.2.9",
"markdownify>=1.2.3",
"langchain-anthropic>=1.4.6",
"langchain-aws>=1.6.2",
"langgraph-cli[inmem]>=0.4.31",
"langsmith==0.10.5",
"langchain-openai>=1.3.5",
"langchain-fireworks>=1.4.4",
# langchain-fireworks 1.4.2 pins a pre-release fireworks-ai; opt in explicitly so uv resolves it.
"fireworks-ai>=1.2.0",
"langchain-daytona>=0.0.7",
"langchain-modal>=0.0.5",
"langchain-runloop>=0.0.6",
"langchain-e2b==0.0.4",
"exa-py>=2.16.0",
"langchain-google-genai>=4.2.7",
"langchain-mcp-adapters>=0.3.0",
]
[project.optional-dependencies]
dev = [
"pytest>=9.1.1",
"pytest-asyncio>=1.4.0",
"ruff>=0.15.22",
"Pygments>=2.20.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["agent"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]