forked from angr/angr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
183 lines (162 loc) · 4.31 KB
/
pyproject.toml
File metadata and controls
183 lines (162 loc) · 4.31 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
[build-system]
requires = ["setuptools>=77.0.0", "setuptools-rust", "pyvex==9.2.193.dev0"]
build-backend = "setuptools.build_meta"
[project]
name = "angr"
description = "A multi-architecture binary analysis toolkit, with the ability to perform dynamic symbolic execution and various static analyses on binaries"
license = "BSD-2-Clause"
license-files = ["LICENSE"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.10"
dependencies = [
"cxxheaderparser",
"GitPython",
"archinfo==9.2.193.dev0",
"cachetools",
"capstone==5.0.3",
"cffi>=1.14.0",
"claripy==9.2.193.dev0",
"cle==9.2.193.dev0",
"msgspec",
"mulpyplexer",
"networkx!=2.8.1,>=2.0",
"protobuf>=6.33.0",
"psutil",
"pycparser>=2.18",
"pydemumble",
"pyformlang",
"pypcode>=3.2.1,<4.0",
"pyvex==9.2.193.dev0",
"rich>=13.1.0",
"sortedcontainers",
"sympy",
"typing-extensions",
"unique-log-filter",
"colorama;platform_system=='Windows'",
]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://angr.io/"
Repository = "https://github.com/angr/angr"
[project.optional-dependencies]
angrdb = ["sqlalchemy"]
keystone = ["keystone-engine"]
telemetry = ["opentelemetry-api"]
unicorn = ["unicorn==2.0.1.post1", "setuptools"]
[project.scripts]
angr = "angr.__main__:main"
[dependency-groups]
dev = [
"black>=25.1.0",
"coverage>=7.10.7",
"gcovr>=8.4",
"pytest>=8.3.5",
"pytest-cov>=7.0.0",
"pytest-durations>=1.4.0",
"pytest-profiling>=1.8.1",
"pytest-split>=0.10.0",
"pytest-timeout>=2.3.1",
"pytest-xdist>=3.6.1",
"ruff>=0.11.7",
]
docs = ["furo", "myst-parser", "sphinx", "sphinx-autodoc-typehints"]
extras = ["angr[angrdb,keystone,unicorn]"]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
exclude = ["tests*"]
namespaces = false
[tool.setuptools.package-data]
angr = ["py.typed", "unicornlib.*", "rustylib.*", "*.json"]
[tool.setuptools.dynamic]
version = { attr = "angr.__version__" }
[[tool.setuptools-rust.ext-modules]]
target = "angr.rustylib"
path = "native/angr/Cargo.toml"
debug = false
[tool.uv]
default-groups = ["dev", "extras"]
[tool.uv.sources]
archinfo = { git = "https://github.com/angr/archinfo.git", branch = "master" }
pyvex = { git = "https://github.com/angr/pyvex.git", branch = "master" }
cle = { git = "https://github.com/angr/cle.git", branch = "master" }
claripy = { git = "https://github.com/angr/claripy.git", branch = "master" }
[tool.black]
line-length = 120
target-version = ['py310']
force-exclude = '''
/(
angr\/protos
)/
'''
[tool.ruff]
line-length = 120
exclude = [
"*_pb2.py", # Autogenerated protobuf files
]
[tool.ruff.lint]
extend-select = [
"B",
"C4",
"FURB",
"I002",
"PIE",
"RET",
"RSE",
"RUF",
"SIM",
"TID252",
"UP",
]
ignore = [
"B011", # Asserts
"E402", # Bottom imports
"E741", # Variable names
"RUF012", # FIXME: Annotate class variables
"RUF007", # Prefer `itertools.pairwise()` over `zip()` when iterating over successive pairs
"B905", # Zip calls without an explicit strict parameter
"RET501", # rewrites "return None" to "return" if it's the only return statement; pylint then removes the return
]
[tool.ruff.lint.per-file-ignores]
"angr/misc/bug_report.py" = [
"F821", # name not found
]
"angr/procedures/definitions/*" = [ # TODO: Move to exclude
"F601", # TODO: BUG! This hides bugs! See: https://github.com/angr/angr/issues/3685
"E501", # No line length check
"F401",
]
"angr/state_plugins/solver.py" = [
"E501", # Long docstrings with examples
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.pytest.ini_options]
minversion = "6.0"
markers = [
"slow: mark test as too slow to run in every CI run",
]
testpaths = [
"tests",
]
[tool.coverage.run]
branch = true
source = [ "angr" ]
parallel = true
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"if TYPE_CHECKING:",
"if __name__ == .__main__.:"
]