-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (82 loc) · 2.85 KB
/
pyproject.toml
File metadata and controls
95 lines (82 loc) · 2.85 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
[project]
name = "micropython-networkutils"
description = "Micropython network interface utility package."
authors = [{name = "Andrew Ridyard", email = "andyrids.uncapped698@passmail.net"}]
maintainers = [{name = "Andrew Ridyard", email = "andyrids.uncapped698@passmail.net"}]
dynamic = ["version"]
license = {file = "LICENSE.md"}
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.10"
classifiers=[
# 3 - Alpha | 4 - Beta | 5 - Production/Stable
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: OS Independent",
# Python versions
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: MicroPython",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Embedded Systems",
]
keywords = ["micropython", "package", "microcontroller", "network"]
dependencies = []
[dependency-groups]
dev = [
"hatch>=1.14.1",
"micropython-rp2-rpi-pico-w-stubs>=1.25.0.post3",
"micropython-stdlib-stubs>=1.25.0",
"mpremote>=1.25.0",
"mpy-cross>=1.25.0,<1.26.0",
"pytest>=8.4.0",
"pytest-asyncio>=1.0.0",
"pytest-cov>=6.2.1",
"pytest-mock>=3.14.1",
"ruff>=0.11.5",
]
[project.urls]
Repository = "https://gitlab.com/micropython-iot-projects/libraries/micropython-networkutils"
Issues = "https://gitlab.com/micropython-iot-projects/libraries/micropython-networkutils/-/issues"
[tool.ruff]
exclude = ["lib", "env"]
indent-width = 4
line-length = 80
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
quote-style = "double"
[tool.ruff.lint]
select = [
"D1", # pydocstyle
"E", # pycodestyle
"ERA", # commented out code
"W", # pycodestyle
"C90", # McCabe complexity
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"**/{test_}*" = ["D102"] # Missing docstring in public method
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist.hooks.custom]
# custom build hook configuration
path = "scripts/build/compile.py"
# custom build hook options
only-include = ["networkutils/"]
compiler-options = ["-O2"]
# `packages` causes DIR collapse i.e. `networkutils/networkutils` -> `networkutils` and
# `only-include` set to `networkutils` in the extension packages' `pyproject.toml`
[tool.hatch.build.targets.sdist]
packages = ["networkutils/"]
[tool.hatch.build.targets.wheel]
packages = ["networkutils/"]
[tool.hatch.version]
source = "vcs"