import json
import setuptools

with open("template/README.md", "r") as fh:
    long_description = fh.read()

with open('requirements.txt') as fr:
    requirements = fr.read().strip().split('\n')

with open('metadata.json') as fr:
    metadata = json.load(fr)

setuptools.setup(
    name="",  # Name of the repository
    version="0.0.1",
    author=metadata.get("author", ""),
    author_email=metadata.get("author_email", ""),
    description=metadata.get("description", ""),
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="",  # Repository URL or externally maintained page
    packages=setuptools.find_packages(),
    python_requires='>=3.6',
    install_requires=requirements,
)

[(11, 'json.load', 'json.load', False, 'import json\n'), (22, 'setuptools.find_packages', 'setuptools.find_packages', False, 'import setuptools\n')]