-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
114 lines (96 loc) · 3.19 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
[project]
authors = [
{name = "Michael Sherman", email = "shermanm@uchicago.edu"},
{name = "Jason Anderson", email = "jasonanderson@uchicago.edu"},
]
description = "Chameleon hardware registration and enrollment service"
name = "doni"
version = "4.0.0"
# include = ["etc/doni"]
# exclude = ["doni/tests"]
# All dependencies should be at minimum the value of the upper constraint
# for the targeted OpenStack release. These values are for the Xena cycle:
# https://github.com/openstack/requirements/blob/stable/xena/upper-constraints.txt
dependencies = [
"Flask",
"importlib-metadata",
"oslo.config",
"oslo.db",
"stevedore",
"oslo.log",
"osprofiler",
"oslo.service",
"oslo.messaging",
"oslo.versionedobjects",
"alembic",
"oslo.middleware",
"keystonemiddleware",
"oslo.policy",
"jsonschema[format]",
"jsonpatch",
"oslo.reports",
"futurist",
"oslo.rootwrap",
"balena-sdk ~= 12.0",
"kubernetes ~=18.20.0",
"twisted ~=22.0,<22.8" # twisted greater than 22.4 requires pyOpenSSL > 21
]
[project.optional-dependencies]
balena = ["balena-sdk ~= 12.0"]
dev = [
"black <= 23.0 ",
"flake8",
"pytest",
"oslotest",
"pytest-mock",
"isort",
"pydocstyle",
"gevent"
]
[project.scripts]
doni-api = "doni.cmd.api:main"
doni-dbsync = "doni.cmd.dbsync:main"
doni-import = "doni.cmd.importer:main"
doni-rootwrap = "oslo_rootwrap.cmd:main"
doni-worker = "doni.cmd.worker:main"
[project.entry-points."doni.database.migration_backend"]
sqlalchemy = "doni.db.migration"
[project.entry-points."doni.driver.hardware_type"]
fake-hardware = "doni.driver.hardware_type.fake:Fake"
baremetal = "doni.driver.hardware_type.baremetal:Baremetal"
"device.balena" = "doni.driver.hardware_type.device:BalenaDevice"
[project.entry-points."doni.driver.worker_type"]
balena = "doni.driver.worker.balena:BalenaWorker"
"blazar.physical_host" = "doni.driver.worker.blazar.physical_host:BlazarPhysicalHostWorker"
"blazar.device" = "doni.driver.worker.blazar.device:BlazarDeviceWorker"
fake-worker = "doni.driver.worker.fake:FakeWorker"
ironic = "doni.driver.worker.ironic:IronicWorker"
tunelo = "doni.driver.worker.tunelo:TuneloWorker"
k8s = "doni.driver.worker.k8s:K8sWorker"
[project.entry-points."oslo.config.opts"]
doni = "doni.conf.opts:list_opts"
[project.entry-points."oslo.config.opts.defaults"]
doni = "doni.conf.opts:update_opt_defaults"
[project.entry-points."oslo.policy.enforcer"]
doni = "doni.common.policy:get_oslo_policy_enforcer"
[project.entry-points."oslo.policy.policies"]
"doni.api" = "doni.common.policy:list_policies"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["doni*"]
[tool.setuptools.package-data]
"*" = ["*.ini"]
[tool.black]
# Set line length explicitly.
# See https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length for more details
line-length = 88
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
filterwarnings = ["ignore::DeprecationWarning"]
[tool.isort]
profile = "black"