2022-04-04 18:51:58 +09:00
|
|
|
import re, setuptools, os.path
|
2019-09-20 08:09:38 +02:00
|
|
|
|
2022-04-04 18:51:58 +09:00
|
|
|
description = "Channel management tool for lightning network daemon (LND) "
|
|
|
|
|
"operators.",
|
|
|
|
|
if os.path.exists("README.md"):
|
|
|
|
|
with open("README.md", "r") as fh:
|
|
|
|
|
long_description = fh.read()
|
|
|
|
|
else:
|
|
|
|
|
long_description = description
|
2019-09-20 08:09:38 +02:00
|
|
|
|
2021-11-14 11:16:16 +01:00
|
|
|
with open("./lndmanage/__init__.py", "r") as f:
|
2019-09-20 08:09:38 +02:00
|
|
|
MATCH_EXPR = "__version__[^'\"]+(['\"])([^'\"]+)"
|
|
|
|
|
VERSION = re.search(MATCH_EXPR, f.read()).group(2)
|
|
|
|
|
|
2020-08-14 11:04:48 +02:00
|
|
|
# package:
|
2022-04-02 19:16:51 +02:00
|
|
|
# (venv) pip install build setuptools wheel sdist twine
|
|
|
|
|
# (venv) python3 -m build
|
2020-08-14 11:04:48 +02:00
|
|
|
# upload:
|
|
|
|
|
# (venv) twine upload --repository testpypi dist/*
|
|
|
|
|
|
2019-09-20 08:09:38 +02:00
|
|
|
setuptools.setup(
|
|
|
|
|
name="lndmanage",
|
|
|
|
|
version=VERSION,
|
|
|
|
|
author="bitromortac",
|
|
|
|
|
author_email="bitromortac@protonmail.com",
|
2022-04-04 18:51:58 +09:00
|
|
|
description=description,
|
2019-09-20 08:09:38 +02:00
|
|
|
long_description=long_description,
|
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
|
url="https://github.com/bitromortac/lndmanage",
|
|
|
|
|
packages=setuptools.find_packages(),
|
2023-02-12 11:50:28 +01:00
|
|
|
python_requires='>=3.9.0',
|
2019-09-24 08:32:43 +02:00
|
|
|
install_requires=[
|
2023-12-27 12:36:12 +01:00
|
|
|
"googleapis-common-protos==1.62.0",
|
|
|
|
|
"grpcio==1.60.0",
|
2023-02-12 11:50:28 +01:00
|
|
|
"networkx==3.0",
|
|
|
|
|
"numpy==1.24.2",
|
2023-12-27 12:36:12 +01:00
|
|
|
"Pygments==2.17.2",
|
2019-09-24 08:32:43 +02:00
|
|
|
],
|
2021-11-14 11:16:16 +01:00
|
|
|
extras_require={
|
|
|
|
|
"test": [
|
2023-02-12 11:50:28 +01:00
|
|
|
"lnregtest>=0.2.2",
|
2021-11-14 11:16:16 +01:00
|
|
|
]
|
|
|
|
|
},
|
2019-09-25 06:44:18 +02:00
|
|
|
include_package_data=True,
|
2019-09-20 08:09:38 +02:00
|
|
|
classifiers=[
|
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
|
],
|
|
|
|
|
entry_points={
|
|
|
|
|
"console_scripts": [
|
|
|
|
|
"lndmanage = lndmanage.lndmanage:main",
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
)
|