forked from mesonbuild/meson-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
112 lines (94 loc) · 2.16 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
[build-system]
build-backend = 'mesonpy'
backend-path = ['.']
requires = [
'meson>=0.63.3',
'pyproject-metadata>=0.7.1',
'tomli>=1.0.0; python_version<"3.11"',
]
[project]
name = 'meson-python'
description = 'Meson Python build backend (PEP 517)'
readme = 'README.md'
requires-python = '>=3.7'
license = { file = 'LICENSE' }
keywords = ['meson', 'build', 'backend', 'pep517', 'package']
authors = [
{ name = 'Filipe Laíns', email = '[email protected]' },
]
classifiers = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
]
dependencies = [
'colorama; os_name == "nt"',
'meson>=0.63.3',
'pyproject-metadata>=0.6.1', # not a hard dependency, only needed for projects that use PEP 621 metadata
'tomli>=1.0.0; python_version<"3.11"',
]
dynamic = [
'version',
]
[project.optional-dependencies]
test = [
'build',
'pytest>=6.0',
'pytest-cov[toml]',
'pytest-mock',
'auditwheel',
'Cython',
'wheel',
'typing-extensions>=3.7.4; python_version<"3.10"',
]
docs = [
'furo>=2021.08.31',
'sphinx~=4.0',
'sphinx-autodoc-typehints>=1.10',
'sphinx-autobuild',
]
[project.urls]
homepage = 'https://github.com/mesonbuild/meson-python'
repository = 'https://github.com/mesonbuild/meson-python'
documentation = 'https://meson-python.readthedocs.io/'
changelog = 'https://meson-python.readthedocs.io/en/latest/changelog.html'
[tool.mypy]
show_error_codes = true
ignore_missing_imports = true
strict = true
[tool.ruff]
line-length = 127
extend-ignore = [
'B019',
]
select = [
'B', # flake8-bugbear
'C4', # flake8-comprehensions
'C9', # mccabe
'E', # pycodestyle
'F', # pyflakes
'W', # pycodestyle
'RUF100', # ruff
]
[tool.ruff.mccabe]
max-complexity = 12
[tool.isort]
lines_between_types = 1
lines_after_imports = 2
multi_line_output = 5
known_first_party = 'mesonpy'
[tool.coverage.run]
disable_warnings = [
'couldnt-parse',
]
[tool.coverage.html]
show_contexts = true
[tool.pytest.ini_options]
minversion = '6.0'
addopts = ['-ra', '--strict-markers', '--strict-config']
log_cli_level = 'info'
norecursedirs = 'tests/packages/*'
testpaths = ['tests']
xfail_strict = true
filterwarnings = [
'error',
]