Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (95 loc) · 3.19 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (95 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
93
94
95
96
97
98
99
100
101
102
103
104
[build-system]
# 77.0.0 is the floor for `license` as an SPDX string: the old TOML-table
# form is deprecated and stops being supported on 2027-02-18.
requires = ["setuptools>=77.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "network-sandbox-engine"
version = "2.9.0"
description = "Headless Python engine for isolated network namespace testing and PCAP assertions."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{name = "onyks"},
]
keywords = ["networking", "namespace", "testing", "nftables", "pcap", "scapy"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Networking",
"Topic :: Software Development :: Testing",
]
dependencies = [
"scapy>=2.5.0",
"pydantic>=2.0.0",
# Imported directly (typing_extensions.Self), not only through pydantic.
"typing_extensions>=4.0.0",
]
[project.optional-dependencies]
cli = [
"pyyaml>=6.0",
]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
# The suite exercises the YAML runner and validates the YAML in the docs, so
# the parser is a dev dependency, not just a `[cli]` extra. Without it the
# runner and docs tests fail to import rather than skipping.
"pyyaml>=6.0",
# The coverage ratchet in `make test-cov` is a gate, so the tool that
# enforces it is a declared dependency and not something you happen to have.
"pytest-cov>=5.0.0",
"ruff",
"import-linter",
"mypy",
"mkdocs>=1.5.0",
"mkdocs-material>=9.5.0",
"mkdocstrings[python]>=0.24.0",
# Release toolchain. These back `make build`, `make audit` and
# `make publish{,-test}`, so they are declared rather than assumed present.
"build>=1.0.0",
"twine>=7.0.0",
"pip-audit>=2.7.0",
]
[project.scripts]
nse-runner = "nse.cli.runner:main"
[project.urls]
Homepage = "https://github.com/onyks-os/NetworkSandboxEngine"
Repository = "https://github.com/onyks-os/NetworkSandboxEngine"
Issues = "https://github.com/onyks-os/NetworkSandboxEngine/issues"
[tool.setuptools.packages.find]
include = ["nse", "nse.*"] # Packages ONLY the engine; tests/ are excluded.
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "strict"
markers = [
"integration: integration tests requiring root and real network namespaces",
]
# Fail on an unregistered marker: a typo in a marker name silently deselects
# the test it was meant to tag.
addopts = "--strict-markers"
filterwarnings = [
"ignore:.*Diffie-Hellman over finite fields.*:Warning",
"ignore:.*Diffie-Hellman over finite fields.*:DeprecationWarning",
"ignore::UserWarning:scapy.*",
]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "C4", "RUF", "PT"]
ignore = ["E501", "PT011"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
disallow_untyped_defs = true
ignore_missing_imports = true