hkage / cookiecutter-tornado Goto Github PK
View Code? Open in Web Editor NEWCookiecutter template for Tornado based projects
License: MIT License
Cookiecutter template for Tornado based projects
License: MIT License
Tornado 6.0.2 has been release on March 23th 2019 (https://www.tornadoweb.org/en/stable/releases/v6.0.2.html). Some changes to the boilerplate seem to be obvious, others have the be checked.
This also affects:
Got the following error (Ubuntu 20.04 LTS):
$ cookiecutter https://github.com/hkage/cookiecutter-tornado
author_name [Your name]: My Name
email [Your e-mail]: [email protected]
project_name [project_name]:
repo_name [project_name]:
package_name [project_name]:
github_username [yourname]:
description [A short description of the project]:
version [0.1.0]:
python_versions [3.5,3.6,3.7,3.8]:
Select use_pytest:
1 - Yes
2 - No
Choose from 1, 2 [1]:
Select use_tox:
1 - Yes
2 - No
Choose from 1, 2 [1]:
Select use_docker:
1 - Yes
2 - No
Choose from 1, 2 [1]:
Select use_vagrant:
1 - Yes
2 - No
Choose from 1, 2 [1]:
Select use_bumpversion:
1 - Yes
2 - No
Choose from 1, 2 [1]:
Select use_i18n:
1 - Yes
2 - No
Choose from 1, 2 [1]:
max_line_length [120]:
Select open_source_license:
1 - MIT license
2 - BSD license
3 - ISC license
4 - Apache Software License 2.0
5 - GNU General Public License v3
6 - Not open source
Choose from 1, 2, 3, 4, 5, 6 [1]:
And got the error:
Traceback (most recent call last):
File "/home/welcome/.local/bin/cookiecutter", line 8, in <module>
sys.exit(main())
File "/home/welcome/.local/lib/python3.8/site-packages/click/core.py", line 1137, in __call__
return self.main(*args, **kwargs)
File "/home/welcome/.local/lib/python3.8/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/home/welcome/.local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/welcome/.local/lib/python3.8/site-packages/click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "/home/welcome/.local/lib/python3.8/site-packages/cookiecutter/cli.py", line 140, in main
cookiecutter(
File "/home/welcome/.local/lib/python3.8/site-packages/cookiecutter/main.py", line 101, in cookiecutter
result = generate_files(
File "/home/welcome/.local/lib/python3.8/site-packages/cookiecutter/generate.py", line 352, in generate_files
generate_file(
File "/home/welcome/.local/lib/python3.8/site-packages/cookiecutter/generate.py", line 169, in generate_file
tmpl = env.get_template(infile_fwd_slashes)
File "/home/welcome/.local/lib/python3.8/site-packages/jinja2/environment.py", line 997, in get_template
return self._load_template(name, globals)
File "/home/welcome/.local/lib/python3.8/site-packages/jinja2/environment.py", line 958, in _load_template
template = self.loader.load(self, name, self.make_globals(globals))
File "/home/welcome/.local/lib/python3.8/site-packages/jinja2/loaders.py", line 137, in load
code = environment.compile(source, name, filename)
File "/home/welcome/.local/lib/python3.8/site-packages/jinja2/environment.py", line 757, in compile
self.handle_exception(source=source_hint)
File "/home/welcome/.local/lib/python3.8/site-packages/jinja2/environment.py", line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
File "./setup.py", line 130, in template
jinja2.exceptions.TemplateSyntaxError: Unexpected end of template. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.
File "./setup.py", line 130
{%- endif %}
The boilerplate should be rewritten to be able to use it as a Cookiecutter template. That would make it possible to enter project specific data, (Python) package names etc.
It would be nice to have a Docker support, in addition to the Vagrant support.
Will python image from python:3.x-alpine a better choice if upgrading tornado to 6.x?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.