forked from sandrich/masternode-health-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (31 loc) · 1.23 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
from setuptools import setup, find_packages
from os import path
import re
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
VERSIONFILE = "masternode_health/version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
setup(
name='masternode_health',
version=verstr,
author='Christian Sandrini',
author_email='[email protected]',
packages=find_packages(include=['masternode_health', 'masternode_health.*']),
url='http://pypi.python.org/pypi/masternode_health',
license='LICENSE.md',
description='This script is designed for collecting server & DeFiChain node information of your system and send them to the DeFiChain Masternode Health API',
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=['psutil', 'requests'],
entry_points={
'console_scripts': ['masternode-health=masternode_health.monitor:main']
},
python_requires='>2.7'
)