mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
pyln: Migrate pyln-client to PEP 517 (poetry)
This commit is contained in:
parent
b0f8a99310
commit
dd8d2c138c
5 changed files with 24 additions and 37 deletions
2
contrib/pyln-client/.gitignore
vendored
2
contrib/pyln-client/.gitignore
vendored
|
@ -1 +1 @@
|
|||
pyln/client/__version__.py
|
||||
poetry.lock
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
from .lightning import LightningRpc, RpcError, Millisatoshi
|
||||
from .plugin import Plugin, monkey_patch, RpcException
|
||||
from .gossmap import Gossmap, GossmapNode, GossmapChannel, GossmapNodeId
|
||||
from .__version__ import __version__
|
||||
|
||||
__version__ = "0.10.2"
|
||||
|
||||
__all__ = [
|
||||
"LightningRpc",
|
||||
|
|
22
contrib/pyln-client/pyproject.toml
Normal file
22
contrib/pyln-client/pyproject.toml
Normal 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"
|
|
@ -1,3 +0,0 @@
|
|||
recommonmark~=0.7
|
||||
pyln-bolt7
|
||||
pyln-proto
|
|
@ -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)
|
Loading…
Add table
Reference in a new issue