mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 06:55:13 +01:00
Using `pyln-testing` with `python3.11` results in the following warning. ``` .../venv/lib/python3.11/site-packages/cheroot/__init__.py:7: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources ``` I've updated the `cheroot`-dependency. However, the changes will not take effect immediately because we are facing an internal conflict. This conflict comes from the following requirements - `//contrib/pyln-testing/pyproject.toml` requires `cheroot`. We can pick the requried version - `./external/lnprototest/pyproject.toml` requires `pyln="^0.12"` requires `cheroot="^8" It appears we have to do a multi-stage upgrade here. **Step 1** This commit configures `./contrib/pyln-testing/pyproject.toml` to require `cheroot=">=8 <=10`. This allows users of `pyln-testing` to start using a new release of `cheroot` immediately. However, we still require `cheroot="^8"` because of `lnprototests`. Even after running `poetry install` in the project root the warning will remain. **Step 2** Not a part of this commit. Publish a new release of `pyln-testing` on PyPI. Once this release is finished we can update `./external/lnprototests/pyproject.toml` to use the new version of `pyln-testing` and the warning will disappear.
38 lines
971 B
TOML
38 lines
971 B
TOML
[tool.poetry]
|
|
name = "pyln-testing"
|
|
version = "23.11"
|
|
description = "Test your Core Lightning integration, plugins or whatever you want"
|
|
authors = ["Christian Decker <decker.christian@gmail.com>"]
|
|
license = "BSD-MIT"
|
|
readme = "README.md"
|
|
|
|
packages = [
|
|
{ include = "pyln/testing" },
|
|
]
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.8"
|
|
pytest = "^7"
|
|
ephemeral-port-reserve = "^1.1.4"
|
|
psycopg2-binary = "^2.9"
|
|
python-bitcoinlib = "^0.11.0"
|
|
jsonschema = "^4.4.0"
|
|
pyln-client = ">=23"
|
|
Flask = "^2"
|
|
cheroot = ">=8 <=10"
|
|
psutil = "^5.9"
|
|
requests = "^2.31.0"
|
|
|
|
grpcio = { version = "^1", optional = true }
|
|
pyln-grpc-proto = { version = "^0.1", optional = true }
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
pyln-client = { path = "../pyln-client", develop = true}
|
|
pyln-grpc-proto = { path = "../pyln-grpc-proto", develop = true, optional = true}
|
|
|
|
[tool.poetry.extras]
|
|
grpc = ["pyln-grpc-proto", "grpcio"]
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=1.0.0"]
|
|
build-backend = "poetry.core.masonry.api"
|