diff setup.py @ 31:7af20e752600

Add a README.txt
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 07 Dec 2020 09:37:40 +0100
parents ffcce6062bee
children 1de48e84a5fb
line wrap: on
line diff
--- a/setup.py	Mon Dec 07 09:30:53 2020 +0100
+++ b/setup.py	Mon Dec 07 09:37:40 2020 +0100
@@ -14,7 +14,6 @@
         ((sys.version_info[0] == 2) and (sys.version_info[1] < 7)):
     raise ValueError("Need at least Python 2.7")
 
-
 pkg_root = os.path.dirname(__file__)
 
 _version_re = re.compile(br"^\s*__version__\s*=\s*(\"|')(.*)\1\s*(#.*)?$",
@@ -23,6 +22,8 @@
 with open(os.path.join(pkg_root, "_cutils.py"), "rb") as vf:
     version = _version_re.search(vf.read()).group(2).decode("utf-8")
 
+with open(os.path.join(pkg_root, "README.txt"), "rt") as rf:
+    long_description = rf.read()    
 
 setup(
     name="py-cutils",
@@ -31,7 +32,7 @@
     license="BSD 3-Clause License",
     url="https://pypi.dom66.de/simple/py-cutils/",
     description="Pure Python implementation of some coreutils",
-    long_description="Pure Python implementation of some coreutils",
+    long_description=long_description,
     py_modules=["_cutils",
                 "shasum",],
     include_package_data=False,