-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
pyproject.toml
152 lines (136 loc) · 3.27 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["xsdata*"]
[project]
name = "xsdata"
description = "Python XML Binding"
authors = [{name = "Christodoulos Tsoulloftas", email = "[email protected]"}]
license = {text = "MIT"}
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Code Generators",
"Topic :: Text Processing :: Markup :: XML",
]
keywords = ["xsd", "wsdl", "schema", "dtd", "binding", "xml", "json", "dataclasses", "generator", "cli"]
requires-python = ">=3.9"
dependencies = [
"typing-extensions>=4.7.0",
]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/tefra/xsdata"
Source = "https://github.com/tefra/xsdata"
Documentation = "https://xsdata.readthedocs.io/"
Changelog = "https://xsdata.readthedocs.io/en/latest/changelog/"
[project.optional-dependencies]
cli = [
"click>=5.0",
"click-default-group>=1.2",
"docformatter>=1.7.2",
"jinja2>=2.10",
"toposort>=1.5",
"ruff>=0.3.0"
]
docs = [
"mkdocs",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-material",
"mkdocs-minify-plugin",
"mkdocstrings[python]",
"markdown-exec[ansi]",
"pymdownx-superfence-filter-lines",
]
lxml = ["lxml>=4.5.0"]
soap = ["requests"]
test = [
"pre-commit",
"pytest",
"pytest-benchmark",
"pytest-cov",
]
[project.scripts]
xsdata = "xsdata.__main__:main"
[tool.setuptools]
include-package-data = true
license-files = ["LICENSE"]
[tool.setuptools.dynamic]
version = {attr = "xsdata.__version__"}
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# flake8-annotations
"ANN",
# flake8-comprehensions
"C4",
# isort
"I",
# pydocstyle
"D",
# flake-raise
"RSE",
# flake-return
"RET",
# Ruff rules
"RUF",
]
ignore = [
"ANN201",
"ANN202",
"ANN204",
"ANN206",
"ANN401",
"E203",
"B028",
"B904",
"D100",
"D104",
"D107",
"RUF009",
"RUF012",
]
[tool.ruff.lint.per-file-ignores]
"**/{tests}/*" = ["ANN001", "ANN002", "ANN003", "E501", "B018", "D"]
"tests/formats/dataclass/cases/**" = ["UP"]
"**/utils/testing.py" = ["D"]
"docs/*" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
line-ending = "lf"
[tool.pytest.ini_options]
addopts = "--color=yes --benchmark-skip"
doctest_optionflags = "NORMALIZE_WHITESPACE"
[tool.coverage.run]
omit = [
"xsdata/__main__.py",
"xsdata/utils/debug.py",
]