Mercurial > hgrepos > Python > libs > data-schema
view setup.py @ 39:78f5ef0ee087
Implement "ref-false", "ref-not-exists", "when-ref-false" and "when-ref-not-exists" in addition to the existing conditions
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Wed, 19 Jul 2023 14:19:21 +0200 |
| parents | 72f8dd2ce0ba |
| children |
line wrap: on
line source
# -*- coding: utf-8; indent-tabs-mode: nil; -*- import os import re from setuptools import setup pkg_root = os.path.dirname(__file__) _version_re = re.compile(br"^\s*__version__\s*=\s*(\"|')(.*)\1\s*(#.*)?$", re.MULTILINE) with open(os.path.join(pkg_root, "data_schema", "__init__.py"), "rb") as vf: version = _version_re.search(vf.read()).group(2).decode("utf-8") setup(version=version)
