Rename template file to avoid confusing black or other build tools
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							| @@ -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"', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user