-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (76 loc) · 2.49 KB
/
pyproject.toml
File metadata and controls
86 lines (76 loc) · 2.49 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
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "drunc"
description = "A flexible run control infrastructure for a distributed DAQ system"
version = "1.1.4"
readme = "docs/README.md"
requires-python = ">=3.10"
dependencies = [
"click",
"click-shell",
"protobuf",
"types-protobuf",
"grpcio",
"grpcio-status",
"grpcio-tools",
"types-grpcio",
"gunicorn",
"kafka-python",
"nest-asyncio",
"rich",
"requests",
"Flask",
"Flask-RESTful",
"sh",
"kubernetes",
"pytz",
"psutil",
"paramiko"
]
[project.optional-dependencies]
prod = ["paramiko[gssapi]"]
dev = ["ruff", "pre-commit", "pytest", "pytest-cov", "grpcio-testing", "grpcio==1.75", "grpcio-tools==1.75", "grpcio-status==1.75"]
test = ["pytest", "pytest-cov", "grpcio-testing", "grpcio==1.75", "grpcio-tools==1.75", "grpcio-status==1.75"]
[project.scripts]
fake_daq_application = "drunc.apps.fake_daqapp_rest:main"
drunc-controller = "drunc.apps.controller:main"
drunc-controller-shell = "drunc.apps.controller_shell:main"
drunc-process-manager = "drunc.apps.pm:main"
drunc-process-manager-shell = "drunc.apps.pm_shell:main"
drunc-session-manager = "drunc.apps.session_manager:main"
drunc-unified-shell = "drunc.apps.unified_shell:main"
drunc-fsm-tests = "drunc.tests.fsm:main"
application-registry-service = "drunc.apps.app_connectivity_server:main"
drunc-ssh-doctor = "drunc.apps.ssh_doctor:main"
drunc-setup-ssh-config = "drunc.apps.ssh_configurator:main"
drunc-check-np0x-cluster = "drunc.apps.check_np0x_cluster:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"drunc.data.process_manager" = ["*.json"]
"drunc.data.process_manager.schema" = ["*.json"]
[tool.pytest.ini_options]
markers = [
"grpc: marks tests for gRPC isolation (run with --test-grpc)",
"paramiko: marks tests for paramiko isolation (run with --test-paramiko)",
]
addopts = "-v --tb=short --cov=drunc --cov=src/drunc"
testpaths = ["tests"]
[tool.coverage.run]
source = ["drunc"]
omit = ["tests/*"]
# * See https://docs.astral.sh/ruff/rules/ for details on Ruff's linting options
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # check for errors using PyFlakes
"I", # best practices for import calls
"UP", # suggestions for code modernization
"RUF", # build in Ruff warnings
"R", # refactoring suggestions
]
ignore = [
"E501", # Don't enforce line lengths within a linting context
]