forked from agronholm/mqttproto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
126 lines (111 loc) · 3.16 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[build-system]
requires = [
"setuptools >= 64",
"setuptools_scm >= 6.4"
]
build-backend = "setuptools.build_meta"
[project]
name = "mqttproto"
description = "Sans-io MQTT v5 client/broker with an AnyIO based I/O implementation"
readme = "README.rst"
authors = [{name = "Alex Grönholm", email = "[email protected]"}]
license = {text = "MIT"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Typing :: Typed",
"Framework :: AnyIO",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">= 3.9"
dependencies = [
"anyio ~= 4.4",
"attrs >= 23.2.0",
"stamina >= 24.2.0",
"typing-extensions >= 4.0; python_version < '3.11'",
]
dynamic = [ "version" ]
[project.urls]
Documentation = "https://mqttproto.readthedocs.io/en/latest/"
"Source code" = "https://github.com/agronholm/mqttproto"
"Issue tracker" = "https://github.com/agronholm/mqttproto/issues"
[project.optional-dependencies]
websockets = [
"httpx-ws >= 0.6.0"
]
test = [
"mqttproto[websockets]",
"anyio[trio]",
"coverage >= 7",
"pytest >= 8.0",
]
doc = [
"enum_tools[sphinx] >= 0.12.0",
"mqttproto[websockets]",
"packaging",
"sphinx_rtd_theme >= 2.0.0",
"sphinx-autodoc-typehints >= 2.1.1",
"sphinx-tabs >= 3.3.1",
]
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "dirty-tag"
[tool.ruff.lint]
extend-select = [
"ASYNC", # flake8-async
"B0", # flake8-bugbear
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"RUF100", # unused noqa (yesqa)
"T201", # print
"UP", # pyupgrade
"W", # pycodestyle warnings
]
ignore = [
"B011", # assert False
]
[tool.ruff.lint.extend-per-file-ignores]
"docs/snippets/**.py" = ["T201", "F841"]
[tool.ruff.lint.isort]
"required-imports" = ["from __future__ import annotations"]
[tool.mypy]
python_version = "3.8"
strict = true
[tool.pytest.ini_options]
addopts = "-rsx --tb=short"
testpaths = "tests"
filterwarnings = "always"
markers = [
"network: marks tests as requiring network interfaces",
]
[tool.coverage.run]
source = ["mqttproto"]
relative_files = true
[tool.coverage.report]
show_missing = true
[tool.tox]
env_list = ["pre-commit", "py39", "py310", "py311", "py312", "py313", "pypy3"]
skip_missing_interpreters = true
[tool.tox.env_run_base]
commands = [["pytest", { replace = "posargs", extend = true }]]
depends = ["pre-commit"]
extras = ["test"]
package = "editable"
[tool.tox.env.pre-commit]
commands = [["pre-commit", "run", "--all-files", "--show-diff-on-failure"]]
depends = []
allowlist_externals = ["pre-commit"]
package = "skip"
[tool.tox.env.docs]
commands = [["sphinx-build", "-W", "docs", "build/sphinx"]]
depends = []
extras = ["doc"]