-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathpyproject.toml
59 lines (55 loc) · 2.26 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
# With this the user can use a custom
# python environment, like those created
# with venv or pyenv. The default will be
# the system python.
[virtualenvs]
prefer-active-python = true
# This isn't really needed on pratical aspect
# since this is only for organize the functional tests
# but is necessary since its a requirement for poetry.
[tool.poetry]
name = "floresta-functional-tests"
version = "0.0.1"
description = "collection of tools to help with functional testing of Floresta"
authors = ["The Floresta Project Developers"]
license = "MIT"
# To add a new dependency, use `poetry add <package>`.
# To update, first find outdated packages with `poetry show --outdated`,
# then re-install with `poetry add <package>@<version>`.
[tool.poetry.dependencies]
python = ">=3.12"
jsonrpclib = "^0.2.1"
requests = "^2.32.3"
black = "^24.10.0"
pylint = "^3.3.2"
poethepoet = "^0.31.1"
# Here we can define some custom tasks
# (even bash or rust ones can be defined).
# All of them will run on virtualenv environment.
# For more information, see guidelines in https://poethepoet.natn.io
[tool.poe.tasks]
format = "black ./tests"
lint = "pylint ./tests"
example-test = "python tests/run_tests.py --test-name example_test"
restart-test = "python tests/run_tests.py --test-name restart"
florestacli-getblockchaininfo-test = "python tests/run_tests.py --test-name floresta_cli_getblockchaininfo"
florestacli-getblockhash-test = "python tests/run_tests.py --test-name floresta_cli_getblockhash"
florestacli-getblock-test = "python tests/run_tests.py --test-name floresta_cli_getblock"
florestacli-getpeerinfo-test = "python tests/run_tests.py --test-name floresta_cli_getpeerinfo"
florestacli-addnode-test = "python tests/run_tests.py --test-name floresta_cli_addnode"
florestacli-stop-test = "python tests/run_tests.py --test-name floresta_cli_stop"
florestacli-getroots-test = "python tests/run_tests.py --test-name floresta_cli_getroots"
tests = [
"restart-test",
"florestacli-getblockchaininfo-test",
"florestacli-getblockhash-test",
"florestacli-getblock-test",
"florestacli-getpeerinfo-test",
"florestacli-addnode-test",
"florestacli-stop-test",
"florestacli-getroots-test"
]
pre-commit = ["format", "lint", "tests"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"