Rename template file to avoid confusing black or other build tools

This commit is contained in:
Nat Noordanus 2020-05-27 10:56:52 +02:00
parent be2a24d15c
commit cd1c2dc3b5
3 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ def generate_code(request, response):
lstrip_blocks=True,
loader=jinja2.FileSystemLoader("%s/templates/" % os.path.dirname(__file__)),
)
template = env.get_template("template.py")
template = env.get_template("template.py.j2")
output_map = {}
for proto_file in request.proto_file:

View File

@ -16,7 +16,7 @@ setup(
packages=find_packages(
exclude=["tests", "*.tests", "*.tests.*", "output", "output.*"]
),
package_data={"betterproto": ["py.typed", "templates/template.py"]},
package_data={"betterproto": ["py.typed", "templates/template.py.j2"]},
python_requires=">=3.6",
install_requires=[
'dataclasses; python_version<"3.7"',