Enable distribution via pip/setuptools
authorAlexander Popov <alex.popov@linux.com>
Thu, 26 Mar 2020 12:15:24 +0000 (15:15 +0300)
committerAlexander Popov <alex.popov@linux.com>
Thu, 26 Mar 2020 12:15:24 +0000 (15:15 +0300)
Thanks to @Mic92 for the proof-of-concept

Refers to #26

MANIFEST.in [new file with mode: 0644]
setup.cfg [new file with mode: 0644]
setup.py [new file with mode: 0755]

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644 (file)
index 0000000..aaaad0c
--- /dev/null
@@ -0,0 +1,3 @@
+include README.md
+include LICENSE.txt
+recursive-include kconfig_hardened_check *
diff --git a/setup.cfg b/setup.cfg
new file mode 100644 (file)
index 0000000..2ac1c3b
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,28 @@
+[metadata]
+name = kconfig-hardened-check
+version = 0.5.5
+author = Alexander Popov
+author_email = alex.popov@linux.com
+home-page = https://github.com/a13xp0p0v/kconfig-hardened-check
+description = A tool for checking the hardening options in the Linux kernel config
+long-description = file: README.md
+license = GNU General Public License v3 (GPLv3)
+license-file = LICENSE.txt
+classifiers = 
+       Development Status :: 5 - Production/Stable
+       License :: OSI Approved :: GNU General Public License v3 (GPLv3)
+       Topic :: Security
+       Operating System :: POSIX :: Linux
+       Environment :: Console
+       Programming Language :: Python :: 3
+
+[options]
+zip_safe = true
+include_package_data = true
+packages = kconfig_hardened_check
+setup_requires = setuptools
+
+[options.entry_points]
+console_scripts = 
+       kconfig-hardened-check = kconfig_hardened_check:main
+
diff --git a/setup.py b/setup.py
new file mode 100755 (executable)
index 0000000..7f317b8
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,5 @@
+#!/usr/bin/python3
+
+from setuptools import setup
+
+setup()