pyln-proto: Avoid circular dependency in setup.py

It seems that loading the version from the source files triggers imports that
may not yet have been installed.
This commit is contained in:
Christian Decker 2020-04-30 18:40:49 +02:00 committed by Rusty Russell
parent 94c15f5cc0
commit 9bfdf234f3
2 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,7 @@ from .invoice import Invoice
from .onion import OnionPayload, TlvPayload, LegacyOnionPayload
from .wire import LightningConnection, LightningServerSocket
__version__ = '0.0.1'
__version__ = '0.0.2'
__all__ = [
"Invoice",

View File

@ -1,5 +1,4 @@
from setuptools import setup
from pyln import proto
import io
@ -10,7 +9,7 @@ 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-proto',
version=proto.__version__,
version='0.0.2',
description='Pure python implementation of the Lightning Network protocol',
long_description=long_description,
long_description_content_type='text/markdown',