+++ /dev/null
-"""
-Version
-"""
-
-__version__ = '0.6.6'
from typing import List, Tuple, Dict, TextIO
import re
import json
-from .__about__ import __version__
from .checks import add_kconfig_checks, add_cmdline_checks, normalize_cmdline_options, add_sysctl_checks
from .engine import StrOrNone, TupleOrNone, ChecklistObjType
from .engine import print_unknown_options, populate_with_data, perform_checks, override_expected_value
+# kernel-hardening-checker version
+__version__ = '0.6.6'
+
+
def _open(file: str) -> TextIO:
if file.endswith('.gz'):
return gzip.open(file, 'rt', encoding='utf-8')
[metadata]
name = kernel-hardening-checker
+version = attr: kernel_hardening_checker.__version__
author = Alexander Popov
author_email = alex.popov@linux.com
home_page = https://github.com/a13xp0p0v/kernel-hardening-checker
#!/usr/bin/env python3
-from setuptools import setup
+"""
+This tool is for checking the security hardening options of the Linux kernel.
+
+Author: Alexander Popov <alex.popov@linux.com>
-about = {}
-with open('kernel_hardening_checker/__about__.py') as f:
- exec(f.read(), about)
+This module performs installing of the kernel-hardening-checker package.
+"""
-print('v: "{}"'.format(about['__version__']))
+from setuptools import setup
# See the options in setup.cfg
-setup(version = about['__version__'])
+setup()