Mercurial > hgrepos > Python > apps > py-cutils
changeset 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 | ed8c901aec21 |
| files | .hgkwarchive README.txt setup.py |
| diffstat | 3 files changed, 20 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- /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`
--- 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,
