mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
pyln.spec.bolt*: make these separate packages, so versions can change indep.
They're almost entirely autogenerated, and we use symlinks into the
top directory to reduce replication.
They can't be under pyln.spec.message, because a package can't also
be a namespace.
We also add fulltext and desc fields, and exclude our "gen" files from
flake8, since the spec quotes contain weird whitespace.
Changelog-Added: Python: pyln.spec.bolt{1,2,4,7} packages.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
013eced4ce
commit
3882e8bdf7
23
contrib/pyln-spec/bolt1/setup.py
Normal file
23
contrib/pyln-spec/bolt1/setup.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from pyln.spec.bolt1 import __version__, desc
|
||||
from setuptools import setup
|
||||
import io
|
||||
|
||||
with io.open('requirements.txt', encoding='utf-8') as f:
|
||||
requirements = [r for r in f.read().split('\n') if len(r)]
|
||||
|
||||
|
||||
def do_setup(boltnum: int, version: str, desc: str):
|
||||
setup(name='pyln-bolt{}'.format(boltnum),
|
||||
version=version,
|
||||
description=desc,
|
||||
url='http://github.com/ElementsProject/lightning',
|
||||
author='Rusty Russell',
|
||||
author_email='rusty@rustcorp.com.au',
|
||||
license='MIT',
|
||||
packages=['pyln.spec.bolt{}'.format(boltnum)],
|
||||
scripts=[],
|
||||
zip_safe=True,
|
||||
install_requires=requirements)
|
||||
|
||||
|
||||
do_setup(1, __version__, desc)
|
||||
Reference in New Issue
Block a user