-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (82 loc) · 3.19 KB
/
Copy pathpyproject.toml
File metadata and controls
92 lines (82 loc) · 3.19 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
[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"
[project]
name = "fusil"
description = "Fuzzing framework"
authors = [
{name = "Victor Stinner", email = "victor.stinner@haypocalc.com"},
]
maintainers = [
{name = "Daniel Diniz", email = "lafleurfuzzer@gmail.com"},
]
requires-python = ">=3.13"
license = {text = "GNU GPL v2"}
keywords = ["fuzzing", "fuzzer", "security", "testing"]
classifiers = [
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"python-ptrace>=0.7",
]
dynamic = ["version", "readme"]
# Optional features used by the Python fuzzer when present (see fusil.python).
[project.optional-dependencies]
numpy = ["numpy"]
h5py = ["h5py"]
[project.urls]
Homepage = "https://github.com/devdanzin/fusil"
Repository = "https://github.com/devdanzin/fusil"
# Only the actively-maintained Python fuzzer is exposed as a console script.
# The legacy fuzzers/fusil-* scripts remain runnable from a checkout via
# PYTHONPATH=$PWD ./fuzzers/<name>.
[project.scripts]
fusil-python-threaded = "fusil.python:main"
[tool.setuptools.dynamic]
version = {attr = "fusil.version.VERSION"}
readme = {file = ["README.rst", "ChangeLog"], content-type = "text/x-rst"}
# Auto-discover all fusil packages (this also picks up fusil.python.h5py, which
# the old hand-maintained setup.py package list omitted).
[tool.setuptools.packages.find]
where = ["."]
include = ["fusil*"]
namespaces = false
# Ship the LD_PRELOAD malloc-failure shim source (compiled on demand by --oom-foreign).
[tool.setuptools.package-data]
"fusil.python" = ["*.c"]
[tool.ruff]
line-length = 100
target-version = "py313"
# Legacy / parked code is not maintained to the lint/format standard; the golden/
# directory holds generated fuzzer output (snapshots) that must stay byte-for-byte as
# emitted -- linting/formatting it is meaningless and would break the snapshots.
extend-exclude = [
"fusil/notworking",
"fuzzers/notworking",
"tools/notworking",
"tests/python/golden",
]
[tool.ruff.lint]
# Default rule set (pyflakes F + a subset of pycodestyle E) plus import sorting (I).
select = ["E4", "E7", "E9", "F", "I"]
# fusil legitimately does conditional/late imports (optional-feature detection) and the
# tests set up sys.path before importing fusil, so E402 (import-not-at-top) is expected.
ignore = ["E402"]
[tool.ruff.lint.per-file-ignores]
# The code generators build target source as long string literals (E501) and accumulate
# scratch locals while emitting code (F841); the samples are deliberately-weird fixtures.
"fusil/python/write_python_code.py" = ["E501"]
"fusil/python/jit/*" = ["E501", "F841"]
"fusil/python/h5py/*" = ["E501", "F841"]
"fusil/python/samples/*" = ["E731", "E722"]
# These imports exist to assert the tricky sample objects are importable.
"tests/python/samples/test_tricky_objects.py" = ["F401"]