-
Notifications
You must be signed in to change notification settings - Fork 26
/
pyproject.toml
182 lines (170 loc) · 4.8 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# Copyright 2021 Hathor Labs
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[tool.poetry]
name = "hathor"
version = "0.63.0"
description = "Hathor Network full-node"
authors = ["Hathor Team <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://hathor.network/"
repository = "https://github.com/HathorNetwork/hathor-core/"
# https://pypi.org/classifiers/
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License",
"Private :: Do Not Upload",
]
exclude = ["tests", "tests.*"]
[tool.poetry.scripts]
hathor-cli = 'hathor.cli.main:main'
[tool.poetry.dev-dependencies]
flake8 = "~7.1.1"
isort = {version = "~5.13.2", extras = ["colors"]}
mypy = {version = "^1.10.1", markers = "implementation_name == 'cpython'"}
mypy-zope = {version = "^1.0.5", markers = "implementation_name == 'cpython'"}
pytest = "~8.3.2"
pytest-cov = "~5.0.0"
flaky = "~3.8.1"
pytest-xdist = "~3.6.1"
yamllint = "~1.35.1"
# stubs:
types-requests = "=2.28.11.4"
types-pyopenssl = "=22.1.0.2"
types-pyyaml = "=6.0.12.9"
[tool.poetry.dependencies]
python = ">=3.10,<4"
twisted = "~24.7.0"
autobahn = "~24.4.2"
base58 = "~2.1.1"
colorama = "~0.4.6"
configargparse = "~1.5.3"
cryptography = "~42.0.5"
graphviz = "~0.20.1"
ipython = {version = "~8.7.0", extras = ["kernel"]}
mnemonic = "~0.20"
prometheus_client = "~0.15.0"
pyopenssl = "=24.2.1"
pycoin = "~0.92.20230326"
requests = "=2.32.3"
service_identity = "~21.1.0"
pexpect = "~4.8.0"
intervaltree = "~3.1.0"
structlog = "~22.3.0"
rocksdb = {git = "https://github.com/hathornetwork/python-rocksdb.git"}
aiohttp = "~3.10.3"
idna = "~3.4"
setproctitle = "^1.3.3"
sentry-sdk = {version = "^1.5.11", optional = true}
structlog-sentry = {version = "^1.4.0", optional = true}
hathorlib = "^0.6.1"
pydantic = "~1.10.17"
pyyaml = "^6.0.1"
typing-extensions = "~4.12.2"
python-healthchecklib = "^0.1.0"
[tool.poetry.extras]
sentry = ["sentry-sdk", "structlog-sentry"]
[tool.isort]
combine_as_imports = true
default_section = "THIRDPARTY"
include_trailing_comma = true
known_first_party = "hathor,tests"
line_length = 119
multi_line_output = 3
[tool.mypy]
pretty = true
disallow_incomplete_defs = true
no_implicit_optional = true
extra_checks = true
disallow_untyped_decorators = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
namespace_packages = true
show_error_codes = true
show_error_context = true
plugins = [
"pydantic.mypy",
"mypy_zope:plugin"
]
# these are modules which we don't have type stubs for
[[tool.mypy.overrides]]
module = [
'IPython',
'_hashlib',
'autobahn.*',
'colorama',
'configargparse',
'graphviz',
'intervaltree.*',
'prometheus_client',
'pudb.*',
'pycoin.*',
'pympler',
'rocksdb',
'sentry_sdk',
'setproctitle',
'sortedcontainers',
'structlog_sentry',
'structlog_sentry',
'psutil',
]
ignore_missing_imports = true
# This override enables stricter rules for some specific modules.
# Currently, we have only two options from strict-mode that are disabled, but we have to opt-in instead of opt-out
# because setting strict=true doesn't work for module-level settings.
# Reference: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
[[tool.mypy.overrides]]
module = [
"hathor.consensus.*",
"hathor.feature_activation.*",
"hathor.event.*",
"hathor.verification.*",
"tests.consensus.*",
"tests.crypto.*",
"tests.event.*",
"tests.execution_manager.*",
"tests.feature_activation.*",
"tests.p2p.*",
"tests.pubsub.*",
"tests.simulation.*",
"tests.unittest",
"tests.utils",
]
strict_equality = true
strict_concatenate = true
check_untyped_defs = true
disallow_any_generics = true
disallow_untyped_defs = true
no_implicit_reexport = true
warn_return_any = true
# disallow_subclassing_any = true
# disallow_untyped_calls = true
[tool.pydantic-mypy]
init_typed = true
init_forbid_extra = true
warn_untyped_fields = true
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
addopts = "-n auto"
markers = [
"slow",
]
[build-system]
requires = ["poetry-core >= 1.3.2", "cython < 0.30"]
build-backend = "poetry.core.masonry.api"