Browse Source

pyln.spec.bolt*: unify setups.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
paymod-01
Rusty Russell 5 years ago
committed by Christian Decker
parent
commit
1c1c3349b4
  1. 1
      contrib/pyln-spec/bolt1/boltsetup.py
  2. 24
      contrib/pyln-spec/bolt1/setup.py
  3. 1
      contrib/pyln-spec/bolt2/boltsetup.py
  4. 24
      contrib/pyln-spec/bolt2/setup.py
  5. 1
      contrib/pyln-spec/bolt4/boltsetup.py
  6. 24
      contrib/pyln-spec/bolt4/setup.py
  7. 1
      contrib/pyln-spec/bolt7/boltsetup.py
  8. 24
      contrib/pyln-spec/bolt7/setup.py
  9. 20
      contrib/pyln-spec/boltsetup.py

1
contrib/pyln-spec/bolt1/boltsetup.py

@ -0,0 +1 @@
../boltsetup.py

24
contrib/pyln-spec/bolt1/setup.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

@ -0,0 +1 @@
../boltsetup.py

24
contrib/pyln-spec/bolt2/setup.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

@ -0,0 +1 @@
../boltsetup.py

24
contrib/pyln-spec/bolt4/setup.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

@ -0,0 +1 @@
../boltsetup.py

24
contrib/pyln-spec/bolt7/setup.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

@ -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…
Cancel
Save