diff --git a/contrib/pyln-testing/.gitignore b/contrib/pyln-testing/.gitignore new file mode 100644 index 000000000000..c04bc49f76fa --- /dev/null +++ b/contrib/pyln-testing/.gitignore @@ -0,0 +1 @@ +poetry.lock diff --git a/contrib/pyln-testing/pyln/testing/__init__.py b/contrib/pyln-testing/pyln/testing/__init__.py index 6225cf0ce456..8891f5e2285e 100644 --- a/contrib/pyln-testing/pyln/testing/__init__.py +++ b/contrib/pyln-testing/pyln/testing/__init__.py @@ -1,4 +1,4 @@ -from .__version__ import __version__ +__version__ = "0.10.2" __all__ = [ "__version__", diff --git a/contrib/pyln-testing/pyproject.toml b/contrib/pyln-testing/pyproject.toml new file mode 100644 index 000000000000..e7159d9808c6 --- /dev/null +++ b/contrib/pyln-testing/pyproject.toml @@ -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 "] +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" diff --git a/contrib/pyln-testing/requirements.txt b/contrib/pyln-testing/requirements.txt deleted file mode 100644 index 1b9fcc647929..000000000000 --- a/contrib/pyln-testing/requirements.txt +++ /dev/null @@ -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.* diff --git a/contrib/pyln-testing/setup.py b/contrib/pyln-testing/setup.py deleted file mode 100644 index d20aaa2cfa6d..000000000000 --- a/contrib/pyln-testing/setup.py +++ /dev/null @@ -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)