mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 08:04:26 +01:00
pyln: Derive version from git for pyln-testing
This commit is contained in:
@@ -1 +1,5 @@
|
|||||||
__version__ = "0.10.1"
|
from .__version__ import __version__
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"__version__",
|
||||||
|
]
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from pyln.testing import __version__
|
|
||||||
|
|
||||||
|
|
||||||
with open('README.md', encoding='utf-8') as f:
|
with open('README.md', encoding='utf-8') as f:
|
||||||
@@ -9,7 +8,6 @@ with open('requirements.txt', 'r') as f:
|
|||||||
requirements = [l.strip() for l in f]
|
requirements = [l.strip() for l in f]
|
||||||
|
|
||||||
setup(name='pyln-testing',
|
setup(name='pyln-testing',
|
||||||
version=__version__,
|
|
||||||
description='Library to facilitate writing tests for for lightningd',
|
description='Library to facilitate writing tests for for lightningd',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
@@ -19,4 +17,13 @@ setup(name='pyln-testing',
|
|||||||
install_requires=requirements,
|
install_requires=requirements,
|
||||||
license='MIT',
|
license='MIT',
|
||||||
packages=['pyln.testing'],
|
packages=['pyln.testing'],
|
||||||
|
use_scm_version={
|
||||||
|
"root": "../..",
|
||||||
|
"relative_to": __file__,
|
||||||
|
"write_to": "contrib/pyln-testing/pyln/testing/__version__.py",
|
||||||
|
"write_to_template": "__version__ = \"{version}\"\n",
|
||||||
|
"version_scheme": "post-release",
|
||||||
|
"local_scheme": "no-local-version",
|
||||||
|
},
|
||||||
|
setup_requires=["setuptools_scm"],
|
||||||
zip_safe=True)
|
zip_safe=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user