-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (116 loc) · 3.1 KB
/
pyproject.toml
File metadata and controls
129 lines (116 loc) · 3.1 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "tronpy"
dynamic = ["version"]
requires-python = ">=3.9"
description = "TRON Python client library"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "andelf", email = "andelf@gmail.com" },
{ name = "MrNaif2018", email = "chuff184@gmail.com" },
]
readme = "README.md"
keywords = ["tron", "api", "blockchain"]
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"base58",
"coincurve",
# Coincurve v21.0.0 is broken with python 3.14.
# See issue: https://github.com/ofek/coincurve/issues/219
"coincurve>=20.0.0,<21.0.0;python_version=='3.14'",
"eth-abi>=5.0.0,<6.0.0",
"httpx",
"pycryptodome<4",
"requests",
]
[project.optional-dependencies]
mnemonic = ["mnemonic==0.20"]
offline = ["protobuf"]
[project.urls]
Homepage = "https://github.com/andelf/tronpy"
Repository = "https://github.com/andelf/tronpy"
Documentation = "https://tronpy.readthedocs.io"
[dependency-groups]
dev = [
"pytest",
"pytest-cov",
"pytest-asyncio",
"mypy",
"codecov",
"pre-commit",
"freezegun",
"ruff>=0.12.3",
"taskipy>=1.14.1",
]
docs = ["sphinx"]
[tool.taskipy.tasks]
lint = { cmd = "ruff format . && ruff check --fix .", help = "run linters with autofix" }
lint_check = { cmd = "ruff format --check . && ruff check .", help = "run ruff linter" }
test = { cmd = "pytest tests/ ${TEST_ARGS}", help = "run tests" }
ci = { cmd = "task lint_check && task test", help = "run ci checks" }
[tool.hatch.version]
path = "tronpy/version.py"
[tool.hatch.build.targets.wheel]
packages = ["tronpy"]
[tool.ruff]
target-version = "py39"
line-length = 127
exclude = ["tronpy/proto/tron_pb2.*"]
[tool.ruff.lint]
select = [
"F",
"E",
"I",
"UP",
"YTT",
"B",
"T10",
"C",
"SIM",
"RUF100",
"RET",
"A",
"S",
"ASYNC",
"TID",
]
unfixable = ["F401"]
ignore = ["RET502", "RET503", "S104", "S507", "ASYNC110"]
mccabe = { max-complexity = 12 }
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S"]
[tool.mypy]
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
strict_equality = true
disallow_untyped_defs = true
skip_cache_mtime_checks = true
exclude = ["tests"]
[tool.pytest.ini_options]
addopts = ["--cov=.", "--cov-report", "term-missing"]
filterwarnings = [
"error::DeprecationWarning",
"error::PendingDeprecationWarning",
]
[tool.coverage.run]
omit = ["*__init__.py", "tests/*", "venv/*", "env/*", "setup.py"]