-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathpyproject.toml
105 lines (89 loc) · 2.26 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
[build-system]
requires = ['hatchling', 'hatch-vcs']
build-backend = 'hatchling.build'
[project]
name = 'fmf'
authors = [
{ name = 'Petr Splichal', email = '[email protected]' },
]
maintainers = [
{ name = 'Petr Splichal', email = '[email protected]' },
]
description = 'Flexible Metadata Format'
readme = 'README.rst'
license = 'GPL-2.0-or-later'
license-files = { paths = ['LICENSE'] }
requires-python = '>=3.9'
classifiers = [
'Natural Language :: English',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Utilities',
]
keywords = [
'metadata',
'testing',
]
dependencies = [
'ruamel.yaml',
'filelock',
'jsonschema',
]
dynamic = ['version']
[project.urls]
homepage = 'https://github.com/teemtee/fmf'
documentation = 'https://fmf.readthedocs.io'
[project.optional-dependencies]
# Needed for tests inside rpm build. Not being packaged in rpm
tests = [
'pytest',
]
# Needed for readthedocs and man page build. Not being packaged in rpm.
docs = [
'sphinx',
'sphinx_rtd_theme',
]
[project.scripts]
fmf = 'fmf.cli:cli_entry'
[tool.hatch]
version.source = 'vcs'
[tool.hatch.envs.default]
platforms = ["linux"]
[tool.hatch.envs.dev]
description = "Development environment"
dependencies = [
"pytest-cov"
]
features = ["tests"]
[tool.hatch.envs.dev.scripts]
type = ["mypy {args:tmt}"]
check = ["lint", "type"]
unit = "pytest -vvv -ra --showlocals tests/unit"
smoke = "pytest -vvv -ra --showlocals tests/unit/test_cli.py"
cov = [
"coverage run --source=fmf -m pytest -vvv -ra --showlocals tests",
"coverage report",
"coverage annotate",
]
[tool.hatch.envs.dev-not-editable]
template = "dev"
description = "Same as 'dev', but not using editable install"
dev-mode = false
[tool.hatch.envs.test]
template = "dev"
description = "Run scripts with multiple Python versions"
[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.11", "3.12"]
[tool.hatch.envs.docs]
features = ["docs"]
[tool.hatch.envs.docs.scripts]
html = "sphinx-build -b html {root}/docs {root}/docs/_build {args}"
[tool.pytest.ini_options]
markers = [
"web: tests which need to access the web",
]
testpaths = [
'tests',
]