Mercurial > hgrepos > Python > apps > py-cutils
comparison setup.py @ 30:ffcce6062bee
Put the version number info the optinal common module _cutils.py
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 07 Dec 2020 09:30:53 +0100 |
| parents | c06e438f68b2 |
| children | 7af20e752600 |
comparison
equal
deleted
inserted
replaced
| 29:c06e438f68b2 | 30:ffcce6062bee |
|---|---|
| 18 pkg_root = os.path.dirname(__file__) | 18 pkg_root = os.path.dirname(__file__) |
| 19 | 19 |
| 20 _version_re = re.compile(br"^\s*__version__\s*=\s*(\"|')(.*)\1\s*(#.*)?$", | 20 _version_re = re.compile(br"^\s*__version__\s*=\s*(\"|')(.*)\1\s*(#.*)?$", |
| 21 re.MULTILINE) | 21 re.MULTILINE) |
| 22 | 22 |
| 23 with open(os.path.join(pkg_root, "shasum.py"), "rb") as vf: | 23 with open(os.path.join(pkg_root, "_cutils.py"), "rb") as vf: |
| 24 version = _version_re.search(vf.read()).group(2).decode("utf-8") | 24 version = _version_re.search(vf.read()).group(2).decode("utf-8") |
| 25 | 25 |
| 26 | 26 |
| 27 setup( | 27 setup( |
| 28 name="py-cutils", | 28 name="py-cutils", |
| 30 author="Franz Glasner", | 30 author="Franz Glasner", |
| 31 license="BSD 3-Clause License", | 31 license="BSD 3-Clause License", |
| 32 url="https://pypi.dom66.de/simple/py-cutils/", | 32 url="https://pypi.dom66.de/simple/py-cutils/", |
| 33 description="Pure Python implementation of some coreutils", | 33 description="Pure Python implementation of some coreutils", |
| 34 long_description="Pure Python implementation of some coreutils", | 34 long_description="Pure Python implementation of some coreutils", |
| 35 py_modules=["shasum"], | 35 py_modules=["_cutils", |
| 36 "shasum",], | |
| 36 include_package_data=False, | 37 include_package_data=False, |
| 37 zip_safe=True, | 38 zip_safe=True, |
| 38 platforms="any", | 39 platforms="any", |
| 39 classifiers=[ | 40 classifiers=[ |
| 40 "Development Status :: 5 - Production/Stable", | 41 "Development Status :: 5 - Production/Stable", |
