Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (92 loc) · 3.01 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (92 loc) · 3.01 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
105
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ciscoyoke"
version = "0.1.0a1"
description = "Rescue old Cisco hardware from the serial console: identify, preserve, recover and reset second-hand Catalysts and routers, with no management IP."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.11"
authors = [{ name = "Ryan Clinton" }]
keywords = ["cisco", "cisco-ios", "catalyst", "serial", "serial-console", "console", "rommon", "recovery", "password-recovery", "homelab", "ccna", "network-automation", "xmodem"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Networking",
"Topic :: System :: Recovery Tools",
]
dependencies = [
"pyserial>=3.5",
"platformdirs>=4.0",
"rich>=13.0",
]
# The embedded TFTP server is one image-delivery path among several. Without
# it, `--via xmodem` and an external server still work, so it is not a hard
# dependency and its absence is reported rather than fatal.
[project.optional-dependencies]
tftp = ["tftpy>=0.8"]
completion = ["argcomplete>=3.0"]
dev = [
"pytest>=8.0",
"hypothesis>=6.100",
"mypy>=1.10",
"ruff>=0.5",
"tftpy>=0.8",
]
[project.scripts]
ciscoyoke = "ciscoyoke.cli:main"
[project.urls]
Homepage = "https://github.com/Ryan-Clinton/ciscoyoke"
Specification = "https://github.com/Ryan-Clinton/ciscoyoke/blob/main/docs/SPEC.md"
Changelog = "https://github.com/Ryan-Clinton/ciscoyoke/blob/main/CHANGELOG.md"
Issues = "https://github.com/Ryan-Clinton/ciscoyoke/issues"
"Hardware reports" = "https://github.com/Ryan-Clinton/ciscoyoke/issues/new?template=hardware-report.yml"
[tool.hatch.build.targets.wheel]
packages = ["src/ciscoyoke"]
# An allowlist, not the default "everything not gitignored": a local build once
# swept an untracked personal PDF from docs/ into the source archive. Only what
# is named here can reach PyPI.
[tool.hatch.build.targets.sdist]
only-include = [
"src",
"tests",
"docs/ARCHITECTURE.md",
"docs/DEVELOPMENT.md",
"docs/HARDWARE-TESTING.md",
"docs/SAFETY.md",
"docs/SPEC.md",
"docs/THREAT-MODEL.md",
"README.md",
"CHANGELOG.md",
"CONTRIBUTING.md",
"SECURITY.md",
"LICENSE",
"pyproject.toml",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --strict-markers"
filterwarnings = ["error"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_unreachable = true
files = ["src/ciscoyoke"]
[[tool.mypy.overrides]]
module = ["argcomplete.*", "serial.*", "tftpy.*"]
ignore_missing_imports = true
[tool.ruff]
line-length = 90
target-version = "py311"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "C4", "SIM", "RUF"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]