# HG changeset patch # User Franz Glasner # Date 1607330260 -3600 # Node ID 7af20e752600658ccd4a998e9ee43aea4171cfd3 # Parent ffcce6062bee4a7f06cbbda1eb4895f867d6bea2 Add a README.txt diff -r ffcce6062bee -r 7af20e752600 .hgkwarchive --- a/.hgkwarchive Mon Dec 07 09:30:53 2020 +0100 +++ b/.hgkwarchive Mon Dec 07 09:37:40 2020 +0100 @@ -1,2 +1,3 @@ [patterns] **.py = RCS, reST +path:README.txt = reST diff -r ffcce6062bee -r 7af20e752600 README.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.txt Mon Dec 07 09:37:40 2020 +0100 @@ -0,0 +1,16 @@ +=========== + py-cutils +=========== + +:Author: Franz Glasner +:Version: 0.1 +:Date: 2020-12-04 +:Copyright: (c) 2020 Franz Glasner. All rights reserved. +:License: BSD 3-Clause "New" or "Revised" License +:ID: @(#) $HGid$ + +Pure Python implementations of coreutils. + +Currently implemented: + +- `shasum` as :command:`py-shasum` diff -r ffcce6062bee -r 7af20e752600 setup.py --- 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,