view MIT-Permissive-License.txt @ 7899:bec4bc21f845

setup.py: bump Pygments minimum version to 2.2.0 With pygments < 2.2.0, the markup_renderer doctest fails: > python -m doctest kallithea/lib/markup_renderer.py ********************************************************************** File "kallithea/lib/markup_renderer.py", line 184, in markup_renderer.MarkupRenderer.markdown Failed example: print MarkupRenderer.markdown(''' #!/bin/bash echo "hello" ''') Expected: <table class="code-highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1 2</pre></div></td><td class="code"><div class="code-highlight"><pre><span></span><span class="ch">#!/bin/bash</span> <span class="nb">echo</span> <span class="s2">&quot;hello&quot;</span> </pre></div> </td></tr></table> Got: <table class="code-highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1 2</pre></div></td><td class="code"><div class="code-highlight"><pre><span class="ch">#!/bin/bash</span> <span class="nb">echo</span> <span class="s2">&quot;hello&quot;</span> </pre></div> </td></tr></table> ********************************************************************** To avoid having to manage multiple outputs from multiple versions, just bump the lower version. pygments 2.2.0 was released on Jan 22, 2017.
author Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
date Mon, 21 Oct 2019 21:55:58 +0200
parents 08baa849c8a8
children
line wrap: on
line source

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.