forked from yukinarit/pyserde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
132 lines (122 loc) · 3.83 KB
/
pyproject.toml
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
129
130
131
132
[tool.poetry]
name = "pyserde"
version = "0.0.0" # using poetry-dynamic-versioning
description = "Yet another serialization library on top of dataclasses"
authors = ["yukinarit <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/yukinarit/pyserde"
homepage = "https://github.com/yukinarit/pyserde"
packages = [
{ include = "serde" },
]
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
[tool.poetry.dependencies]
python = "^3.7.0"
typing_inspect = ">=0.4.0"
typing_extensions = { version = ">=4.1.0", markers = "python_version ~= '3.7.0'" }
casefy = "*"
jinja2 = "*"
msgpack = { version = "*", markers = "extra == 'msgpack' or extra == 'all'", optional = true }
tomli = { version = "*", markers = "extra == 'toml' or extra == 'all'", optional = true }
tomli-w = { version = "*", markers = "extra == 'toml' or extra == 'all'", optional = true }
pyyaml = { version = "*", markers = "extra == 'yaml' or extra == 'all'", optional = true }
numpy = [
{ version = ">1.21.0", markers = "python_version ~= '3.7.0' and (extra == 'numpy' or extra == 'all')", optional = true },
{ version = ">1.21.0", markers = "python_version ~= '3.8.0' and (extra == 'numpy' or extra == 'all')", optional = true },
{ version = ">1.21.0", markers = "python_version ~= '3.9.0' and (extra == 'numpy' or extra == 'all')", optional = true },
{ version = ">1.22.0", markers = "python_version ~= '3.10' and (extra == 'numpy' or extra == 'all')", optional = true },
]
orjson = { version = "*", markers = "extra == 'orjson' or extra == 'all'", optional = true }
[tool.poetry.dev-dependencies]
pyyaml = "*"
tomli = { version = "*", markers = "python_version <= '3.11.0'" }
tomli-w = "*"
msgpack = "*"
numpy = [
{ version = ">1.21.0", markers = "python_version ~= '3.7.0'" },
{ version = ">1.21.0", markers = "python_version ~= '3.8.0'" },
{ version = ">1.21.0", markers = "python_version ~= '3.9.0'" },
{ version = ">1.22.0", markers = "python_version ~= '3.10'" },
]
mypy = "==1.3.0"
pytest = "*"
pytest-cov = "*"
pytest-watch = "*"
pytest-flake8 = "*"
coverage = "==7.2.7"
pdoc = "^13"
more-itertools = "~=8.6.0"
pre-commit = "==v2.10.1"
pytest-xdist = "^2.3.0"
types-PyYAML = "^6.0.9"
msgpack-types = "^0.2"
envclasses = "^0.2.1"
[tool.poetry.extras]
msgpack = ["msgpack"]
numpy = ["numpy"]
toml = ["tomli", "tomli-w"]
yaml = ["pyyaml"]
orjson = ["orjson"]
all = ["msgpack", "tomli", "tomli-w", "pyyaml", "numpy", "orjson"]
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry-dynamic-versioning]
enable = true
style = "pep440"
[tool.black]
target_version = ["py311"]
line_length = 100
[tool.pyright]
include = [
"examples",
"serde/core.py",
"serde/compat.py",
"serde/inspect.py",
"serde/json.py",
"serde/se.py",
"serde/de.py",
"serde/msgpack.py",
"serde/toml.py",
"serde/yaml.py",
"serde/pickle.py"
]
exclude = [
"serde/numpy.py",
"bench",
"tests",
"serde/__init__.py"
]
pythonVersion = "3.11"
reportMissingImports = false
[tool.mypy]
strict = true
ignore_missing_imports = true
exclude = [
"serde/numpy.py",
"bench",
"tests"
]
[tool.ruff]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
line-length = 100
[tool.ruff.mccabe]
max-complexity = 30