-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (92 loc) · 2.69 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (92 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "strands-sglang"
dynamic = ["version"]
description = "SGLang model provider for Strands Agents SDK with Token-in/Token-out support for agentic RL training."
readme = "README.md"
requires-python = ">=3.12"
license = {text = "Apache-2.0"}
authors = [
{ name = "Yuan He", email = "yuanhe.cs.ai@gmail.com" }
]
keywords = ["strands", "agents", "sglang", "llm", "ai", "reinforcement-learning", "rl", "agentic-rl"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"strands-agents>=1.46.0",
"aiohttp>=3.8.0",
"transformers>=5.6.0",
"jinja2",
"pybase64",
]
[project.urls]
Homepage = "https://github.com/strands-rl/strands-sglang/"
Documentation = "https://github.com/strands-rl/strands-sglang/#readme"
Repository = "https://github.com/strands-rl/strands-sglang/"
Issues = "https://github.com/strands-rl/strands-sglang/issues"
[project.optional-dependencies]
dev = [
# Testing
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.0.0",
"pytest-timeout>=2.0.0",
"tiktoken>=0.5.0",
# Linting & Build
"pre-commit",
"ruff>=0.6.0",
"mypy>=1.15.0,<2.0.0",
"twine>=4.0.0",
"build>=0.10.0",
# Development
"ipykernel>=7.1.0",
# Agent-level testing
"strands-agents[openai]",
"strands-agents-tools",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["src/strands_sglang"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
timeout = 90
markers = [
"integration: tests that require a running SGLang server",
"chat_template: tests against real HuggingFace tokenizers (requires network on first run)",
]
[tool.ruff]
line-length = 120
fix = true
[tool.ruff.lint]
select = ["B", "D", "E", "F", "G", "I", "LOG", "N", "UP", "W"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"!src/**/*.py" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
python_version = "3.12"
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_redundant_casts = true
warn_unreachable = true
ignore_missing_imports = true
[tool.codespell]
skip = "*.json,*.jsonl"