forked from tier4/otaclient-iot-logging-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
113 lines (96 loc) · 2.7 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
[build-system]
requires = ["hatchling>=1.20.0", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "otaclient_iot_logging_server"
readme = "README.md"
requires-python = ">=3.8"
license = { text = "LICENSE.md" }
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: Unix",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"aiohttp>=3.9.2, <3.10.0",
"boto3==1.34.35",
"botocore==1.34.35",
"pydantic==2.6.0",
"pydantic-settings==2.1.0",
"pycurl==7.45.1",
"pyyaml==6.0.1",
"typing_extensions>=4.0",
]
dynamic = ["version"]
description = "A logging server that uploads logs sent from otaclient to AWS cloudwatch."
[project.optional-dependencies]
dev = [
"black==24.1.1",
"coverage==7.4.1",
"flake8==6.1.0",
"isort==5.13.2",
"pytest==7.4.4",
"pytest-asyncio==0.23.4",
"pytest-mock==3.12.0",
]
[project.scripts]
iot_logging_server = "otaclient_iot_logging_server.__main__:main"
[project.urls]
Source = "https://github.com/tier4/otaclient-iot-logging-server"
[tool.black]
line-length = 88
target-version = ['py311']
[tool.coverage.run]
branch = false
include = ["otaclient_iot_logging_server/**/*.py"]
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if cfg.DEBUG_MODE",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
show_missing = true
skip_covered = true
skip_empty = true
[tool.hatch.envs.dev]
features = ["dev"]
[tool.hatch.envs.dev.env-vars]
AWS_PROFILE_INFO = "tests/data/aws_profile_info.yaml"
GREENGRASS_V1_CONFIG = "tests/data/gg_v1_cfg.json"
GREENGRASS_V2_CONFIG = "tests/data/gg_v2_cfg.yaml"
SERVER_LOGGING_LEVEL = "10" # debug
UPLOAD_INTERVAL = "6"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "otaclient_iot_logging_server/_version.py"
[tool.hatch.build.targets.sdist]
exclude = ["/.github", "/docs"]
[tool.hatch.build.targets.wheel]
only-include = ["otaclient_iot_logging_server"]
sources = ["otaclient_iot_logging_server"]
[tool.isort]
atomic = true
profile = "black"
line_length = 88
lines_before_imports = 2
skip_gitignore = true
known_first_party = ["otaclient_iot_logging_server"]
[tool.pyright]
exclude = ["**/__pycache__"]
pythonVersion = "3.11"
[tool.pytest.ini_options]
asyncio_mode = "auto"
log_auto_indent = true
log_format = "%(asctime)s %(levelname)s %(filename)s %(funcName)s,%(lineno)d %(message)s"
log_cli = true
log_cli_level = "INFO"
pythonpath = ["otaclient_iot_logging_server"]
testpaths = ["./tests"]