-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (91 loc) · 2.5 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (91 loc) · 2.5 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
# SPDX-FileCopyrightText: 2022-2023 Carnegie Mellon University
# SPDX-License-Identifier: 0BSD
[tool.poetry]
name = "wireguard4netns"
version = "0.1.6.post.dev0"
description = "WireGuard VPN networking for unprivileged network namespaces"
authors = [
"Carnegie Mellon University <satya+group@cs.cmu.edu>",
"Jan Harkes <jaharkes@cs.cmu.edu>",
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/cmusatyalab/wireguard4netns"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
]
packages = [
{include = "wireguard4netns", from = "src"},
]
include = [
{path = "src/wireguard4netns/wireguard-go", format = "wheel"},
{path = "LICENSES", format = "sdist"},
{path = "poetry.lock", format = "sdist"},
{path = "wireguard-go", format = "sdist"},
{path = "wireguard-go.patch", format = "sdist"},
{path = "tasks.py", format = "sdist"},
{path = "tests", format = "sdist"},
]
exclude = [
"wireguard-go/.git",
]
[tool.poetry.scripts]
wireguard4netns = "wireguard4netns.cli:main"
[tool.poetry.dependencies]
python = "^3.7"
attrs = ">=22.1.0"
importlib-resources = "^5.0"
pyroute2 = "^0.7.3"
typing-extensions = {version = "^4.4.0", python = "<3.8"}
wireguard-tools = "^0.4.0"
[tool.poetry.group.dev.dependencies]
black = "^22.10.0"
poethepoet = "^0.16.5"
pre-commit = { version = "^3.5.0", python = "^3.8.1" }
tbump = "^6.9.0"
[tool.poetry.group.test.dependencies]
mypy = "^0.991"
pytest = "^6.2.5"
pytest-mock = "^3.6.1"
[tool.poetry.build]
generate-setup-file = false
script = "build.py"
[tool.black]
target-version = ["py37"]
[tool.isort]
py_version = 37
profile = "black"
[tool.mypy]
# Ensure full coverage
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
check_untyped_defs = true
# Restrict dynamic typing
disallow_any_generics = true
disallow_subclassing_any = true
warn_return_any = true
# Know exactly what you're doing
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
warn_unreachable = true
show_error_codes = true
# Explicit is better than implicit
no_implicit_optional = true
files = ["src", "tests"]
[[tool.mypy.overrides]]
# pytest decorators are not typed
module = "tests.*"
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = "pyroute2.*"
ignore_missing_imports = true
[tool.poe]
include = "tasks.toml"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"