INNER CODE UNIT · Python

parse_module_metadata

autopilot-rs/autopy · setup.py:30

def parse_module_metadata():
    with open("autopy/__init__.py", "r") as f:
        body = f.read()
        return [grep_attr(body, attr) for attr in ("version", "author")]


def strtobool(string):
    return bool(distutils.util.strtobool(string))


def git_rev_count(revision):
    return subprocess.check_output(["git",
                                    "rev-list",
                                    "--count",
                                    revision]).decode("utf-8").strip()


def expand_version(version):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…