This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (56 loc) · 2.13 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
56
57
58
59
60
61
#!/usr/bin/env python
from io import open
from setuptools import setup
# Causes circular dependency issues (requires ifcfg/speedtest_cli to be installed first)
#from kintyre_speedtest import JSON_FORMAT_VER as ver
# Eventually version should be moved to it's own file.
def get_ver():
import re
content = open("kintyre_speedtest.py", encoding="utf-8").read()
mo = re.search(r'[\r\n]JSON_FORMAT_VER\s*=\s*u?"([^"]+)"', content)
return mo.group(1)
with open("requirements.txt") as f:
requirements = f.readlines()
setup(name="kintyre-speedtest-agent",
version=get_ver(),
description="Kintyre Shinnecock speedtest agent",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="Lowell Alleman",
author_email="lowell@kintyre.co",
url="https://github.com/Kintyre/shinnecock-agent",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Communications",
"Topic :: Internet",
"Topic :: System :: Networking :: Monitoring",
],
keywords='splunk speedtest',
license="Apache Software License",
zip_safe=False,
py_modules=[
"kintyre_speedtest",
],
install_requires=requirements,
entry_points={
"console_scripts" : [
"kintyre-speedtest = kintyre_speedtest:cli",
]
},
)