mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
pyln.spec.bolt*: unify setups.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
450fb43612
commit
1c1c3349b4
1
contrib/pyln-spec/bolt1/boltsetup.py
Symbolic link
1
contrib/pyln-spec/bolt1/boltsetup.py
Symbolic link
@ -0,0 +1 @@
|
||||
../boltsetup.py
|
@ -1,24 +1,4 @@
|
||||
from pyln.spec.bolt1 import __version__, desc
|
||||
from setuptools import setup
|
||||
import io
|
||||
from boltsetup import bolt_setup
|
||||
|
||||
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)],
|
||||
package_data={'pyln.proto.message': ['py.typed']},
|
||||
scripts=[],
|
||||
zip_safe=True,
|
||||
install_requires=requirements)
|
||||
|
||||
|
||||
do_setup(1, __version__, desc)
|
||||
bolt_setup(1, __version__, desc)
|
||||
|
1
contrib/pyln-spec/bolt2/boltsetup.py
Symbolic link
1
contrib/pyln-spec/bolt2/boltsetup.py
Symbolic link
@ -0,0 +1 @@
|
||||
../boltsetup.py
|
@ -1,24 +1,4 @@
|
||||
from pyln.spec.bolt2 import __version__, desc
|
||||
from setuptools import setup
|
||||
import io
|
||||
from boltsetup import bolt_setup
|
||||
|
||||
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)],
|
||||
package_data={'pyln.proto.message': ['py.typed']},
|
||||
scripts=[],
|
||||
zip_safe=True,
|
||||
install_requires=requirements)
|
||||
|
||||
|
||||
do_setup(2, __version__, desc)
|
||||
bolt_setup(2, __version__, desc)
|
||||
|
1
contrib/pyln-spec/bolt4/boltsetup.py
Symbolic link
1
contrib/pyln-spec/bolt4/boltsetup.py
Symbolic link
@ -0,0 +1 @@
|
||||
../boltsetup.py
|
@ -1,24 +1,4 @@
|
||||
from pyln.spec.bolt4 import __version__, desc
|
||||
from setuptools import setup
|
||||
import io
|
||||
from boltsetup import bolt_setup
|
||||
|
||||
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)],
|
||||
package_data={'pyln.proto.message': ['py.typed']},
|
||||
scripts=[],
|
||||
zip_safe=True,
|
||||
install_requires=requirements)
|
||||
|
||||
|
||||
do_setup(4, __version__, desc)
|
||||
bolt_setup(4, __version__, desc)
|
||||
|
1
contrib/pyln-spec/bolt7/boltsetup.py
Symbolic link
1
contrib/pyln-spec/bolt7/boltsetup.py
Symbolic link
@ -0,0 +1 @@
|
||||
../boltsetup.py
|
@ -1,24 +1,4 @@
|
||||
from pyln.spec.bolt7 import __version__, desc
|
||||
from setuptools import setup
|
||||
import io
|
||||
from boltsetup import bolt_setup
|
||||
|
||||
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)],
|
||||
package_data={'pyln.proto.message': ['py.typed']},
|
||||
scripts=[],
|
||||
zip_safe=True,
|
||||
install_requires=requirements)
|
||||
|
||||
|
||||
do_setup(7, __version__, desc)
|
||||
bolt_setup(7, __version__, desc)
|
||||
|
20
contrib/pyln-spec/boltsetup.py
Normal file
20
contrib/pyln-spec/boltsetup.py
Normal file
@ -0,0 +1,20 @@
|
||||
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 bolt_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)],
|
||||
package_data={'pyln.proto.message': ['py.typed']},
|
||||
scripts=[],
|
||||
zip_safe=True,
|
||||
install_requires=requirements)
|
Loading…
Reference in New Issue
Block a user