python-Jinja2 move to core
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import pythonmodules
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
examples = "%s/%s/examples" % (get.docDIR(), get.srcNAME())
|
||||
|
||||
WorkDir = "Jinja2-%s" % get.srcVERSION()
|
||||
|
||||
def build():
|
||||
pythonmodules.compile()
|
||||
|
||||
def install():
|
||||
pythonmodules.install()
|
||||
|
||||
pisitools.insinto(examples, "examples/*")
|
||||
|
||||
#Create docs with python-Sphinx
|
||||
#shelltools.cd("docs")
|
||||
#autotools.make("html")
|
||||
#shelltools.cd("..")
|
||||
#pisitools.dohtml("Jinja2-%s/docs/_build/html/*" % get.srcVERSION())
|
||||
pisitools.dodoc("CHANGES*", "README*")
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
Description: drop next import from docs/jinjaext.py
|
||||
next is not available in jinja2/utils.py and all Python versions supported by
|
||||
Jessie already support this function, no need for backwards compatible wrapper
|
||||
Author: Piotr Ożarowski <piotr@debian.org>
|
||||
--- jinja2-2.7.orig/docs/jinjaext.py
|
||||
+++ jinja2-2.7/docs/jinjaext.py
|
||||
@@ -23,7 +23,7 @@ from pygments.style import Style
|
||||
from pygments.token import Keyword, Name, Comment, String, Error, \
|
||||
Number, Operator, Generic
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
-from jinja2.utils import next
|
||||
+#from jinja2.utils import next
|
||||
|
||||
|
||||
def parse_rst(state, content_offset, doc):
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>python-Jinja2</Name>
|
||||
<Homepage>http://jinja.pocoo.org/2/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>as-is</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>A small but fast and easy to use stand-alone template engine written in pure python</Summary>
|
||||
<Description>Jinja2 is the rewritten version of Jinja, sandboxed template engine written in pure Python. It provides a Django like non-XML syntax and compiles templates into executable python code. It's basically a combination of Django templates and python code.</Description>
|
||||
<Archive sha1sum="896a71a32336487edf1216d5d73dd3b26c4d7431" type="targz">https://files.pythonhosted.org/packages/93/ea/d884a06f8c7f9b7afbc8138b762e80479fb17aedbbe2b06515a12de9378d/Jinja2-2.10.1.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<!-- For creating documentations-->
|
||||
<!--<Dependency>python-sphinx</Dependency>-->
|
||||
<Dependency>python-setuptools</Dependency>
|
||||
<Dependency>python-MarkupSafe</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!-- <Patch level="1">drop_next_import_from_docs-jinjaext.patch</Patch> -->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>python-Jinja2</Name>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/python*</Path>
|
||||
<Path fileType="doc">/usr/share/doc/python-Jinja2/LICENSE</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python-Jinja2-docs</Name>
|
||||
<Files>
|
||||
<Path fileType="doc">/usr/share/doc/python-Jinja2</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="6">
|
||||
<Date>2019-10-03</Date>
|
||||
<Version>2.10.1</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>idris Kalp</Name>
|
||||
<Email>idriskalp@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2018-08-15</Date>
|
||||
<Version>2.10</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2018-02-26</Date>
|
||||
<Version>2.10</Version>
|
||||
<Comment>Version Bump</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2017-01-29</Date>
|
||||
<Version>2.9.5</Version>
|
||||
<Comment>Version Bump</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2016-06-09</Date>
|
||||
<Version>2.7.2</Version>
|
||||
<Comment>Release Bump</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2014-02-27</Date>
|
||||
<Version>2.7.2</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>python-Jinja2</Name>
|
||||
<Summary xml:lang="tr">Küçük, hızlı ve kullanımı kolay, sadece python ile yazılmış bir bağımsız şablon üreteci</Summary>
|
||||
<Description xml:lang="tr">Jinja2, sadece python ile yazılmış bir şablon üreteci olan Jinja'nın yeniden yazılmış bir versiyonudur. Django benzeri XML-olmayan bir sözdizimi sağlar ve şablonları derleyip çalıştırılabilir python programları haline getirir. Temel olarak Django şablonları ve python kodunun birleşimi bir programdır.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>python-Jinja2-docs</Name>
|
||||
<Summary xml:lang="tr">python-Jinja2 için belgelendirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user