8000 Rename template file to avoid confusing black or other build tools · arpitjain799/python-betterproto@cd1c2dc · GitHub
[go: up one dir, main page]

Skip to content

Commit cd1c2dc

Browse files
committed
Rename template file to avoid confusing black or other build tools
1 parent be2a24d commit cd1c2dc

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

betterproto/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def generate_code(request, response):
183183
lstrip_blocks=True,
184184
loader=jinja2.FileSystemLoader("%s/templates/" % os.path.dirname(__file__)),
185185
)
186-
template = env.get_template("template.py")
186+
template = env.get_template("template.py.j2")
187187

188188
output_map = {}
189189
for proto_file in request.proto_file:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
packages=find_packages(
1717
exclude=["tests", "*.tests", "*.tests.*", "output", "output.*"]
1818
),
19-
package_data={"betterproto": ["py.typed", "templates/template.py"]},
19+
package_data={"betterproto": ["py.typed", "templates/template.py.j2"]},
2020
python_requires=">=3.6",
2121
install_requires=[
2222
'dataclasses; python_version<"3.7"',

0 commit comments

Comments
 (0)
0