Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
52 lines (46 loc) · 1.88 KB
/
Copy pathpyproject.toml
File metadata and controls
52 lines (46 loc) · 1.88 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
[project]
name = "stackward"
version = "0.1.1"
description = "Operations toolkit for Pulumi DIY-backend stacks: credential gate, profile-scoped secrets, git hooks."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "Apache-2.0" }
# Deliberately minimal, and it must stay that way.
#
# This tool runs inside a pre-commit hook, so every dependency is paid for on
# every commit. It also ships as a self-contained binary, so every dependency is
# something PyInstaller has to bundle correctly on every platform.
#
# In particular: never depend on the Pulumi SDK. `stackward` shells out to the
# `pulumi` binary, the same way it shells out to `git`. Importing the SDK would
# pull in grpcio and friends for no benefit.
dependencies = [
"pyyaml>=6.0",
# 44.0 is the floor because it is the first release shipping
# `cryptography.hazmat.primitives.kdf.argon2`, which `stackward.crypto`
# imports at module scope. Established by installing each release into a
# throwaway environment and importing it — 42.0.0, 43.0.0 and 43.0.3 all
# raise ModuleNotFoundError, 44.0.0 imports and derives — not from the
# changelog and not from memory. Below this floor the credential store does
# not degrade at runtime: the module does not load at all.
"cryptography>=44.0",
]
[project.scripts]
stackward = "stackward.cli:main"
[dependency-groups]
dev = [
"pytest>=8.0",
# Test-only. The model walker is exercised against synthetic models; the
# shipped binary neither imports nor bundles pydantic.
"pydantic>=2.0",
"pyinstaller>=6.22.2",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Explicit, rather than letting the backend guess. Auto-detection is how a
# stray top-level directory ends up shipped inside a wheel.
[tool.hatch.build.targets.wheel]
packages = ["src/stackward"]
[tool.pytest.ini_options]
testpaths = ["tests"]