Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (69 loc) · 2.47 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (69 loc) · 2.47 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
[project]
name = "zero-server"
version = "0.0.3"
description = "Community Python server SDK for Rocicorp Zero. Not affiliated with Rocicorp."
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
requires-python = ">=3.12"
authors = [{ name = "Agent Labs" }]
keywords = ["zero", "rocicorp", "sync", "zql"]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
# Floors are the lowest versions the suite passes on, and CI's `floors` job runs it at exactly these.
dependencies = ["orjson>=3.10.10", "pydantic>=2.12", "typing-extensions>=4.12"]
[project.urls]
Homepage = "https://github.com/agent-labs-dev/zero-python"
Source = "https://github.com/agent-labs-dev/zero-python"
Issues = "https://github.com/agent-labs-dev/zero-python/issues"
Changelog = "https://github.com/agent-labs-dev/zero-python/releases"
[project.scripts]
zero-server = "zero_server.codegen:main"
[project.optional-dependencies]
# The engine's driver is the caller's: add `asyncpg`, or install psycopg yourself.
sqlalchemy = ["sqlalchemy[asyncio]>=2.0.40"]
asyncpg = ["asyncpg>=0.30"]
psycopg = ["psycopg>=3.2.10", "psycopg-pool>=3.2.6"]
starlette = ["starlette>=1.6"]
[dependency-groups]
dev = [
"zero-server[sqlalchemy,asyncpg,psycopg,starlette]",
"httpx2>=2.13",
# psycopg's prebuilt libpq, so the tests need no system libpq.
"psycopg[binary]>=3.2.10",
"hypothesis>=6.169",
"pytest>=9.1",
"pytest-asyncio>=1.4",
"pytest-cov>=7.1",
"ruff>=0.17",
"ty>=0.0.87",
"pytest-codspeed>=5.0.3",
]
# The Python app server of the end-to-end tier.
e2e = ["starlette>=1.6", "uvicorn>=0.54"]
[build-system]
requires = ["uv_build>=0.11,<0.14"]
build-backend = "uv_build"
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "SIM", "RUF", "ASYNC", "PT"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
asyncio_default_test_loop_scope = "session"
addopts = "--cov=zero_server --cov-branch --cov-context=test --cov-report=term-missing"
[tool.coverage.run]
# SQLAlchemy's asyncio layer resumes coroutines inside greenlets.
concurrency = ["greenlet", "thread"]
[tool.coverage.report]
fail_under = 100
skip_covered = true
exclude_also = ["if TYPE_CHECKING:", "@overload", "raise NotImplementedError", "\\.\\.\\."]