-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
76 lines (67 loc) · 1.75 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
[project]
name = "python-fx"
dynamic = ["version", "dependencies"]
authors = [
{ name = "Yutian Wu", email = "[email protected]" }
]
license = { text = "MIT" }
readme = "README.md"
description = "A python-native fx-alike terminal JSON viewer."
keywords = ["fx", "pyfx", "json viewer", "tui"]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3 :: Only",
"Environment :: Console",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"License :: OSI Approved :: MIT License",
"Topic :: Utilities"
]
[project.urls]
repository = "https://github.com/cielong/pyfx"
[project.scripts]
pyfx = "pyfx.cli:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
pyfx = [
'config/yaml/*.yml',
'config/yaml/keymaps/*.yml',
'config/yaml/themes/*.yml',
'model/common/jsonpath/*.g4',
'model/common/jsonpath/*.interp',
'model/common/jsonpath/*.tokens',
]
[tool.setuptools.dynamic]
version = {attr = "pyfx.__version__.__version__"}
dependencies = {file = "requirements.txt"}
[tool.pytest.ini_options]
# only search tests in the tests dir
testpaths = [
"tests"
]
addopts = [
# show short test summary, except summary for passed summary.
"-ra",
# raise error on unknown-markers (https://docs.pytest.org/en/stable/mark.html#mark)
"--strict-markers",
# stop after 2 failures
"--maxfail=2",
# search doctest from docstrings in classes and functions
"--doctest-modules",
# search doctest matches "*.rst"
'--doctest-glob="*.rst"',
# traceback set to short format
"--tb=short"
]
python_files = [
"test_*.py",
"*_test.py"
]
[build-system]
requires = [
"setuptools >= 61.0.0",
"wheel"
]
build-backend = "setuptools.build_meta"