-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (116 loc) · 2.93 KB
/
Copy pathpyproject.toml
File metadata and controls
128 lines (116 loc) · 2.93 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[build-system]
requires = ["setuptools>=80.9.0", "wheel>=0.45.1"]
build-backend = "setuptools.build_meta"
[project]
name = "alloy-ai"
version = "0.3.1"
description = "Alloy (Python): Python for logic. English for intelligence."
readme = "README.md"
requires-python = ">=3.10"
authors = [{ name = "George Lydakis" }]
license = { text = "MIT" }
dependencies = [
"openai>=1.99.6,<3",
"python-dotenv>=1.1.1,<2",
]
classifiers = [
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.urls]
Homepage = "https://github.com/lydakis/alloy"
Repository = "https://github.com/lydakis/alloy"
Issues = "https://github.com/lydakis/alloy/issues"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
include = ["alloy*"]
[tool.setuptools.package-data]
alloy = ["py.typed", "__init__.pyi"]
[project.optional-dependencies]
openai = ["openai>=1.99.6,<3", "python-dotenv>=1.1.1,<2"]
anthropic = ["anthropic>=0.62.0,<0.85"]
gemini = ["google-genai>=1.29.0,<2", "aiohttp>=3.9,<4"]
providers = [
"openai>=1.99.6,<3",
"python-dotenv>=1.1.1,<2",
"anthropic>=0.62.0,<0.85",
"google-genai>=1.29.0,<2",
"aiohttp>=3.9,<4",
"ollama>=0.5.3,<0.7",
]
ollama = ["ollama>=0.5.3,<0.7"]
dev = [
"pytest>=8.4.1,<10",
"pytest-asyncio>=0.25.2,<1.4",
"pytest-cov>=5.0.0,<8",
"pytest-xdist>=3.6.1,<4",
"ruff>=0.12.8,<0.16",
"black>=25.1.0,<27",
"mypy>=1.17.1,<2",
"pre-commit>=4.3.0,<5",
"hypothesis>=6.115.0,<7",
"python-dateutil>=2.9.0.post0,<3",
]
docs = [
"mkdocs>=1.6,<2",
"mkdocs-material>=9.5,<10",
"mkdocstrings>=0.28,<1.1",
"mkdocstrings-python>=1.16,<3",
"griffe<2",
"pymdown-extensions>=10.11,<11",
"mkdocs-llmstxt>=0.3,<1",
"mkdocs-gen-files>=0.5,<1",
]
[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests"]
asyncio_default_fixture_loop_scope = "function"
markers = [
"unit",
"contracts",
"errors",
"providers",
"integration",
"parity_live",
"examples",
"bench",
"slow",
"serial",
]
filterwarnings = [
# Avoid noisy plugin deprecation warnings in CI and local runs (older pytest-asyncio)
'ignore:The configuration option "asyncio_default_fixture_loop_scope" is unset\.:pytest.PytestDeprecationWarning',
]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.black]
line-length = 100
target-version = ["py310"]
[tool.mypy]
python_version = "3.10"
warn_unused_ignores = true
ignore_missing_imports = true
strict_optional = true
show_error_codes = true
pretty = true
exclude = [".venv/"]
[tool.coverage.run]
source = ["src/alloy"]
omit = [
"src/alloy/models/*",
"src/alloy/react.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
]