forked from frequenz-floss/frequenz-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
152 lines (139 loc) · 4.23 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
# License: MIT
# Copyright © 2022 Frequenz Energy-as-a-Service GmbH
[build-system]
requires = [
"setuptools == 67.7.2",
"setuptools_scm[toml] == 7.1.0",
"frequenz-repo-config[lib] == 0.4.0",
]
build-backend = "setuptools.build_meta"
[project]
name = "frequenz-sdk"
description = "A development kit to interact with the Frequenz development platform"
readme = "README.md"
license = { text = "MIT" }
keywords = ["frequenz", "python", "lib", "library", "sdk", "microgrid"]
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",
"Typing :: Typed",
]
requires-python = ">= 3.11, < 4"
dependencies = [
"frequenz-api-microgrid >= 0.15.1, < 0.16.0",
# Make sure to update the mkdocs.yml file when
# changing the version
# (plugins.mkdocstrings.handlers.python.import)
"frequenz-channels >= 0.16.0, < 0.17.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, < 2",
"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]
dev-docstrings = [
"pydocstyle == 6.3.0",
"darglint == 1.8.1",
"tomli == 2.0.1", # Needed by pydocstyle to read pyproject.toml
]
dev-examples = ["polars == 0.18.13"]
dev-formatting = ["black == 23.7.0", "isort == 5.12.0"]
dev-mkdocs = [
"mike == 1.1.2",
"mkdocs-gen-files == 0.5.0",
"mkdocs-literate-nav == 0.6.0",
"mkdocs-material == 9.2.1",
"mkdocs-section-index == 0.3.5",
"mkdocstrings[python] == 0.22.0",
"frequenz-repo-config[lib] == 0.4.0",
]
dev-mypy = [
"mypy == 1.5.1",
"grpc-stubs == 1.24.12", # This dependency introduces breaking changes in patch releases
"types-protobuf == 4.24.0.1",
# For checking the noxfile, docs/ script, and tests
"frequenz-sdk[dev-mkdocs,dev-noxfile,dev-pytest]",
]
dev-noxfile = ["nox == 2023.4.22", "frequenz-repo-config[lib] == 0.4.0"]
dev-pylint = [
"pylint == 2.17.5",
# For checking the noxfile, docs/ script, and tests
"frequenz-sdk[dev-mkdocs,dev-noxfile,dev-pytest]",
]
dev-pytest = [
"pytest == 7.4.0",
"pytest-mock == 3.11.1",
"pytest-asyncio == 0.21.1",
"time-machine == 2.12.0",
"async-solipsism == 0.5",
# For checking docstring code examples
"sybil == 5.0.3",
"pylint == 2.17.5",
"frequenz-sdk[dev-examples]",
]
dev = [
"frequenz-sdk[dev-mkdocs,dev-docstrings,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",
]
[project.urls]
Changelog = "https://github.com/frequenz-floss/frequenz-sdk-python/releases"
Issues = "https://github.com/frequenz-floss/frequenz-sdk-python/issues"
Repository = "https://github.com/frequenz-floss/frequenz-sdk-python"
Support = "https://github.com/frequenz-floss/frequenz-sdk-python/discussions/categories/support"
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
[tool.isort]
profile = "black"
line_length = 88
src_paths = ["benchmarks", "examples", "src", "tests"]
[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",
# pylint's unsubscriptable check is buggy and is not needed because
# it is a type-check, for which we already have mypy.
"unsubscriptable-object",
]
[tool.pylint.design]
max-attributes = 12
[tool.pytest.ini_options]
testpaths = ["tests", "src"]
asyncio_mode = "auto"
required_plugins = ["pytest-asyncio", "pytest-mock"]
[[tool.mypy.overrides]]
module = [
"async_solipsism",
"async_solipsism.*",
"grpc.aio",
"grpc.aio.*",
# There is a stubs package available, but it's not working:
# https://github.com/eggplants/networkx-stubs/issues/1
"networkx",
"sybil",
"sybil.*",
]
ignore_missing_imports = true
[tool.setuptools_scm]
version_scheme = "post-release"