From 18c23c0e80ec6317566a282d29f8fc65ca262f54 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Thu, 26 Mar 2020 15:15:24 +0300 Subject: [PATCH] Enable distribution via pip/setuptools Thanks to @Mic92 for the proof-of-concept Refers to #26 --- MANIFEST.in | 3 +++ setup.cfg | 28 ++++++++++++++++++++++++++++ setup.py | 5 +++++ 3 files changed, 36 insertions(+) create mode 100644 MANIFEST.in create mode 100644 setup.cfg create mode 100755 setup.py diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..aaaad0c --- /dev/null +++ b/MANIFEST.in @@ -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 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 index 0000000..7f317b8 --- /dev/null +++ b/setup.py @@ -0,0 +1,5 @@ +#!/usr/bin/python3 + +from setuptools import setup + +setup() -- 2.31.1