Mercurial > hgrepos > Python > apps > py-cutils
changeset 74:6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 26 Feb 2022 19:35:41 +0100 |
| parents | c3268f4e752f |
| children | a31de3c65877 |
| files | MANIFEST.in dos2unix.py shasum.py |
| diffstat | 3 files changed, 35 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MANIFEST.in Sat Feb 26 19:32:01 2022 +0100 +++ b/MANIFEST.in Sat Feb 26 19:35:41 2022 +0100 @@ -1,2 +1,2 @@ -include .hg* *.txt +include .hg* *.txt *.py global-exclude *.pyc *.pyo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dos2unix.py Sat Feb 26 19:35:41 2022 +0100 @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +# :- +# :Copyright: (c) 2020-2022 Franz Glasner +# :License: BSD-3-Clause +# :- +r"""Pure Python implementation of `dos2unix` + +""" + +from __future__ import absolute_import + +import sys + +import cutils.dos2unix + + +sys.exit(cutils.dos2unix.main())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/shasum.py Sat Feb 26 19:35:41 2022 +0100 @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +# :- +# :Copyright: (c) 2020-2022 Franz Glasner +# :License: BSD-3-Clause +# :- +r"""Pure Python implementation of `shasum` + +""" + +from __future__ import absolute_import + +import sys + +import cutils.shasum + + +sys.exit(cutils.shasum.main())
