mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-04 11:08:03 +01:00
pyln: Migrate pyln-testing to PEP 517 (poetry)
This commit is contained in:
parent
dd8d2c138c
commit
4b9bf22193
5 changed files with 29 additions and 42 deletions
1
contrib/pyln-testing/.gitignore
vendored
Normal file
1
contrib/pyln-testing/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
poetry.lock
|
|
@ -1,4 +1,4 @@
|
|||
from .__version__ import __version__
|
||||
__version__ = "0.10.2"
|
||||
|
||||
__all__ = [
|
||||
"__version__",
|
||||
|
|
27
contrib/pyln-testing/pyproject.toml
Normal file
27
contrib/pyln-testing/pyproject.toml
Normal file
|
@ -0,0 +1,27 @@
|
|||
[tool.poetry]
|
||||
name = "pyln-testing"
|
||||
version = "0.10.2"
|
||||
description = "Test your c-lightning integration, plugins or whatever you want"
|
||||
authors = ["Christian Decker <decker.christian@gmail.com>"]
|
||||
license = "BSD-MIT"
|
||||
|
||||
packages = [
|
||||
{ include = "pyln/testing" },
|
||||
]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.7"
|
||||
pytest = "^7.0.1"
|
||||
ephemeral-port-reserve = "^1.1.4"
|
||||
psycopg2 = "^2.9.3"
|
||||
python-bitcoinlib = "^0.11.0"
|
||||
jsonschema = "^4.4.0"
|
||||
pyln-client = { path = "../pyln-client" }
|
||||
Flask = "^2.0.3"
|
||||
cheroot = "^8.6.0"
|
||||
psutil = "^5.9.0"
|
||||
[tool.poetry.dev-dependencies]
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
|
@ -1,12 +0,0 @@
|
|||
Flask==1.1.*
|
||||
cheroot==8.5.*
|
||||
ephemeral-port-reserve==1.1.1
|
||||
flaky ~= 3.7.0
|
||||
psutil==5.7.*
|
||||
psycopg2-binary==2.8.*
|
||||
pytest-rerunfailures==9.1.1
|
||||
pytest-timeout ~= 1.4.2
|
||||
pytest-xdist ~= 2.2.0
|
||||
pytest==6.1.*
|
||||
python-bitcoinlib==0.11.*
|
||||
jsonschema==3.2.*
|
|
@ -1,29 +0,0 @@
|
|||
from setuptools import setup
|
||||
|
||||
|
||||
with open('README.md', encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
with open('requirements.txt', 'r') as f:
|
||||
requirements = [l.strip() for l in f]
|
||||
|
||||
setup(name='pyln-testing',
|
||||
description='Library to facilitate writing tests for for lightningd',
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
url='http://github.com/ElementsProject/lightning',
|
||||
author='Christian Decker',
|
||||
author_email='decker.christian@gmail.com',
|
||||
install_requires=requirements,
|
||||
license='MIT',
|
||||
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)
|
Loading…
Add table
Reference in a new issue