-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (96 loc) · 2.3 KB
/
Copy pathpyproject.toml
File metadata and controls
106 lines (96 loc) · 2.3 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "x402-openai"
version = "0.3.0"
description = "Drop-in OpenAI Python client with transparent x402 payment support."
readme = "README.md"
license = "MIT"
authors = [
{ name = "QNTX", email = "x@qntx.fun" },
]
requires-python = ">=3.11"
keywords = ["openai", "x402", "payment", "crypto", "usdc", "llm", "ai", "wallet"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"openai>=1.0.0",
"httpx>=0.27.0",
]
[project.optional-dependencies]
evm = [
"x402[evm]>=2.0.0",
"eth-account>=0.13.0",
]
svm = [
"x402[svm]>=2.0.0",
"solders>=0.21.0",
]
all = [
"x402-openai[evm]",
"x402-openai[svm]",
]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"mypy>=1.0",
"ruff>=0.8",
"pre-commit>=4.0",
"build>=1.0",
]
[project.urls]
Homepage = "https://github.com/qntx/x402-openai-python"
Repository = "https://github.com/qntx/x402-openai-python"
Issues = "https://github.com/qntx/x402-openai-python/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/x402_openai"]
[tool.ruff]
target-version = "py311"
line-length = 99
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"ANN", # flake8-annotations
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # ruff-specific
]
ignore = [
"ANN401", # dynamically typed expressions (Any)
]
[tool.ruff.lint.isort]
known-first-party = ["x402_openai"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = [
"eth_account",
"eth_account.*",
"solders",
"solders.*",
"x402",
"x402.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]