Skip to content

Commit a2c1bfd

Browse files
committed
update template!
1 parent c6b0d7a commit a2c1bfd

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

gen/templates/setup.mustache

+11-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
{{>partial_header}}
44

5+
import os
56
from setuptools import setup, find_packages # noqa: H301
67

78
NAME = "{{{projectName}}}"
@@ -24,21 +25,27 @@ REQUIRES.append("aiohttp >= 3.0.0")
2425
REQUIRES.append("tornado>=4.2,<5")
2526
{{/tornado}}
2627
28+
here = os.path.abspath(os.path.dirname(__file__))
29+
30+
def get_file_text(file_name):
31+
with open(os.path.join(here, file_name)) as in_file:
32+
return in_file.read()
33+
2734
setup(
2835
name=NAME,
2936
version=VERSION,
3037
description="{{appName}}",
3138
author="{{#infoName}}{{infoName}}{{/infoName}}{{^infoName}}OpenAPI Generator community{{/infoName}}",
3239
author_email="{{#infoEmail}}{{infoEmail}}{{/infoEmail}}{{^infoEmail}}[email protected]{{/infoEmail}}",
33-
url="{{packageUrl}}",
40+
url="https://github.com/muxinc/mux-python",
3441
keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
3542
install_requires=REQUIRES,
3643
packages=find_packages(exclude=["test", "tests"]),
3744
include_package_data=True,
45+
long_description=get_file_text("README.md"),
46+
long_description_content_type="text/markdown",
3847
{{#licenseInfo}}license="{{licenseInfo}}",
39-
{{/licenseInfo}}long_description="""\
40-
{{appDescription}} # noqa: E501
41-
"""
48+
{{/licenseInfo}}
4249
)
4350
{{/-last}}
4451
{{/apis}}

0 commit comments

Comments
 (0)