Initial upload: Project Scaffold CLI with multi-language templates and CI/CD
This commit is contained in:
48
project_scaffold_cli/templates/python/setup.py.j2
Normal file
48
project_scaffold_cli/templates/python/setup.py.j2
Normal file
@@ -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",
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user