core-lightning/contrib/pyln-spec/subinit.py
Rusty Russell 447231f52e pyln.spec.bolt*: change version numbering to include specific csv subversion.
Now they look like 1.0.1.137, so you can explicitly depend on a csv change
(without caring about a textual change).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-06-25 10:08:58 +02:00

26 lines
657 B
Python

# This is the same __init__.py for all bolt dirs.
from .csv import csv
from .text import text, desc
from .gen_csv_version import __csv_version__
from .gen_version import __base_version__, __post_version__, __gitversion__
from .bolt import namespace
import sys
# eg. 1.0.1.137.
__version__ = '{}.{}.{}'.format(__base_version__, __csv_version__, __post_version__)
__all__ = [
'csv',
'text',
'desc',
'namespace',
'__version__',
'__gitversion__',
]
mod = sys.modules[__name__]
for d in namespace.subtypes, namespace.tlvtypes, namespace.messagetypes:
for name in d:
setattr(mod, name, d[name])
__all__.append(name)