aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - tweaksuse_zzzeeksphinxMike Bayer2018-10-042-1/+3
|
* Remove built-in theme and start using zzzeeksphinx.Mike Bayer2018-10-0315-1048/+11
| | | | | this allows maintenance of the "non-standard Sphinx theme" to remain in one place.
* - add py37Mike Bayer2018-06-281-1/+1
| | | | Change-Id: I151a2351a7fadffd99c843e70c1504135a2c56c6
* Remove redundant Python<2.6 codeHugo2018-01-165-13/+4
| | | | | | | | | | | | | | | | | | | | | Includes PR https://github.com/zzzeek/mako/pull/26 so [Travis CI passes](https://travis-ci.org/hugovk/mako/builds/329346809). The last two commits are unique to this PR. --- Since Mako 1.0.0, Python 2.6 has been the minimum supported version: > [general] Compatibility changes; in order to modernize the codebase, Mako is now dropping support for Python 2.4 and Python 2.5 altogether. The source base is now targeted at Python 2.6 and forwards. http://docs.makotemplates.org/en/latest/changelog.html#change-b602a175c0ec26eaa4f42962d23cca96 This removes redundant code only relevant to Python 2.5 or earlier. It also adds `python_requires` to setup.py, so pip won't install this version on Python 2.5 or earlier. For people with older versions, pip will install the next Mako version down. Are all Python 3.x versions supported? If not, I'll add those to `python_requires` as well. Change-Id: I624e1d56e79555c579278c7a5b4de9498179ffe9 Pull-request: https://github.com/zzzeek/mako/pull/27
* Merge remote-tracking branch 'github/pr/26'Mike Bayer2018-01-162-9/+10
|\
| * Use tox-travis to avoid InterpreterNotFoundHugo2018-01-151-10/+9
| |
| * Test on Python 3.5 and 3.6Hugo2018-01-152-1/+3
| |
* | Removed unnecessary "usage" prefix from mako-render script.Hugo2018-01-162-1/+7
| | | | | | | | | | | | | | | | Pull request courtesy Hugo. (cherry picked from commit 7e6a1d7822bac275aabb3c1cc90cb67612548127) Change-Id: I84a302c982f18762d2514c3f840331d1eb3ebcda
* | Add --output-encoding to mako-renderlacsaP2017-11-153-3/+19
|/ | | | | Fixes: #271 Change-Id: I88b46cfbdea9eda0b4c478dd97829bee8431ff58
* - 1.0.7rel_1_0_7Mike Bayer2017-07-131-0/+1
|
* - add Ben T. for his work with the "loop" contextMike Bayer2017-07-121-0/+1
| | | | Change-Id: Ida3604885af6266579f6004029527e90944d0967
* - add AUTHORS, fixes #264Mike Bayer2017-07-121-1/+1
| | | | Change-Id: I7ba06757b36c6694a1415266f78d79436475caa7
* Use sys.stdout.write instead of print in cmdlineYves Chevallier2017-07-052-1/+9
| | | | | | | The `print` function adds an unwanted `\n` char. Change-Id: I4e345214352f0925c374145f41be45550da27393 Pull-request: https://github.com/zzzeek/mako/pull/23
* - 1.0.7 placeholderMike Bayer2017-07-052-1/+4
| | | | Change-Id: Ic586955b3faf41632da794792ecc9ae447a4051e
* - exception test fixes for more recent pygmentsMike Bayer2017-05-221-2/+2
| | | | Change-Id: Ibdfe5b2f2f3d1426921bcadf6740ae065ed0833b
* Merge branch 'master' of github.com:zzzeek/makoMike Bayer2017-05-173-9/+9
|\
| * Merge pull request #22 from ygingras/mastermike bayer2017-05-103-9/+9
| |\ | | | | | | Marked some docstrings as raw strings to address the invalid escape warning on Python 3.6+
| | * Marked some docstrings as raw strings to address the invalid escape warning ↵Yannick Gingras2017-05-103-9/+9
| |/ | | | | | | on Python 3.6+
* | Merged in scop/mako/spelling (pull request #25)Ville Skyttä2017-05-174-4/+4
|\ \ | | | | | | | | | Spelling fixes
| * | Spelling fixesVille Skyttä2017-05-114-4/+4
| |/
* | Merged in scop/mako/py36syntax (pull request #23)Ville Skyttä2017-05-171-2/+2
|\ \ | |/ |/| | | Python 3.6 syntax fixes
| * Python 3.6 syntax fixesVille Skyttä2017-05-111-2/+2
|/
* - rtd fixesMike Bayer2016-11-091-2/+2
| | | | Change-Id: Ifd065e96676fde5429fd3d5f27c59c960e1ac6bb
* - 1.0.6rel_1_0_6Mike Bayer2016-11-091-0/+1
|
* Add include_error_handler parameter.Huayi Zhang2016-11-085-3/+58
| | | | | | | | This works like error_handler but is specific to a template when included in another using the include tag. Change-Id: Ie5506a8cba42c71519c703eacc82050902b9ceba Pull-request: https://bitbucket.org/zzzeek/mako/pull-requests/22
* - 1.0.6 placeholderMike Bayer2016-11-082-1/+4
| | | | Change-Id: Ib357002b0c919ce532c9b67ba40fcee91ba2554c
* Add .gitreview fileMike Bayer2016-11-081-0/+4
| | | | Change-Id: I05fcaaebe4566093894fc6abdee705c955ec4a09
* - 1.0.5rel_1_0_5Mike Bayer2016-11-021-0/+1
|
* - add 1.0.5 + changelog for the sphinx fixMike Bayer2016-11-022-1/+10
| | | | in 161b1cf57a3777922fd3e05a6e1314386c2a3912
* Update for sphinx internal structure change layoutNishanth Aravamudan2016-09-271-1/+1
| | | | | | | | | | | | | As reported upstream in sphinx: https://github.com/sphinx-doc/sphinx/pull/2396 It was a structural change in sphinx-1.4. I'm not sure if this is the proper fix, but it does let the doc build pass, in my testing. Originally reported at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830178. Signed-off-by: Nishanth Aravamudan <nish.aravamudan@canonical.com>
* - 1.0.4rel_1_0_4Mike Bayer2016-03-101-1/+1
|
* - happy new yearMike Bayer2016-03-1022-22/+22
|
* - use py.test as default test runnerMike Bayer2016-03-103-8/+50
| | | | | - upgrade tox file to use py35, coverage, etc. - add flake8 rules
* - disable some beaker tests that fail for 2.6Mike Bayer2016-03-092-1/+4
|
* - reduce the pygments strings we're searching for to accommodate forMike Bayer2016-03-091-26/+8
| | | | | | changes in pygments formatting; we might be losing a bit of what was tested here originally but we still assert pygments is taking place.
* - cap lingua at <4 for the moment, references #255Mike Bayer2016-03-091-1/+1
|
* - changelog for pullrequest github:19Mike Bayer2016-03-091-0/+10
|
* Merge remote-tracking branch 'github/pr/19'Mike Bayer2016-03-092-12/+31
|\
| * Improve lexer with better string handling and grouping parens/bracketsDaniel Martin2016-02-042-12/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the lexer to correctly handle strings like: ${'backslash quote right-curly is \\\'}'} And also allows users to use the bitwise-or operator to mean bitwise or simply by enclosing the expression inside parens: ${(0x5432 | 0x8000)} or by using it in the middle of a dictionary literal: ${ {'foo-val': 0x43 | 0x100, 'bar-val': 0x22 | 0x100}[thing+'-val']} or inside brackets: ${ big_lookup_dict[index_low | (indexhigh << 3)] } Basically, only "top level" uses of the vertical bar mean pipe. (Note that currently, any non-top-level use of the vertical bar in an expression just results in a syntax error in the generated python, so no working code is affected by this change)
* | - fix changelog formattingMike Bayer2016-03-091-2/+7
| |
* | - changelog for pr 16Mike Bayer2016-03-092-2/+9
| |
* | Merge branch 'feature-list_defs' of https://bitbucket.org/jvanasco/mako into ↵Mike Bayer2016-03-092-0/+39
|\ \ | | | | | | | | | pr16
| * | added testsjonathan vanasco2015-03-251-0/+35
| | |
| * | added `Template.list_defs`jonathan vanasco2015-03-111-0/+4
| | |
* | | - version bumpMike Bayer2016-03-092-1/+4
| |/ |/|
* | 1.0.3rel_1_0_3Mike Bayer2015-10-271-0/+1
| |
* | - still supporting py2.6 hereMike Bayer2015-10-261-2/+2
| |
* | - changelog for pullreq bitbucket:21Mike Bayer2015-10-262-1/+12
| |
* | Ensure babel i18n extactor works properly with non-ascii inputRoman Imankulov2015-10-134-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If mako templates contain something like "_('Köln')", babel extractor converts it to pure ASCII so that resulting .po file would contain "K\xf6ln". Not all translation tools and translations are ready for such kind of escape sequences. Babel allows message ids to be non-ascii, the plugin just has to return Unicode objects instead of ASCII strings (and that's exactly how Babel built-in Python and JavaScript extractors work). This fix ensures mako extractor doesn't excape non-ascii symbols, works well both for Unicode and non-unicode input (there is a test for cp1251 encoding), and also provides a workaround for babel charset detector python-babel/babel#274.
* | travis!Gabi Davar2015-08-271-0/+11
| |