-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (56 loc) · 1.96 KB
/
Copy pathpyproject.toml
File metadata and controls
66 lines (56 loc) · 1.96 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
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "unifi-map"
dynamic = ["version"]
description = "Export a UniFi network topology as zoomable vector diagrams and editable draw.io files"
license = "AGPL-3.0-only"
license-files = ["LICENSE"]
requires-python = ">=3.11"
dependencies = [
"requests>=2.31",
"Pillow>=10.0",
]
[project.optional-dependencies]
# Rasterises user-supplied SVG override artwork so it reaches every output
# format. Optional because it is a minority case and pulls in a C library:
# without it, SVG still works in the svg and drawio outputs and the tool says
# so rather than dropping it silently.
svg = [
"CairoSVG>=2.7",
]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.5",
# In dev so the rasterising path is actually exercised by the suite rather
# than only the fallback.
"CairoSVG>=2.7",
]
[project.scripts]
unifi-map = "unifi_map.cli:main"
[tool.setuptools.packages.find]
where = ["src"]
# So `man unifi-map` works after a wheel install, not just from a clone. Lands
# at $PREFIX/share/man/man1, which both macOS's and GNU man-db's `man` search
# automatically once the venv is on PATH -- no MANPATH configuration needed.
# Verified through a real wheel install and through a wheel built from the
# sdist, not assumed.
[tool.setuptools.data-files]
"share/man/man1" = ["unifi-map.1"]
# One place defines the version. Duplicating it here is how the two drift.
[tool.setuptools.dynamic]
version = {attr = "unifi_map.__version__"}
[tool.ruff]
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "RUF"]
[tool.ruff.lint.per-file-ignores]
# A vendored minified upstream build, kept byte-identical to what
# `dist/panzoom.min.js` actually ships at the pinned commit. Reflowing it to
# fit the line length would mean it is no longer that file.
"src/unifi_map/vendor_panzoom.py" = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]