forked from sigmf/sigmf-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
104 lines (94 loc) · 2.76 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
[project]
name = "SigMF"
description = "Easily interact with Signal Metadata Format (SigMF) recordings."
keywords = ["gnuradio", "radio"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Communications :: Ham Radio",
]
dynamic = ["version", "readme"]
requires-python = ">=3.7"
dependencies = [
"numpy", # for vector math
"jsonschema", # for spec validation
]
[project.urls]
repository = "https://github.com/sigmf/sigmf-python"
[project.scripts]
sigmf_validate = "sigmf.validate:main"
sigmf_convert_wav = "sigmf.apps.convert_wav:main [apps]"
[project.optional-dependencies]
test = [
"pylint",
"pytest",
"pytest-cov",
"hypothesis", # next-gen testing framework
]
apps = [
"scipy", # for wav i/o
]
[tool.setuptools]
packages = ["sigmf"]
[tool.setuptools.dynamic]
version = {attr = "sigmf.__version__"}
readme = {file = ["README.md"], content-type = "text/markdown"}
[tool.setuptools.package-data]
sigmf = ["*.json"]
[build-system]
requires = ["setuptools>=65.0", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.coverage.run]
branch = true
source = ["sigmf", "tests"]
# -rA captures stdout from all tests and places it after the pytest summary
command_line = "-m pytest -rA --doctest-modules --junitxml=pytest.xml"
[tool.pytest.ini_options]
addopts = "--doctest-modules"
[tool.pylint]
[tool.pylint.main]
load-plugins = [
"pylint.extensions.typing",
"pylint.extensions.docparams",
]
exit-zero = true
[tool.pylint.messages_control]
disable = [
"logging-not-lazy",
"missing-module-docstring",
"import-error",
"unspecified-encoding",
]
max-line-length = 120
[tool.pylint.REPORTS]
# omit from the similarity reports
ignore-comments = 'yes'
ignore-docstrings = 'yes'
ignore-imports = 'yes'
ignore-signatures = 'yes'
min-similarity-lines = 4
[tool.pytype]
inputs = ['sigmf', 'tests']
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
[tool.tox]
legacy_tox_ini = '''
[tox]
skip_missing_interpreters = True
envlist = py{37,38,39,310,311,312}
[testenv]
usedevelop = True
deps = .[test,apps]
commands = coverage run
'''