diff --git a/project_scaffold_cli/templates/python/setup.py.j2 b/project_scaffold_cli/templates/python/setup.py.j2 new file mode 100644 index 0000000..efd6aac --- /dev/null +++ b/project_scaffold_cli/templates/python/setup.py.j2 @@ -0,0 +1,48 @@ +from setuptools import setup, find_packages + +with open("README.md", "r", encoding="utf-8") as fh: + long_description = fh.read() + +setup( + name="{{ project_slug }}", + version="1.0.0", + author="{{ author }}", + author_email="{{ email }}", + description="{{ description }}", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/{{ author|replace(' ', '-') }}/{{ project_slug }}", + packages=find_packages(), + python_requires=">=3.8", + install_requires=[ + {% if template_vars and template_vars.python %} + {% for dep in template_vars.python.get('dependencies', []) %} + "{{ dep }}", + {% endfor %} + {% else %} + {% endif %} + ], + extras_require={ + "dev": [ + "pytest>=7.0", + "pytest-cov>=4.0", + "black>=23.0", + "flake8>=6.0", + ], + }, + entry_points={ + "console_scripts": [ + "{{ project_slug }}={{ project_slug }}.cli:main", + ], + }, + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + ], +)