-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathpyproject.toml
140 lines (126 loc) · 3.59 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
[build-system]
requires = [
"setuptools >= 65.3.0, < 66",
"setuptools_scm[toml] >= 7.0.5, < 8",
"wheel",
]
build-backend = "setuptools.build_meta"
[project]
name = "frequenz-sdk"
description = "Frequenz Python SDK"
readme = "README.md"
license = { text = "MIT" }
keywords = ["frequenz", "sdk", "microgrid", "actor"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries",
]
requires-python = ">= 3.11, < 4"
dependencies = [
"frequenz-api-microgrid >= 0.11.0, < 0.12.0",
"frequenz-channels >= 0.14.0, < 0.15.0",
"google-api-python-client >= 2.71, < 3",
"grpcio >= 1.54.2, < 2",
"grpcio-tools >= 1.54.2, < 2",
"networkx >= 2.8, < 4",
"numpy >= 1.24.2, < 2",
"protobuf >= 4.21.6, < 5",
"pydantic >= 1.9",
"toml >= 0.10",
"tqdm >= 4.38.0, < 5",
"typing_extensions >= 4.4.0, < 5",
"watchfiles >= 0.15.0",
]
dynamic = ["version"]
[[project.authors]]
name = "Frequenz Energy-as-a-Service GmbH"
email = "[email protected]"
[project.optional-dependencies]
docs-gen = [
"mike == 1.1.2",
"mkdocs-gen-files == 0.5.0",
"mkdocs-literate-nav == 0.6.0",
"mkdocs-material == 9.1.14",
"mkdocs-section-index == 0.3.5",
"mkdocstrings[python] == 0.22.0",
]
docs-lint = [
"pydocstyle == 6.3.0",
"darglint == 1.8.1",
"tomli == 2.0.1", # Needed by pydocstyle to read pyproject.toml
]
format = ["black == 23.3.0", "isort == 5.12.0"]
nox = ["nox == 2023.4.22", "toml == 0.10.2"]
pytest = [
"pytest == 7.3.1",
"pytest-cov == 4.0.0",
"pytest-mock == 3.10.0",
"pytest-asyncio == 0.21.0",
"time-machine == 2.9.0",
"async-solipsism == 0.5",
# For checking docstring code examples
"sybil == 5.0.2",
"pylint == 2.17.4",
]
mypy = [
"mypy == 1.3.0",
"grpc-stubs == 1.24.12", # This dependency introduces breaking changes in patch releases
# For checking the noxfile, docs/ script, and tests
"frequenz-sdk[docs-gen,nox,pytest]",
]
pylint = [
"pylint == 2.17.4",
# For checking the noxfile, docs/ script, and tests
"frequenz-sdk[docs-gen,nox,pytest]",
]
dev = ["frequenz-sdk[docs-gen,docs-lint,format,nox,pytest,mypy,pylint]"]
[project.urls]
Changelog = "https://github.com/frequenz-floss/frequenz-sdk-python/releases"
Repository = "https://github.com/frequenz-floss/frequenz-sdk-python"
Issues = "https://github.com/frequenz-floss/frequenz-sdk-python/issues"
Support = "https://github.com/frequenz-floss/frequenz-sdk-python/discussions/categories/support"
[tool.setuptools]
include-package-data = true
[tool.setuptools_scm]
version_scheme = "post-release"
[tool.black]
line-length = 88
target-version = ['py38']
include = '\.pyi?$'
[tool.pylint.similarities]
ignore-comments = ['yes']
ignore-docstrings = ['yes']
ignore-imports = ['no']
min-similarity-lines = 40
[tool.pylint.messages_control]
disable = [
"too-few-public-methods",
# disabled because it conflicts with isort
"wrong-import-order",
"ungrouped-imports",
]
[tool.pylint.design]
max-attributes = 12
[tool.isort]
profile = "black"
line_length = 88
src_paths = ["src", "examples", "tests"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
required_plugins = ["pytest-asyncio", "pytest-mock"]
[[tool.mypy.overrides]]
module = [
"grpc.aio",
"grpc.aio.*",
# There is a stubs package available, but it's not working:
# https://github.com/eggplants/networkx-stubs/issues/1
"networkx",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["async_solipsism", "async_solipsism.*"]
ignore_missing_imports = true