-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
140 lines (124 loc) · 3.21 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
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "antsibull-core"
dynamic = [
"version",
]
description = "Tools for building the Ansible Distribution"
license = "GPL-3.0-or-later AND BSD-2-Clause AND MIT AND PSF-2.0"
license-files = {globs=["LICENSES/*.txt"]}
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Ansible",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"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",
"Typing :: Typed",
]
requires-python = ">=3.9"
dependencies = [
"antsibull-fileutils >= 1.0.0, < 2.0.0",
"aiofiles",
"aiohttp >= 3.3.0",
"build",
# major/minor was introduced here
"packaging >= 20.0",
"perky",
# pydantic v2 is a major rewrite
"pydantic ~= 2.0",
"semantic_version",
# 0.5.0 introduces dict_config
"twiggy >= 0.5.0",
]
[[project.authors]]
name = "Toshio Kuratomi"
email = "[email protected]"
[[project.authors]]
name = "Felix Fontein"
email = "[email protected]"
[[project.maintainers]]
name = "Felix Fontein"
email = "[email protected]"
[[project.maintainers]]
name = "Maxwell G"
email = "[email protected]"
[project.urls]
"Source code" = "https://github.com/ansible-community/antsibull-core"
"Code of Conduct" = "https://docs.ansible.com/ansible/latest/community/code_of_conduct.html"
"Bug tracker" = "https://github.com/ansible-community/antsibull-core/issues"
[project.optional-dependencies]
codeqa = [
"antsibull-changelog",
"flake8 >= 6.0.0",
"pylint >= 2.15.7",
"reuse",
]
coverage = [
"coverage[toml]",
]
formatters = [
"black>=24",
"isort",
]
test = [
"asynctest",
"cryptography",
"pytest",
"pytest-asyncio >= 0.20",
"pytest-cov",
"pytest-error-for-skips",
]
typing = [
"mypy",
# https://github.com/facebook/pyre-check/issues/398
"pyre-check >= 0.9.17, < 0.9.23",
"types-aiofiles",
"typing-extensions",
]
dev = [
# Used by nox sessions
"antsibull-core[codeqa]",
"antsibull_core[coverage]",
"antsibull-core[formatters]",
"antsibull-core[test]",
"antsibull-core[typing]",
# misc
"nox",
]
[tool.hatch.version]
path = "src/antsibull_core/__init__.py"
[tool.isort]
profile = "black"
[tool.coverage.report]
# https://coverage.readthedocs.io/en/latest/excluding.html#advanced-exclusion
# These should use single quotes in TOML, as they're regular expressions.
exclude_lines = [
'pragma: no cover',
'def __repr__',
'raise NotImplementedError',
'if __name__ == .__main__.:',
'if TYPE_CHECKING:',
'if t.TYPE_CHECKING:',
'class .*\bProtocol\):',
'@(abc\.)?abstractmethod',
]
[tool.coverage.paths]
source = [
"src",
"*/site-packages",
]
[tool.mypy]
mypy_path = "stubs/"
[[tool.mypy.overrides]]
module = "semantic_version"
ignore_missing_imports = true