comparison setup.py @ 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 1de48e84a5fb
comparison
equal deleted inserted replaced
30:ffcce6062bee 31:7af20e752600
12 12
13 if (sys.version_info[0] < 2) or \ 13 if (sys.version_info[0] < 2) or \
14 ((sys.version_info[0] == 2) and (sys.version_info[1] < 7)): 14 ((sys.version_info[0] == 2) and (sys.version_info[1] < 7)):
15 raise ValueError("Need at least Python 2.7") 15 raise ValueError("Need at least Python 2.7")
16 16
17
18 pkg_root = os.path.dirname(__file__) 17 pkg_root = os.path.dirname(__file__)
19 18
20 _version_re = re.compile(br"^\s*__version__\s*=\s*(\"|')(.*)\1\s*(#.*)?$", 19 _version_re = re.compile(br"^\s*__version__\s*=\s*(\"|')(.*)\1\s*(#.*)?$",
21 re.MULTILINE) 20 re.MULTILINE)
22 21
23 with open(os.path.join(pkg_root, "_cutils.py"), "rb") as vf: 22 with open(os.path.join(pkg_root, "_cutils.py"), "rb") as vf:
24 version = _version_re.search(vf.read()).group(2).decode("utf-8") 23 version = _version_re.search(vf.read()).group(2).decode("utf-8")
25 24
25 with open(os.path.join(pkg_root, "README.txt"), "rt") as rf:
26 long_description = rf.read()
26 27
27 setup( 28 setup(
28 name="py-cutils", 29 name="py-cutils",
29 version=version, 30 version=version,
30 author="Franz Glasner", 31 author="Franz Glasner",
31 license="BSD 3-Clause License", 32 license="BSD 3-Clause License",
32 url="https://pypi.dom66.de/simple/py-cutils/", 33 url="https://pypi.dom66.de/simple/py-cutils/",
33 description="Pure Python implementation of some coreutils", 34 description="Pure Python implementation of some coreutils",
34 long_description="Pure Python implementation of some coreutils", 35 long_description=long_description,
35 py_modules=["_cutils", 36 py_modules=["_cutils",
36 "shasum",], 37 "shasum",],
37 include_package_data=False, 38 include_package_data=False,
38 zip_safe=True, 39 zip_safe=True,
39 platforms="any", 40 platforms="any",