This repository has been archived by the owner on Jan 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
116 lines (105 loc) · 2.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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "soluble"
version = "3.0.0"
description = "Set up a dissolvable, ephemeral salt minion using salt-ssh"
readme = "README.md"
url = "https://github.com/saltstack/soluble"
authors = [
{name = "Tyler Levy Conde", email = "tyler.levy-conde@broadcomm.com"},
]
classifiers = [
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
]
requires-python = ">=3.10"
dependencies = [
"pop>=27.1.0",
"distro",
"salt-ssh",
"importlib-metadata<5.0",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/soluble",
"src/soluble_master",
"src/soluble_minion",
]
[project.optional-dependencies]
test = [
"asynctest",
"asyncssh",
"cryptography>=39.0.1,<42.0.0",
"docker",
"mock",
"pidfile>=0.1.1",
"psutil>=5.6.3",
"pytest>=6.2.5",
"pytest-asyncio",
"pytest-httpserver",
"pytest-pop>=11.0.0",
"pytest-tempdir",
"salt",
]
master = [
"salt",
]
# Specify console scripts
[project.scripts]
soluble = "soluble.scripts:start"
[tool.pytest.ini_options]
testpaths = "tests"
addopts = "--tb native --full-trace --color=yes -vv -s"
asyncio_mode = "auto"
[tool.hatch.envs.lint]
detached = true
dependencies = [
"black>=23.1.0",
"mypy>=1.0.0",
"ruff>=0.0.243",
"hatchling",
]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:hatch_build_scripts tests}"
style = [
"black --check --diff {args:.}",
]
fix = [
"black {args:.}",
"style",
]
all = [
"style",
"typing",
]
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''