1 |
commit: fc84d22804d351edc43c9c6ac343a3f1d0d925f2 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 14 23:12:55 2018 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 14 23:19:51 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc84d228 |
7 |
|
8 |
dev-python/mako: bump to 1.0.7, add PyPy3 |
9 |
|
10 |
* Tests now pass with pypy. |
11 |
* Fix mock DEPEND to include pypy. |
12 |
* Don't add RDEPEND to DEPND unconditionally. |
13 |
* Drop postinst message related to a version that was released in 2012. |
14 |
* Use pytest instead of nose (like upstream). |
15 |
|
16 |
Closes: https://bugs.gentoo.org/620906 |
17 |
Package-Manager: Portage-2.3.42, Repoman-2.3.9 |
18 |
|
19 |
dev-python/mako/Manifest | 1 + |
20 |
dev-python/mako/mako-1.0.7.ebuild | 49 +++++++++++++++++++++++++++++++++++++++ |
21 |
2 files changed, 50 insertions(+) |
22 |
|
23 |
diff --git a/dev-python/mako/Manifest b/dev-python/mako/Manifest |
24 |
index d171a067014..cde4d91be2c 100644 |
25 |
--- a/dev-python/mako/Manifest |
26 |
+++ b/dev-python/mako/Manifest |
27 |
@@ -1,2 +1,3 @@ |
28 |
DIST Mako-1.0.3.tar.gz 565224 BLAKE2B 8c9a6fa10a6a8d5fc87ff75b77b11e411bd79adcab64e3b3b9066ba7010db94d98c7e8e422e1f89a3ff326501eff8dd6129a1af97d131babcd00047b0db19c29 SHA512 1652cb3f7ea6484975c16f914ce9c070e503ff532564f76a048dd316e5eb12ff2b2445f272be55147d4d62b45906d5e14b3799c9136622ed0867a00875a0e52d |
29 |
DIST Mako-1.0.6.tar.gz 575112 BLAKE2B c8354faf03ca2b6dfbb82ae96e8b86385630713a0ebb1d592179acaa78e0950a0b013da05da0c079263043a4ce8958e5ec50215c401b2c4fcabfd7f364d92be5 SHA512 15608f2487783ea3a48faf743ee1b8e811adc34281c613e56f1a4548f3c614d1d5dbc943911943a7f8f6d34a962a27387d8fc17862038c1abee2e6c3328a79cf |
30 |
+DIST Mako-1.0.7.tar.gz 564418 BLAKE2B c7ecad786213a8d3b77241955d5a825513f81bf66b705b6f54d6ff74a6513f7c8bacdc55fa8f21acb03e691900f45605da834a2b941bc65bddb177ce86dbe961 SHA512 d67af6788bf8603010361ce8b6d0355b0191657c07f3b5845f9d5e91653c3e349a7b35d5b36aa9c7f291973c83911ce94075e1cad78e6935d0ed4ee9c6e2a571 |
31 |
|
32 |
diff --git a/dev-python/mako/mako-1.0.7.ebuild b/dev-python/mako/mako-1.0.7.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..0a1c1dab821 |
35 |
--- /dev/null |
36 |
+++ b/dev-python/mako/mako-1.0.7.ebuild |
37 |
@@ -0,0 +1,49 @@ |
38 |
+# Copyright 1999-2018 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=7 |
42 |
+ |
43 |
+PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6}} ) |
44 |
+ |
45 |
+inherit distutils-r1 eutils |
46 |
+ |
47 |
+MY_PN="Mako" |
48 |
+MY_P=${MY_PN}-${PV} |
49 |
+ |
50 |
+DESCRIPTION="A Python templating language" |
51 |
+HOMEPAGE="http://www.makotemplates.org/ https://pypi.org/project/Mako/" |
52 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
53 |
+ |
54 |
+LICENSE="MIT" |
55 |
+SLOT="0" |
56 |
+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" |
57 |
+IUSE="doc test" |
58 |
+ |
59 |
+RDEPEND=">=dev-python/markupsafe-0.9.2[${PYTHON_USEDEP}]" |
60 |
+ |
61 |
+DEPEND=" |
62 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
63 |
+ test? ( |
64 |
+ ${RDEPEND} |
65 |
+ $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' pypy python2_7) |
66 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
67 |
+ ) |
68 |
+" |
69 |
+ |
70 |
+S="${WORKDIR}/${MY_P}" |
71 |
+ |
72 |
+python_test() { |
73 |
+ py.test -v || die "Tests fail with ${EPYTHON}" |
74 |
+} |
75 |
+ |
76 |
+python_install_all() { |
77 |
+ rm -r doc/build || die |
78 |
+ |
79 |
+ use doc && local HTML_DOCS=( doc/. ) |
80 |
+ distutils-r1_python_install_all |
81 |
+} |
82 |
+ |
83 |
+pkg_postinst() { |
84 |
+ elog "Optional dependencies:" |
85 |
+ optfeature "caching support" dev-python/beaker |
86 |
+} |