-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (85 loc) · 2.38 KB
/
pyproject.toml
File metadata and controls
94 lines (85 loc) · 2.38 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
[build-system]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
[project]
name = "rust-python-pe-packer"
description = "Educational Rust/Python PE packer with Python bindings for malware detection training"
readme = "README.md"
requires-python = ">=3.8"
license = { text = """
PE-Packer is distributed under the Apache-2.0 License, with additional educational-use
clarifications described in LICENSE_APPENDIX.md. This software is intended solely for authorized
research and teaching on the PE file format and safe unpacking methods. Binary-packing functions
are disabled by default and require explicit user opt-in. The authors disclaim all liability for
misuse and direct users to review SECURITY.md for responsible-use policies.
""" }
authors = [
{name = "AnnMargaret Tutu", email = "annmargaret.mailforce@gmail.com"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Security",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"numpy>=1.20.0",
"typer>= 0.9.0",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-benchmark>=4.0",
"black>=23.0",
"mypy>=1.0",
"ruff>=0.1",
"maturin>=1.0,<2.0",
"twine>=4.0.0",
"build>=1.0.0",
"sphinx>=7.0.0",
"sphinx-rtd-theme>=1.0.0"
]
training = [
"scikit-learn>=1.0",
"pandas>=1.5",
"matplotlib>=3.5",
]
docs = [
"mkdocs>=1.5",
"mkdocs-material>=9.5",
]
[project.scripts]
pe-packer = "pe_packer.cli:main"
[tool.maturin]
features = ["python"]
module-name = "pe_packer._native"
python-source = "python"
packages = ["pe_packer"]
# Python tool configurations
[tool.black]
line-length = 88
target-version = ['py38']
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
warn_return_any = false
warn_unused_configs = true
explicit_package_bases = true
mypy_path = ["python"]
[tool.ruff]
target-version = "py311"
line-length = 88
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
]
ignore = ["E501", "E203", "W503"] # line length handled by black