Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
98 lines (88 loc) · 2.68 KB
/
Copy pathpyproject.toml
File metadata and controls
98 lines (88 loc) · 2.68 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "python-jsonrpc-lib"
version = "0.4.0"
description = "Simple, yet solid - Type-safe JSON-RPC 1.0/2.0 with OpenAPI support"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{ name = "Andy Smith" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
keywords = ["jsonrpc", "json-rpc", "rpc", "protocol", "dataclass", "validation"]
dependencies = []
[project.optional-dependencies]
dev = [
"mypy>=1.0",
"ruff>=0.15.0",
]
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.5.0",
]
[project.urls]
Homepage = "https://github.com/uandysmith/python-jsonrpc-lib"
Documentation = "https://uandysmith.github.io/python-jsonrpc-lib/"
Repository = "https://github.com/uandysmith/python-jsonrpc-lib"
Issues = "https://github.com/uandysmith/python-jsonrpc-lib/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/jsonrpc"]
# An allowlist, not an exclude list. Without it hatchling ships everything the
# working tree holds that .gitignore does not name, which made the contents of a
# release depend on a file written for a different purpose entirely: tmp/ holds
# a security review with runnable proofs of concept, and the only thing keeping
# it off PyPI was a line in .gitignore. Adding a directory here is deliberate;
# forgetting to is harmless.
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"/docs",
"/README.md",
"/CHANGELOG.md",
"/LICENSE",
"/pyproject.toml",
"/mkdocs.yml",
]
# hatchling also puts .gitignore in every sdist and will not be talked out of it
# - `exclude` does not override that. Harmless: 84 bytes, and with the allowlist
# above it no longer decides anything.
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py311"
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import sorting)
"UP", # pyupgrade (modern Python syntax)
]
ignore = []
[tool.ruff.lint.isort]
known-first-party = ["jsonrpc"]