mirror of
https://github.com/bitromortac/lndmanage.git
synced 2026-08-13 12:33:37 +02:00
Newest versions will be installed automatically, setup.py tracks versions that we tested with.
52 lines
1.5 KiB
Python
52 lines
1.5 KiB
Python
import re, setuptools
|
|
|
|
with open("README.md", "r") as fh:
|
|
long_description = fh.read()
|
|
|
|
with open("./lndmanage/__init__.py", "r") as f:
|
|
MATCH_EXPR = "__version__[^'\"]+(['\"])([^'\"]+)"
|
|
VERSION = re.search(MATCH_EXPR, f.read()).group(2)
|
|
|
|
# package:
|
|
# (venv) pip install pep517 setuptools wheel sdist twine
|
|
# (venv) python3 -m pep517.build --source --binary .
|
|
# upload:
|
|
# (venv) twine upload --repository testpypi dist/*
|
|
|
|
setuptools.setup(
|
|
name="lndmanage",
|
|
version=VERSION,
|
|
author="bitromortac",
|
|
author_email="bitromortac@protonmail.com",
|
|
description="Channel management tool for lightning network daemon (LND) "
|
|
"operators.",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
url="https://github.com/bitromortac/lndmanage",
|
|
packages=setuptools.find_packages(),
|
|
install_requires=[
|
|
"googleapis-common-protos>=1.52.0",
|
|
"grpcio>=1.31.0",
|
|
"grpcio-tools>=1.31.0",
|
|
"networkx>=2.4",
|
|
"numpy>=1.19.1",
|
|
"protobuf>=3.12.4",
|
|
"Pygments>=2.7.4",
|
|
],
|
|
extras_require={
|
|
"test": [
|
|
"lnregtest>=0.2.1",
|
|
]
|
|
},
|
|
include_package_data=True,
|
|
classifiers=[
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: OS Independent",
|
|
],
|
|
entry_points={
|
|
"console_scripts": [
|
|
"lndmanage = lndmanage.lndmanage:main",
|
|
]
|
|
},
|
|
)
|