-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (69 loc) · 1.67 KB
/
pyproject.toml
File metadata and controls
78 lines (69 loc) · 1.67 KB
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
[project]
name = "pypcode"
description = "Machine code disassembly and IR translation library"
license = "BSD-2-Clause AND Apache-2.0 AND Zlib"
license-files = [ "LICENSE.txt" ]
readme = { file = "README.md", content-type = "text/markdown" }
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
requires-python = ">=3.12"
dynamic = [ "version" ]
[project.urls]
Homepage = "https://api.angr.io/projects/pypcode/en/latest/"
Repository = "https://github.com/angr/pypcode"
[project.optional-dependencies]
docs = [
"furo",
"ipython",
"myst-parser",
"sphinx",
"sphinx-autodoc-typehints",
]
testing = [
"pytest",
"pytest-cov",
"coverage",
"gcovr",
]
[build-system]
requires = [ "setuptools", "nanobind", "cmake" ]
build-backend = "setuptools.build_meta"
[tool.setuptools]
dynamic = { version = { attr = "pypcode.__version__.__version__" } }
packages = [ "pypcode" ]
ext-modules = [
{ name = "pypcode.pypcode_native", sources = [] }
]
[tool.black]
line-length = 120
target-version = ['py312']
[tool.ruff]
line-length = 120
extend-ignore = [
"E402", # Bottom imports
]
[tool.pytest.ini_options]
addopts = [
"--cov=pypcode",
"--cov-report=term-missing",
"--cov-branch",
]
testpaths = [ "tests" ]
[tool.coverage.run]
branch = true
source = [ "pypcode" ]
parallel = true
omit = [ "tests/*" ]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"if TYPE_CHECKING:",
"if __name__ == .__main__.:"
]