Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/flask-nav/
Date: Tue, 29 Nov 2016 08:18:02
Message-Id: 1480407364.2e4b0075cdcc22090a5b2cdd1ccdab71e9d19575.soap@gentoo
1 commit: 2e4b0075cdcc22090a5b2cdd1ccdab71e9d19575
2 Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com>
3 AuthorDate: Mon Nov 28 13:36:47 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 08:16:04 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e4b0075
7
8 dev-python/flask-nav: bump to 0.6
9
10 Package-Manager: portage-2.3.2
11 Closes: https://github.com/gentoo/gentoo/pull/2945
12
13 dev-python/flask-nav/Manifest | 1 +
14 dev-python/flask-nav/flask-nav-0.6.ebuild | 52 +++++++++++++++++++++++++++++++
15 2 files changed, 53 insertions(+)
16
17 diff --git a/dev-python/flask-nav/Manifest b/dev-python/flask-nav/Manifest
18 index 8f73c7f..1c9b6af 100644
19 --- a/dev-python/flask-nav/Manifest
20 +++ b/dev-python/flask-nav/Manifest
21 @@ -1 +1,2 @@
22 DIST flask-nav-0.5.tar.gz 11579 SHA256 68a608aae8c6c21453247cc288595c9d52a6b5f3bc31d9a9ee3fd7a1f9c28c47 SHA512 94ebd858754c0ac936b43762cf427c381faa40de86e73b487d6b415d099696e6216b96ad9fefa62516cefd8e51e7ef282e01e1a492783ab696a9fd3602de7e78 WHIRLPOOL f47f6773fd31e4a959437159c5de88f6463ad890e36387cf205ffd42d4de41f375f8264f568bd192ad4f8235cf6e5a6651c2ca3b5dbf14a785f749ab8510a098
23 +DIST flask-nav-0.6.tar.gz 12270 SHA256 53c7c97cbc75ab904389331a7c8870314c040a668914c3554aa77dcd36609f86 SHA512 a7930687425a53fac9ad9a7cb65c2e2a759a0c9660189965bf37ea6e9925dd869074d37a283801631b3e6c3391f9f4167e0a36294104f72970e876b5a7a0930c WHIRLPOOL e29e32bc4c49049bc0660df9e0ba6737ee48f1841b34314b937b5b41b443d4fb0fccc3e9c5502f68a0486b8eb2218a6a9539b22892af4d65e47019669d46864a
24
25 diff --git a/dev-python/flask-nav/flask-nav-0.6.ebuild b/dev-python/flask-nav/flask-nav-0.6.ebuild
26 new file mode 100644
27 index 00000000..2155b9c
28 --- /dev/null
29 +++ b/dev-python/flask-nav/flask-nav-0.6.ebuild
30 @@ -0,0 +1,52 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=6
36 +PYTHON_COMPAT=( python{2_7,3_4,3_5} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Easily create navigation for Flask applications."
41 +HOMEPAGE="https://pythonhosted.org/flask-nav/"
42 +# docs are missing from PyPI tarballs
43 +# https://github.com/mbr/flask-nav/pull/12
44 +SRC_URI="https://github.com/mbr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="doc test"
50 +
51 +RDEPEND="
52 + dev-python/dominate[${PYTHON_USEDEP}]
53 + dev-python/flask[${PYTHON_USEDEP}]
54 + dev-python/visitor[${PYTHON_USEDEP}]
55 +"
56 +DEPEND="
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
59 + test? (
60 + ${RDEPEND}
61 + dev-python/pytest[${PYTHON_USEDEP}]
62 + dev-python/pytest-runner[${PYTHON_USEDEP}]
63 + )
64 +"
65 +
66 +python_prepare_all() {
67 + sed -i "/'sphinx.ext.intersphinx'/d" docs/conf.py || die
68 + distutils-r1_python_prepare_all
69 +}
70 +
71 +python_compile_all() {
72 + use doc && emake -C docs html
73 +}
74 +
75 +python_test() {
76 + py.test || die "Tests failed with ${EPYTHON}"
77 +}
78 +
79 +python_install_all() {
80 + use doc && local HTML_DOCS=( docs/_build/html/. )
81 + distutils-r1_python_install_all
82 +}