pyln: Migrate pyln-client to PEP 517 (poetry)

This commit is contained in:
Christian Decker 2022-02-21 19:46:15 +01:00 committed by Rusty Russell
parent b0f8a99310
commit dd8d2c138c
5 changed files with 24 additions and 37 deletions

View file

@ -1 +1 @@
pyln/client/__version__.py poetry.lock

View file

@ -1,8 +1,8 @@
from .lightning import LightningRpc, RpcError, Millisatoshi from .lightning import LightningRpc, RpcError, Millisatoshi
from .plugin import Plugin, monkey_patch, RpcException from .plugin import Plugin, monkey_patch, RpcException
from .gossmap import Gossmap, GossmapNode, GossmapChannel, GossmapNodeId from .gossmap import Gossmap, GossmapNode, GossmapChannel, GossmapNodeId
from .__version__ import __version__
__version__ = "0.10.2"
__all__ = [ __all__ = [
"LightningRpc", "LightningRpc",

View file

@ -0,0 +1,22 @@
[tool.poetry]
name = "pyln-client"
version = "0.10.2"
description = "Client library and plugin library for c-lightning"
authors = ["Christian Decker <decker.christian@gmail.com>"]
license = "BSD-MIT"
packages = [
{ include = "pyln/client" },
]
[tool.poetry.dependencies]
python = "^3.7"
pyln-proto = { path = "../pyln-proto" }
pyln-bolt7 = { path = "../pyln-spec/bolt7" }
[tool.poetry.dev-dependencies]
pytest = "^7.0.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

View file

@ -1,3 +0,0 @@
recommonmark~=0.7
pyln-bolt7
pyln-proto

View file

@ -1,32 +0,0 @@
from setuptools import setup
import io
with io.open('README.md', encoding='utf-8') as f:
long_description = f.read()
with io.open('requirements.txt', encoding='utf-8') as f:
requirements = [r for r in f.read().split('\n') if len(r)]
setup(name='pyln-client',
description='Client library for lightningd',
long_description=long_description,
long_description_content_type='text/markdown',
url='http://github.com/ElementsProject/lightning',
author='Christian Decker',
author_email='decker.christian@gmail.com',
license='MIT',
packages=['pyln.client'],
scripts=[],
zip_safe=True,
use_scm_version={
"root": "../..",
"relative_to": __file__,
"write_to": "contrib/pyln-client/pyln/client/__version__.py",
"write_to_template": "__version__ = \"{version}\"\n",
"version_scheme": "post-release",
"local_scheme": "no-local-version",
},
setup_requires=["setuptools_scm"],
install_requires=requirements)