Mercurial > hgrepos > Python > apps > py-cutils
diff setup.py @ 72:ae2df602beb4
Make shasum.py and dos2unix sub-modules to the new "cutils" package
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 26 Feb 2022 19:20:20 +0100 |
| parents | dc198b661149 |
| children | c3268f4e752f |
line wrap: on
line diff
--- a/setup.py Sat Feb 26 18:55:57 2022 +0100 +++ b/setup.py Sat Feb 26 19:20:20 2022 +0100 @@ -19,7 +19,7 @@ _version_re = re.compile(br"^\s*__version__\s*=\s*(\"|')(.*)\1\s*(#.*)?$", re.MULTILINE) -with open(os.path.join(pkg_root, "_cutils.py"), "rb") as vf: +with open(os.path.join(pkg_root, "cutils", "__init__.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: @@ -33,9 +33,7 @@ url="https://pypi.dom66.de/simple/py-cutils/", description="Pure Python implementation of some coreutils", long_description=long_description, - py_modules=["_cutils", - "dos2unix", - "shasum", ], + packages=["cutils",], include_package_data=False, zip_safe=True, platforms="any", @@ -55,8 +53,8 @@ python_requires=">=2.7", entry_points={ "console_scripts": [ - "py-dos2unix=dos2unix:main", - "py-shasum=shasum:main", + "py-dos2unix=cutils.dos2unix:main", + "py-shasum=cutils.shasum:main", ] } )
