-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
98 lines (86 loc) · 1.92 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
[project]
name = "onixcheck"
version = "0.9.9"
description = "ONIX validation library and commandline tool"
readme = "README.md"
requires-python = ">=3.9"
license = "Apache-2.0"
authors = [
{ name = "Titusz Pan", email = "[email protected]" }
]
keywords = [
"ONIX",
"validation",
"EDItEUR",
"XML",
"RelaxNG",
"XMLSchema"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Utilities",
]
dependencies = [
"six",
"lxml",
"defusedxml",
"isbnlib",
"PyYAML",
"win-unicode-console; platform_system == 'Windows'"
]
[dependency-groups]
dev = [
"poethepoet",
"pytest",
"pytest-cov",
"build",
]
[project.scripts]
onixcheck = "onixcheck.__main__:main"
[tool.hatch.build.targets.wheel]
packages = ["src/onixcheck"]
[tool.ruff]
line-length = 112
target-version = "py39"
[tool.ruff.format]
line-ending = "lf"
[tool.pytest.ini_options]
pythonpath = ["src"]
addopts = "-p no:warnings"
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 100
[tool.poe.tasks]
format-code = { cmd = "ruff format", help = "Code style formating with black" }
format-md = { cmd = "mdformat --wrap 112 --end-of-line lf docs README.md", help = "Markdown formating with mdformat" }
test = { cmd = "pytest", help = "Run tests"}
all = ["format-code", "format-md", "test"]
[tool.hatch.build]
include = [
"src/**/*.py",
"src/**/*.yaml",
"src/**/*.xsd",
"src/**/*.rng",
"src/**/*.xml",
"LICENSE",
"README.md",
"CHANGELOG.md"
]
exclude = [
"tests/**",
".github/**",
".venv/**",
"docs/**",
".gitignore",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"