-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
91 lines (77 loc) · 2.16 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
[build-system]
requires = [
"setuptools >=42",
"grpcio-tools >=1.42, <1.49",
"PyYaml >=5.3.1, <6.1",
"types-psutil ~=5.9",
]
build-backend = "setuptools.build_meta"
[project]
name = "cogment"
description = "Cogment python SDK"
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
dynamic = ["readme", "version"]
requires-python = ">=3.7, <3.11"
dependencies = [
"grpcio >=1.42, <1.49",
"grpcio-reflection >=1.42, <1.49",
"protobuf >=3.7, <4.0",
"prometheus-client >=0.8, <0.9",
"typing_extensions >=4.6.3, < 4.7.0",
]
[[project.authors]]
name = "Artificial Intelligence Redefined"
email = "[email protected]"
[project.urls]
Homepage = "https://cogment.ai"
repository = "https://github.com/cogment/cogment-py-sdk"
"Reference Documentation" = "https://cogment.ai/docs/reference/python"
[project.optional-dependencies]
generate = [
"PyYaml >=5.3.1, <6.1",
"psutil ~=5.9",
"grpcio-tools >=1.42, <1.49",
"click ~=8.0.3",
]
[tool.setuptools]
packages = ["cogment", "cogment.api"]
include-package-data = false
[tool.setuptools.package-data]
"*" = ["*.proto"]
[tool.setuptools.data-files]
"." = ["CHANGELOG.md"]
[tool.setuptools.dynamic.readme]
file = ["README.md", "CHANGELOG.md"]
content-type = "text/markdown"
[tool.setuptools.dynamic.version]
attr = "cogment.version.__version__"
[tool.pytest.ini_options]
log_level = "DEBUG"
log_cli = "True"
# The log format is setup to mirror cogment's
log_format = "%(asctime)s [%(levelname)s] %(message)s"
log_date_format = "%Y-%m-%dT%H:%M:%S%z"
addopts = "-rfs --capture=no --junit-xml=integration_test_report.xml"
junit_suite_name = "cogment_py_sdk_tests"
timeout = 15
[tool.mypy]
python_version = 3.10
warn_return_any = true
warn_unused_configs = true
strict_optional = false
exclude = ['tests', 'setup.py']
[[tool.mypy.overrides]]
module = ["grpc", "prometheus_client"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["cogment.api.*"]
ignore_errors = true
[tool.black]
line-length = 120
target-version = ["py39"]
color = true