comparison 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
comparison
equal deleted inserted replaced
71:29fb33aa639a 72:ae2df602beb4
17 pkg_root = os.path.dirname(__file__) 17 pkg_root = os.path.dirname(__file__)
18 18
19 _version_re = re.compile(br"^\s*__version__\s*=\s*(\"|')(.*)\1\s*(#.*)?$", 19 _version_re = re.compile(br"^\s*__version__\s*=\s*(\"|')(.*)\1\s*(#.*)?$",
20 re.MULTILINE) 20 re.MULTILINE)
21 21
22 with open(os.path.join(pkg_root, "_cutils.py"), "rb") as vf: 22 with open(os.path.join(pkg_root, "cutils", "__init__.py"), "rb") as vf:
23 version = _version_re.search(vf.read()).group(2).decode("utf-8") 23 version = _version_re.search(vf.read()).group(2).decode("utf-8")
24 24
25 with open(os.path.join(pkg_root, "README.txt"), "rt") as rf: 25 with open(os.path.join(pkg_root, "README.txt"), "rt") as rf:
26 long_description = rf.read() 26 long_description = rf.read()
27 27
31 author="Franz Glasner", 31 author="Franz Glasner",
32 license="BSD 3-Clause License", 32 license="BSD 3-Clause License",
33 url="https://pypi.dom66.de/simple/py-cutils/", 33 url="https://pypi.dom66.de/simple/py-cutils/",
34 description="Pure Python implementation of some coreutils", 34 description="Pure Python implementation of some coreutils",
35 long_description=long_description, 35 long_description=long_description,
36 py_modules=["_cutils", 36 packages=["cutils",],
37 "dos2unix",
38 "shasum", ],
39 include_package_data=False, 37 include_package_data=False,
40 zip_safe=True, 38 zip_safe=True,
41 platforms="any", 39 platforms="any",
42 classifiers=[ 40 classifiers=[
43 "Development Status :: 5 - Production/Stable", 41 "Development Status :: 5 - Production/Stable",
53 "Topic :: Utilities", 51 "Topic :: Utilities",
54 ], 52 ],
55 python_requires=">=2.7", 53 python_requires=">=2.7",
56 entry_points={ 54 entry_points={
57 "console_scripts": [ 55 "console_scripts": [
58 "py-dos2unix=dos2unix:main", 56 "py-dos2unix=cutils.dos2unix:main",
59 "py-shasum=shasum:main", 57 "py-shasum=cutils.shasum:main",
60 ] 58 ]
61 } 59 }
62 ) 60 )