-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
55 lines (51 loc) · 1.51 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import re, setuptools, os.path
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
with open("./lndmanage/__init__.py", "r") as f:
MATCH_EXPR = "__version__[^'\"]+(['\"])([^'\"]+)"
VERSION = re.search(MATCH_EXPR, f.read()).group(2)
# package:
# (venv) pip install build setuptools wheel sdist twine
# (venv) python3 -m build
# upload:
# (venv) twine upload --repository testpypi dist/*
setuptools.setup(
name="lndmanage",
version=VERSION,
author="bitromortac",
author_email="bitromortac@protonmail.com",
description=description,
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/bitromortac/lndmanage",
packages=setuptools.find_packages(),
python_requires='>=3.9.0',
install_requires=[
"googleapis-common-protos==1.62.0",
"grpcio==1.60.0",
"networkx==3.0",
"numpy==1.24.2",
"Pygments==2.17.2",
],
extras_require={
"test": [
"lnregtest>=0.2.2",
]
},
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",
]
},
)