-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
92 lines (82 loc) · 1.81 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
[tool.poetry]
name = "ops2deb"
version = "0"
description = "Build debian packages"
repository = "https://github.com/upciti/ops2deb"
license = "MIT"
keywords=["Debian", "DevOps", "Automation", "Kubernetes", "APT"]
authors = ["Upciti <[email protected]>"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Code Generators",
"Typing :: Typed",
]
readme = "README.md"
packages = [
{include = "ops2deb", from = "src"},
]
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
httpx = ">=0.20.0"
semver = "3.0.2"
"ruamel.yaml" = "0.18.5"
python-debian = ">=0.1.42"
PyYAML = "^6"
typer = ">=0.6.1"
aiofiles = ">=0.1.9"
Jinja2 = "^3"
pydantic = "^2"
pyinstaller = { version = "6.3.0", optional = true }
unix-ar = "^0.2.1"
rich = "*"
dirsync = "^2.2.5"
zstandard = "*"
[tool.poetry.extras]
pyinstaller = ["pyinstaller"]
[tool.poetry.scripts]
ops2deb = "ops2deb.cli:main"
[tool.poetry.dev-dependencies]
pytest = "*"
mypy = "*"
taskipy = "*"
pytest-cov = "*"
safety = "*"
types-aiofiles = "*"
types-PyYAML = "*"
pytest-asyncio = ">=0.18.0"
fastapi = ">= 0.100"
ruff = "*"
[tool.taskipy.tasks]
check = """
ruff src tests --fix\
&& ruff format src tests\
&& mypy src\
&& pytest --cov src tests\
"""
single_binary_application = """
pyinstaller --onefile src/ops2deb/__main__.py --name ops2deb -s
"""
[tool.mypy]
files = "src"
strict = true
plugins = ["pydantic.mypy"]
disallow_untyped_calls = false
[[tool.mypy.overrides]]
module = ['unix_ar', "dirsync"]
ignore_missing_imports = true
[build-system]
requires = ["poetry>=1.0.2"]
build-backend = "poetry.masonry.api"
[tool.ruff]
line-length = 90
select = [
"E",
"F",
"W",
"I001",
]
src = ["src", "tests"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"src/ops2deb/templates.py" = ["E501", "W191"]