-
Notifications
You must be signed in to change notification settings - Fork 122
/
Copy pathpyproject.toml
98 lines (88 loc) · 3.35 KB
/
pyproject.toml
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
[build-system]
requires = [ "setuptools >= 66.0" ]
build-backend = "setuptools.build_meta"
[project]
name = "aiocoap"
description = "Python CoAP library"
readme = "README.rst"
authors = [
{ name = "Christian Amsüss", email = "[email protected]" },
{ name = "the aiocoap contributors" },
]
license = { text = "MIT" }
keywords = [ "coap", "asyncio", "iot" ]
classifiers= [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Internet",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Networking",
]
dynamic = [ "version" ]
# When changing this, also look into doc/faq.rst and README.rst
requires-python = ">=3.10"
[project.urls]
homepage = "https://christian.amsuess.com/tools/aiocoap/"
repository = "https://codeberg.org/aiocoap/aiocoap"
documentation = "https://aiocoap.readthedocs.org/"
changelog = "https://codeberg.org/aiocoap/aiocoap/src/branch/main/NEWS.rst"
[project.scripts]
aiocoap-client = "aiocoap.cli.client:sync_main"
aiocoap-proxy = "aiocoap.cli.proxy:sync_main"
aiocoap-rd = "aiocoap.cli.rd:sync_main"
aiocoap-fileserver = "aiocoap.cli.fileserver:FileServerProgram.sync_main"
aiocoap-keygen = "aiocoap.cli.keygen:main"
[project.optional-dependencies]
# Extra is still present for compatibility, but its dependency has been
# vendored in.
linkheader = []
# ge25519 is a workaround for
# <https://github.com/pyca/cryptography/issues/5557>; being pure python it's
# light enough to not warrant a dedicated group-oscore extra.
oscore = [ "cbor2", "cryptography (>= 2.5)", "filelock", "ge25519", "lakers-python == 0.4.1" ]
tinydtls = [ "DTLSSocket >= 0.1.18" ]
# technically websockets is not needed when running on pyodide, but that's hard
# to express here
ws = [ "websockets >= 13, < 14" ]
prettyprint = [ "cbor2", "pygments >= 2.1", "cbor-diag" ]
docs = [ "sphinx >= 5", "sphinx-argparse" ]
# manually kept up to date to include everything except docs
#
# when updating this, also check what is needed to build in .readthedocs.yaml and .woodpecker.yml
all = [
"cbor2", "cryptography (>= 2.5)", "filelock", "ge25519", "lakers-python == 0.4.1",
"DTLSSocket >= 0.1.18",
"websockets >= 13, < 14",
"cbor2", "pygments", "cbor-diag",
]
[tool.setuptools.dynamic]
version = { attr = "aiocoap.meta.version" }
[tool.setuptools.packages.find]
where = [ "." ]
# It's unclear why, but in some environments including aiocoap included also
# its submodules, in others it didn't. Listing both is safe for both.
include = [ "aiocoap", "aiocoap.*" ]
[[tool.mypy.overrides]]
module = [
# Tracked in https://github.com/chrysn/cbor-diag-py/issues/2
"cbor_diag",
# Tracked in https://github.com/openwsn-berkeley/lakers/issues/282
"lakers",
# Typing checks currently not tracked upstream
"ge25519",
"fe25519",
"DTLSSocket",
# Not regularly available on development machines anyway
"js",
"pyodide.*",
]
# Required because not only will many developers not have rare modules, they
# will even never all be together at the same time (pyodide only exists in the
# browser, DTLSSocket might not even build there)
ignore_missing_imports = true