forked from AdaCore/e3-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
167 lines (146 loc) · 4.14 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "e3-core"
authors = [{name="AdaCore's IT Team"}]
dynamic = ["version"]
description = "E3 core. Tools and library for building and testing software"
readme = "README.md"
license = {text = "GPLv3"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Build Tools"
]
# Even if they are used by the pytest driver, the pytest and coverage
# dependencies are not installed by default. This is on purpose to avoid
# importing test/coverage packages in a release install.
dependencies = [
"colorama",
"pyyaml",
"python-dateutil",
"requests",
"requests-cache",
"requests_toolbelt",
"tqdm",
"stevedore>1.20.0",
"setuptools",
"packaging",
"psutil; sys_platform=='win32'",
"psutil; sys_platform=='linux'",
"psutil; sys_platform=='linux2'",
"psutil; sys_platform=='darwin'",
"distro; sys_platform=='linux'",
"distro; sys_platform=='linux2'",
]
[project.urls]
Repository = "https://github.com/AdaCore/e3-core"
[project.optional-dependencies]
config = [
"tomlkit",
# There are some backward incompatible checks in typeguard 3.x
"typeguard<3.0.0"
]
test = [
"coverage",
"mock",
"requests-mock",
"pytest",
"pytest-html",
"pytest-socket",
"ansi2html",
"httpretty",
"ptyprocess; sys_platform!='win32'",
"requests-mock"
]
check = [
"mypy==1.8.0",
"pytest", # for the pytest plugin
"bandit",
"pip-audit",
"types-colorama",
"types-mock",
"types-psutil",
"types-python-dateutil",
"types-PyYAML",
"types-requests",
"types-setuptools",
]
[project.scripts]
e3 = "e3.sys:main"
e3-sandbox = "e3.anod.sandbox.main:main"
e3-pypi-closure = "e3.python.pypiscript:main"
[project.entry-points."e3.anod.sandbox.sandbox_action"]
exec = "e3.anod.sandbox.action:SandBoxExec"
create = "e3.anod.sandbox.action:SandBoxCreate"
show-config = "e3.anod.sandbox.action:SandBoxShowConfiguration"
migrate = "e3.anod.sandbox.migrate:SandBoxMigrate"
[project.entry-points."e3.event.handler"]
smtp = "e3.event.handler.smtp:SMTPHandler"
logging = "e3.event.handler.logging:LoggingHandler"
file = "e3.event.handler.file:FileHandler"
s3 = "e3.event.handler.s3:S3Handler"
[project.entry-points."e3.store"]
http-simple-store = "e3.store.backends.http_simple_store:HTTPSimpleStore"
[project.entry-points."e3.store.cache.backend"]
file-cache = "e3.store.cache.backends.filecache:FileCache"
[project.entry-points."sandbox_scripts"]
anod = "e3.anod.sandbox.scripts:anod"
[project.entry-points."pytest11"]
pytest = "e3.pytest"
[tool.setuptools.dynamic]
version = {file = "VERSION"}
[tool.coverage.report]
fail_under = 90
[tool.coverage.run]
branch = true
omit = [
"*mypy.py"
]
[tool.coverage.html]
title = "e3 coverage report"
[tool.pytest.ini_options]
addopts = "--failed-first --disable-socket --e3"
[tool.mypy]
# Ensure mypy works with namespace in which there is no toplevel
# __init__.py. Explicit_package_bases means that that mypy_path
# will define which directory is the toplevel directory of the
# namespace.
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true
warn_redundant_casts = true
# do not warn when there are unused ignores, it is currently too difficult
# to have this setting working and mypy running on Linux, macOS, and Windows
#warn_unused_ignores = True
warn_unused_configs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
warn_unreachable = true
disallow_incomplete_defs = true
disallow_any_unimported = true
disallow_subclassing_any = true
no_implicit_optional = true
[[tool.mypy.overrides]]
module = [
"coverage.*",
"ld.*",
"requests_toolbelt.*",
"stevedore.*",
"tqdm.*"
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"tests.tests_e3.*",
"e3.anod.driver.*",
"e3.os.windows.native_api.*",
"e3.yaml.*"
]
disallow_untyped_defs = false