diff --git a/contrib/pylightning/lightning/__init__.py b/contrib/pylightning/lightning/__init__.py index a5170aed4..e70aa2007 100644 --- a/contrib/pylightning/lightning/__init__.py +++ b/contrib/pylightning/lightning/__init__.py @@ -1,2 +1,2 @@ -from .lightning import LightningRpc, RpcError, Millisatoshi +from .lightning import LightningRpc, RpcError, Millisatoshi, __version__ from .plugin import Plugin, monkey_patch diff --git a/contrib/pylightning/lightning/lightning.py b/contrib/pylightning/lightning/lightning.py index e2e46f121..e3b930ae1 100644 --- a/contrib/pylightning/lightning/lightning.py +++ b/contrib/pylightning/lightning/lightning.py @@ -3,6 +3,8 @@ import json import logging import socket +__version__ = "0.0.7.1" + class RpcError(ValueError): def __init__(self, method, payload, error): diff --git a/contrib/pylightning/setup.py b/contrib/pylightning/setup.py index 4565d1f51..2e1c94a12 100644 --- a/contrib/pylightning/setup.py +++ b/contrib/pylightning/setup.py @@ -1,10 +1,12 @@ from setuptools import setup +import lightning + with open('README.md', encoding='utf-8') as f: long_description = f.read() setup(name='pylightning', - version='0.0.7', + version=lightning.__version__, description='Client library for lightningd', long_description=long_description, long_description_content_type='text/markdown',