INNER CODE UNIT · Python

get_info

yezyilomo/django-restql · setup.py:22

def get_info(info_name):
    init_py = open(os.path.join("django_restql", "__init__.py")).read()
    return re.search("%s = ['\"]([^'\"]+)['\"]" % info_name, init_py).group(1)


url = get_info("__url__")
version = get_info("__version__")
license_ = get_info("__license__")
description = get_info("__description__")
author = get_info("__author__")
author_email = get_info("__author_email__")
readme = get_readme()

setup(
    name="django-restql",
    version=version,
    description=description,
    long_description=readme,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…