diff --git a/kernel_upgrader/__init__.py b/kernel_upgrader/__init__.py index 179f268..84eda04 100644 --- a/kernel_upgrader/__init__.py +++ b/kernel_upgrader/__init__.py @@ -239,24 +239,24 @@ def main(): arguments.add_argument("-u", "--usage", action="store_true", - help="Show full usage of this program") + help="show full usage of this program") arguments.add_argument("-v", "--version", action="store_true", - help="Show program version") + help="show program version") arguments.add_argument("-c", "--check", action="store_true", - help="Only checks if there is any new version available") + help="only checks if there is any new version available") arguments.add_argument("-j", "--cores", type=int, default=0, - help="Use a predefined number of cores for thread compilation. Default: 0 (uses the number" + help="use a predefined number of cores for thread compilation. Default: 0 (uses the number" "of cores available on your system)") arguments.add_argument("--interactive", action="store_true", - help="Launches the KernelUpgrader tool with interactive mode for selecting the kernel " + help="launches the KernelUpgrader tool with interactive mode for selecting the kernel " "you want to install") args = arguments.parse_args() try: diff --git a/setup.py b/setup.py index d398f51..7079a9c 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,4 @@ +from os import path from sys import version from setuptools import setup, find_packages @@ -7,15 +8,9 @@ if version < '3': raise RuntimeError("Python v3 at least needed") - -try: - import codecs - readme = codecs.open("README.rst", encoding="utf-8") - long_description = readme.read() - readme.close() -except: - long_description = '' - +this = path.abspath(path.dirname(__file__)) +with open(path.join(this, "README.md"), encoding="utf-8") as f: + long_description = f.read() setup( name='KernelUpgrader', @@ -27,7 +22,7 @@ author_email='javialonso007@hotmail.es', description='Download, compile and install the latest stable kernel for your Linux system', long_description=long_description, - long_description_content_type='text/x-rst', + long_description_content_type='text/markdown', include_package_data=True, zip_safe=False, download_url="https://github.com/Javinator9889/KernelUpgrader/archive/master.zip",