Improved new console command

This commit is contained in:
2021-03-10 11:28:04 +01:00
parent 064237904a
commit 9a149ec341
20 changed files with 466 additions and 109 deletions

View File

@@ -1,11 +1,12 @@
from cpl_cli.templates.template import Template
import textwrap
class Setup:
@staticmethod
def get_setup_py() -> str:
string = """\"\"\"
string = textwrap.dedent("""\
\"\"\"
This file is generated by CPL CLI
\"\"\"
@@ -26,6 +27,6 @@ class Setup:
entry_points=$EntryPoints,
package_data=$PackageData
)
"""
""")
return Template.build_template_string(string)
return string