diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/mako | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/mako')
-rw-r--r-- | dev-python/mako/Manifest | 6 | ||||
-rw-r--r-- | dev-python/mako/files/pygments-exception.patch | 32 | ||||
-rw-r--r-- | dev-python/mako/mako-1.0.3.ebuild | 55 | ||||
-rw-r--r-- | dev-python/mako/mako-1.0.6.ebuild | 58 | ||||
-rw-r--r-- | dev-python/mako/metadata.xml | 11 |
5 files changed, 162 insertions, 0 deletions
diff --git a/dev-python/mako/Manifest b/dev-python/mako/Manifest new file mode 100644 index 000000000000..b076460e71eb --- /dev/null +++ b/dev-python/mako/Manifest @@ -0,0 +1,6 @@ +AUX pygments-exception.patch 1456 BLAKE2B a5cea58cab2dfbff872db7eda2a7753d69fcd0ddc2cc70ac9ba05978beff8fcbf2bd3ea4627639247de5a2e343ee30144216d28b890414a50cfa54b9cd97a73c SHA512 c43f620fe52e1a69e52a14a4ef3a390ff38d6507a53a70b2da0625b3be1941a0f6b2cb23d2ee60a391e78d8062ba2a9c76d8c5ab0556e01c256867dede44ef61 +DIST Mako-1.0.3.tar.gz 565224 BLAKE2B 8c9a6fa10a6a8d5fc87ff75b77b11e411bd79adcab64e3b3b9066ba7010db94d98c7e8e422e1f89a3ff326501eff8dd6129a1af97d131babcd00047b0db19c29 SHA512 1652cb3f7ea6484975c16f914ce9c070e503ff532564f76a048dd316e5eb12ff2b2445f272be55147d4d62b45906d5e14b3799c9136622ed0867a00875a0e52d +DIST Mako-1.0.6.tar.gz 575112 BLAKE2B c8354faf03ca2b6dfbb82ae96e8b86385630713a0ebb1d592179acaa78e0950a0b013da05da0c079263043a4ce8958e5ec50215c401b2c4fcabfd7f364d92be5 SHA512 15608f2487783ea3a48faf743ee1b8e811adc34281c613e56f1a4548f3c614d1d5dbc943911943a7f8f6d34a962a27387d8fc17862038c1abee2e6c3328a79cf +EBUILD mako-1.0.3.ebuild 1408 BLAKE2B 6ff326737561bfc128527020d21cb8ae0da47007e70d23606ffd0a8644a67b11aa6c0c7d0babc41c8b038d99fb3db28a899bcf04ab18873e7b2afeffd01e4c6c SHA512 9ffd33d5236948976f8b00f1b0d56c3904a19c90fd17d30ad965e450c6e170b5d285aaf2cc21d77564b8d19ff87a0c17010f52037d6dfb39f7d6d4691e904793 +EBUILD mako-1.0.6.ebuild 1477 BLAKE2B 83d366f715e9e6c1f2147e68bf721e1f19cae024eeebd7a83d18768d823add1269552689548a800c6a7719f0cceb9a4ecb54bbfb21efc6cf3af098ca5a6d5298 SHA512 4d41e035241253556f9e1a5c731160e33ce20d759afd739f2c488d67c2cc5a4ec506643f90e58a3f7fe503837af5e631d64e5b3a0fccb400e151426b5dbd834e +MISC metadata.xml 317 BLAKE2B 1b8ed4d3958df0960dda7060ead69fff4ea6f0c6087d99af4ceeeb8d1fae9a88657aec6eb1695ec5f990e48f167e729ce65507080ef0ea5d23617d439621921d SHA512 5df2d87e902b439727d8be3861e626ff798a546f09dbfdd19ee7384dc1ca0474d1b3ff2f638d262217f0105fc2536a3ac2440cc5b1161cb510976bd2ca6d1da8 diff --git a/dev-python/mako/files/pygments-exception.patch b/dev-python/mako/files/pygments-exception.patch new file mode 100644 index 000000000000..0d2faca4f688 --- /dev/null +++ b/dev-python/mako/files/pygments-exception.patch @@ -0,0 +1,32 @@ +From 8eaf6b7ea92018202a886e1d919e2c6b0d307c99 Mon Sep 17 00:00:00 2001 +From: Mike Bayer <mike_mp@zzzcomputing.com> +Date: Mon, 22 May 2017 22:30:54 -0400 +Subject: [PATCH] - exception test fixes for more recent pygments + +Change-Id: Ibdfe5b2f2f3d1426921bcadf6740ae065ed0833b +--- + test/test_exceptions.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test/test_exceptions.py b/test/test_exceptions.py +index 8321b25..bcaae3b 100644 +--- a/test/test_exceptions.py ++++ b/test/test_exceptions.py +@@ -91,7 +91,7 @@ def test_utf8_html_error_template_pygments(self): + assert "".encode(sys.getdefaultencoding(), + 'htmlentityreplace') in html_error + else: +- assert 'u''\ ++ assert '''\ + 'привет'\ + ''</span><span class="cp">}</span>'.encode( + sys.getdefaultencoding(), +@@ -220,7 +220,7 @@ def test_utf8_format_exceptions_pygments(self): + assert ''привет'</span>' in \ + l.get_template("foo.html").render().decode('utf-8') + else: +- assert 'u'прив'\ ++ assert ''прив'\ + 'ет'</span>' in \ + l.get_template("foo.html").render().decode('utf-8') + diff --git a/dev-python/mako/mako-1.0.3.ebuild b/dev-python/mako/mako-1.0.3.ebuild new file mode 100644 index 000000000000..11a0191f097d --- /dev/null +++ b/dev-python/mako/mako-1.0.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 eutils versionator + +MY_PN="Mako" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="A Python templating language" +HOMEPAGE="http://www.makotemplates.org/ https://pypi.org/project/Mako/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="doc test" + +RDEPEND=" + >=dev-python/markupsafe-0.9.2[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) + )" + +S="${WORKDIR}/${MY_P}" + +python_test() { + nosetests "${S}"/test || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + rm -rf doc/build || die + + use doc && local HTML_DOCS=( doc/. ) + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "Caching support" dev-python/beaker + for v in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 0.7.3-r2 $v; then + ewarn "dev-python/beaker is no longer hard dependency of ${P}" + ewarn "If you rely on it, you should add beaker to your world" + ewarn "file:" + ewarn "# emerge --noreplace beaker" + break + fi + done +} diff --git a/dev-python/mako/mako-1.0.6.ebuild b/dev-python/mako/mako-1.0.6.ebuild new file mode 100644 index 000000000000..bda8e2befec7 --- /dev/null +++ b/dev-python/mako/mako-1.0.6.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 eutils versionator + +MY_PN="Mako" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="A Python templating language" +HOMEPAGE="http://www.makotemplates.org/ https://pypi.org/project/Mako/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="doc test" + +RDEPEND=" + >=dev-python/markupsafe-0.9.2[${PYTHON_USEDEP}]" + +DEPEND=" + ${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) + )" + +S="${WORKDIR}/${MY_P}" +PATCHES=( "${FILESDIR}/pygments-exception.patch" ) + +python_test() { + nosetests "${S}"/test || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + rm -rf doc/build || die + + use doc && local HTML_DOCS=( doc/. ) + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "Caching support" dev-python/beaker + for v in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 0.7.3-r2 $v; then + ewarn "dev-python/beaker is no longer hard dependency of ${P}" + ewarn "If you rely on it, you should add beaker to your world" + ewarn "file:" + ewarn "# emerge --noreplace beaker" + break + fi + done +} diff --git a/dev-python/mako/metadata.xml b/dev-python/mako/metadata.xml new file mode 100644 index 000000000000..edcc780c70de --- /dev/null +++ b/dev-python/mako/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">mako</remote-id> + </upstream> +</pkgmetadata> |