2022-02-22 14:33:41 +01:00
|
|
|
[tool.poetry]
|
2024-05-03 11:16:40 +02:00
|
|
|
package-mode=false
|
2022-02-22 14:33:41 +01:00
|
|
|
name = "cln-meta-project"
|
|
|
|
version = "0.1.0"
|
|
|
|
description = "Just a helper to get our python dependencies under control"
|
|
|
|
authors = ["Christian Decker <cdecker@blockstream.com>"]
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
|
|
|
# Build dependencies belong here
|
pyproject.toml: Update ancient flake8
v4.0 no longer works for me (see below, and widely reported elsewhere).
v5.0 doesn't understand f strings, and creates a flood of complaints.
v6.0 requires python >= 3.8.1, so we need to update that.
v7.0 is the latest, but why push it.
```
make check-python-flake8
Traceback (most recent call last):
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/bin/flake8", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/main/cli.py", line 22, in main
app.run(argv)
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/main/application.py", line 375, in run
self._run(argv)
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/main/application.py", line 363, in _run
self.initialize(argv)
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/main/application.py", line 343, in initialize
self.find_plugins(config_finder)
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/main/application.py", line 157, in find_plugins
self.check_plugins = plugin_manager.Checkers(local_plugins.extension)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/plugins/manager.py", line 363, in __init__
self.manager = PluginManager(
^^^^^^^^^^^^^^
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/plugins/manager.py", line 243, in __init__
self._load_entrypoint_plugins()
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/plugins/manager.py", line 261, in _load_entrypoint_plugins
eps = importlib_metadata.entry_points().get(self.namespace, ())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'EntryPoints' object has no attribute 'get'
make: *** [Makefile:535: check-python-flake8] Error 1
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-06-19 08:27:22 +02:00
|
|
|
python = ">=3.8.1,<4.0"
|
2023-06-16 13:46:33 +02:00
|
|
|
pyln-client = { path = "contrib/pyln-client", develop = true }
|
|
|
|
pyln-proto = { path = "contrib/pyln-proto", develop = true }
|
2024-04-19 16:14:33 +02:00
|
|
|
pyln-grpc-proto = { path = "contrib/pyln-grpc-proto", develop = true }
|
2023-09-07 21:00:31 +02:00
|
|
|
clnrest = { path = "plugins/clnrest", develop = true }
|
2024-04-16 00:37:23 +02:00
|
|
|
wss-proxy = { path = "plugins/wss-proxy", develop = true }
|
2022-02-22 14:33:41 +01:00
|
|
|
Mako = "^1.1.6"
|
|
|
|
websocket-client = "^1.2.3"
|
2023-06-16 13:46:33 +02:00
|
|
|
grpcio-tools = "^1"
|
|
|
|
grpcio = "^1"
|
2023-06-19 04:28:03 +02:00
|
|
|
# We want a specific version of protobuf to match CI's .github/scripts/setup.sh
|
|
|
|
protobuf = "4.21.12"
|
2024-07-17 12:57:27 +02:00
|
|
|
cryptography = "^42"
|
2022-02-22 14:33:41 +01:00
|
|
|
|
2023-10-24 13:07:33 +02:00
|
|
|
[tool.poetry.group.dev.dependencies]
|
2022-02-22 14:33:41 +01:00
|
|
|
# Test dependencies and inherited dependencies belong here
|
|
|
|
crc32c = "^2.2.post0" # Belongs to lnprototest
|
|
|
|
pytest-xdist = "^2.5.0"
|
|
|
|
pytest-test-groups = "^1.0.3"
|
|
|
|
pytest-timeout = "^2.1.0"
|
pyproject.toml: Update ancient flake8
v4.0 no longer works for me (see below, and widely reported elsewhere).
v5.0 doesn't understand f strings, and creates a flood of complaints.
v6.0 requires python >= 3.8.1, so we need to update that.
v7.0 is the latest, but why push it.
```
make check-python-flake8
Traceback (most recent call last):
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/bin/flake8", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/main/cli.py", line 22, in main
app.run(argv)
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/main/application.py", line 375, in run
self._run(argv)
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/main/application.py", line 363, in _run
self.initialize(argv)
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/main/application.py", line 343, in initialize
self.find_plugins(config_finder)
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/main/application.py", line 157, in find_plugins
self.check_plugins = plugin_manager.Checkers(local_plugins.extension)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/plugins/manager.py", line 363, in __init__
self.manager = PluginManager(
^^^^^^^^^^^^^^
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/plugins/manager.py", line 243, in __init__
self._load_entrypoint_plugins()
File "/home/rusty/.cache/pypoetry/virtualenvs/cln-meta-project-BgKQHyxC-py3.12/lib/python3.12/site-packages/flake8/plugins/manager.py", line 261, in _load_entrypoint_plugins
eps = importlib_metadata.entry_points().get(self.namespace, ())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'EntryPoints' object has no attribute 'get'
make: *** [Makefile:535: check-python-flake8] Error 1
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-06-19 08:27:22 +02:00
|
|
|
flake8 = "^6.0"
|
2022-02-22 14:33:41 +01:00
|
|
|
mypy = "^0.931"
|
|
|
|
pytest-custom-exit-code = "0.3.0"
|
2023-09-15 17:08:23 +02:00
|
|
|
pyln-testing = { path = "./contrib/pyln-testing", develop = true, extras = [ "grpc" ] }
|
2023-10-24 13:07:33 +02:00
|
|
|
flaky = "^3.7.0"
|
2023-10-29 18:53:28 +01:00
|
|
|
requests = "^2.31.0"
|
2022-02-22 14:33:41 +01:00
|
|
|
|
|
|
|
[build-system]
|
|
|
|
requires = ["poetry-core>=1.0.0"]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|