def setup(filename='setup.py'):
    """
    Returns a Python package `setup.py` template.
    """
    with open(filename, 'w') as f:
        f.write(
            """import setuptools


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

setuptools.setup(
    name="Foo",
    version="0.1",
    author="Myself",
    author_email="my@self.com",
    description="Foobar",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/foo/bar",
    packages=setuptools.find_packages(),
    entry_points={
        'console_scripts': ['foo = foo.cli:main']
    },
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    python_requires='>=3',
)"""
            )
