-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (51 loc) · 1.73 KB
/
Copy pathpyproject.toml
File metadata and controls
57 lines (51 loc) · 1.73 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
[project]
name = "nethernet"
version = "0.0.1"
description = "Cleanroom Python implementation of Minecraft Bedrock's NetherNet P2P/LAN transport, built on aiortc."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
license-files = ["LICENSE"]
keywords = ["nethernet", "minecraft", "bedrock", "webrtc", "p2p", "lan", "aiortc"]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Framework :: AsyncIO",
"Programming Language :: Python :: 3",
"Topic :: Games/Entertainment",
"Topic :: System :: Networking",
]
dependencies = [
# WebRTC engine (ICE + DTLS + SCTP data channels). See SPEC.md s6.
"aiortc>=1.9",
# AES-256-ECB + PKCS7 for the LAN discovery envelope. See SPEC.md s8.
"cryptography>=42",
]
[project.optional-dependencies]
# HTTP signaling channel (Onboarding Guide s4): serve_http() / connect_http().
http = ["aiohttp>=3.9"]
dev = [
"aiohttp>=3.9",
"pytest>=8",
"pytest-asyncio>=0.24",
"pytest-xdist>=3",
"ruff>=0.6",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/nethernet"]
[tool.pytest.ini_options]
# aiortc is asyncio-based; auto mode lets async test functions run without per-test markers.
asyncio_mode = "auto"
testpaths = ["tests"]
# Run in parallel (pytest-xdist): the aiortc handshake tests are I/O-bound, so this is a big win.
addopts = "-n auto"
markers = ["conformance: SPEC.md s11 conformance / differential byte-vector fixtures"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
# E/W pycodestyle, F pyflakes, I import sorting, N pep8-naming, UP pyupgrade, B bugbear.
select = ["E", "W", "F", "I", "N", "UP", "B"]