Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (51 loc) · 1.49 KB
/
Copy pathsetup.py
File metadata and controls
62 lines (51 loc) · 1.49 KB
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
62
import os
import pathlib
import sys
from setuptools import setup
base_path = pathlib.Path(__file__).parent.resolve()
sys.path.insert(0, base_path)
is_linux = 'linux' in sys.platform
if not is_linux:
raise RuntimeError('ssluprobe only supports Linux')
bcc_installed = False
for root, dirs, _ in os.walk('/usr/lib'):
if 'bcc' in dirs:
bcc_installed = True
break
if not bcc_installed:
raise RuntimeError('bcc must be installed')
long_description = (base_path / 'README.md').read_text(encoding='utf-8')
def get_version():
import ssluprobe
return ssluprobe.__version__
setup(
name='ssluprobe',
version=get_version(),
description='eBPF TLS/SSL sniffer',
long_description=long_description,
long_description_content_type='text/markdown',
author='lbirchler',
author_email='lbirchler@protonmail.com',
url='https://github.com/lbirchler/ssluprobe',
license='MIT',
python_requires='>=3.6.8',
install_requires=[],
py_modules=['ssluprobe'],
entry_points={
'console_scripts': [
'ssluprobe=ssluprobe:main',
],
},
platforms=['Linux'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: C',
'Topic :: Software Development :: Debuggers',
'Topic :: System :: Networking :: Monitoring',
'Topic :: System :: Operating System Kernels :: Linux',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
],
)