forked from kismetwireless/python-kismet-rest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·50 lines (42 loc) · 1.66 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
"""Python setup."""
import os
import re
from setuptools import setup
def read(file_name):
"""Return the contents of a file as a string."""
with open(os.path.join(os.path.dirname(__file__), file_name), 'r') as file:
filestring = file.read()
return filestring
def get_version():
"""Return the version of this module."""
raw_init_file = read("kismet_rest/__init__.py")
rx_compiled = re.compile(r"\s*__version__\s*=\s*\"(\S+)\"")
ver = rx_compiled.search(raw_init_file).group(1)
return ver
def build_long_desc():
"""Return the long description."""
return "\n".join([read(f) for f in ["README.rst", "CHANGELOG.rst"]])
setup(name="kismet_rest",
version=get_version(),
author="Mike Kershaw / Dragorn",
author_email="[email protected]",
description="Simplified Python API for the Kismet REST interface",
license="GPLv2",
keywords="kismet",
url="https://www.kismetwireless.net",
download_url="https://kismetwireless.net/python-kismet-rest",
packages=["kismet_rest"],
install_requires="requests",
long_description=build_long_desc(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Security",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)"
])