Gentoo Archives: gentoo-commits

From: Ian Delaney <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pysrt/
Date: Tue, 02 Feb 2016 12:43:35
Message-Id: 1454290942.c1f9eae2aaf0f57da949d20b601985c55a053870.idella4@gentoo
1 commit: c1f9eae2aaf0f57da949d20b601985c55a053870
2 Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com>
3 AuthorDate: Mon Feb 1 01:35:33 2016 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 01:42:22 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1f9eae2
7
8 dev-python/pysrt: support Python 3.5, fix tests, take package
9
10 Pull releases from github instead of pypi
11
12 Package-Manager: portage-2.2.27
13
14 dev-python/pysrt/metadata.xml | 24 +++++++++++++-----------
15 dev-python/pysrt/pysrt-1.0.1.ebuild | 21 ++++++++++-----------
16 dev-python/pysrt/pysrt-9999.ebuild | 15 ++++++++-------
17 3 files changed, 31 insertions(+), 29 deletions(-)
18
19 diff --git a/dev-python/pysrt/metadata.xml b/dev-python/pysrt/metadata.xml
20 index 6518363..9950bf8 100644
21 --- a/dev-python/pysrt/metadata.xml
22 +++ b/dev-python/pysrt/metadata.xml
23 @@ -1,15 +1,17 @@
24 <?xml version="1.0" encoding="UTF-8"?>
25 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
26 <pkgmetadata>
27 - <maintainer type="person">
28 - <email>nikoli@×××.us</email>
29 - </maintainer>
30 - <maintainer type="project">
31 - <email>proxy-maint@g.o</email>
32 - <name>Proxy Maintainers</name>
33 - </maintainer>
34 - <upstream>
35 - <remote-id type="pypi">pysrt</remote-id>
36 - <remote-id type="github">byroot/pysrt</remote-id>
37 - </upstream>
38 + <maintainer type="person">
39 + <email>sautier.louis@×××××.com</email>
40 + <name>Louis Sautier</name>
41 + <description>Proxied maintainer; set to assignee in all bugs</description>
42 + </maintainer>
43 + <maintainer type="project">
44 + <email>proxy-maint@g.o</email>
45 + <name>Proxy Maintainers</name>
46 + </maintainer>
47 + <upstream>
48 + <remote-id type="pypi">pysrt</remote-id>
49 + <remote-id type="github">byroot/pysrt</remote-id>
50 + </upstream>
51 </pkgmetadata>
52
53 diff --git a/dev-python/pysrt/pysrt-1.0.1.ebuild b/dev-python/pysrt/pysrt-1.0.1.ebuild
54 index db90218..effad92 100644
55 --- a/dev-python/pysrt/pysrt-1.0.1.ebuild
56 +++ b/dev-python/pysrt/pysrt-1.0.1.ebuild
57 @@ -1,32 +1,31 @@
58 -# Copyright 1999-2015 Gentoo Foundation
59 +# Copyright 1999-2016 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 # $Id$
62
63 EAPI="5"
64 -PYTHON_COMPAT=( python{2_7,3_3,3_4} )
65 +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
66
67 inherit distutils-r1
68
69 DESCRIPTION="Python library used to edit or create SubRip files"
70 HOMEPAGE="https://github.com/byroot/pysrt https://pypi.python.org/pypi/pysrt"
71 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
72 +# pypi tarballs don't include tests https://github.com/byroot/pysrt/issues/42
73 +SRC_URI="https://github.com/byroot/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
74
75 LICENSE="GPL-3"
76 SLOT="0"
77 KEYWORDS="~amd64 ~x86"
78 IUSE="test"
79
80 -RDEPEND="
81 - dev-python/chardet[${PYTHON_USEDEP}]
82 -"
83 -DEPEND="${RDEPEND}
84 +RDEPEND="dev-python/chardet[${PYTHON_USEDEP}]"
85 +DEPEND="
86 dev-python/setuptools[${PYTHON_USEDEP}]
87 - test? ( dev-python/nose[coverage(+),${PYTHON_USEDEP}] )
88 + test? (
89 + dev-python/nose[coverage(+),${PYTHON_USEDEP}]
90 + ${RDEPEND}
91 + )
92 "
93
94 -# https://github.com/byroot/pysrt/issues/42
95 -RESTRICT="test"
96 -
97 python_test() {
98 nosetests --with-coverage --cover-package=pysrt \
99 || die "Tests failed under ${EPYTHON}"
100
101 diff --git a/dev-python/pysrt/pysrt-9999.ebuild b/dev-python/pysrt/pysrt-9999.ebuild
102 index 374a8c7..52db6b6 100644
103 --- a/dev-python/pysrt/pysrt-9999.ebuild
104 +++ b/dev-python/pysrt/pysrt-9999.ebuild
105 @@ -1,9 +1,9 @@
106 -# Copyright 1999-2015 Gentoo Foundation
107 +# Copyright 1999-2016 Gentoo Foundation
108 # Distributed under the terms of the GNU General Public License v2
109 # $Id$
110
111 EAPI="5"
112 -PYTHON_COMPAT=( python{2_7,3_3,3_4} )
113 +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
114
115 inherit distutils-r1 git-r3
116
117 @@ -16,12 +16,13 @@ SLOT="0"
118 KEYWORDS=""
119 IUSE="test"
120
121 -RDEPEND="
122 - dev-python/chardet[${PYTHON_USEDEP}]
123 -"
124 -DEPEND="${RDEPEND}
125 +RDEPEND="dev-python/chardet[${PYTHON_USEDEP}]"
126 +DEPEND="
127 dev-python/setuptools[${PYTHON_USEDEP}]
128 - test? ( dev-python/nose[coverage(+),${PYTHON_USEDEP}] )
129 + test? (
130 + dev-python/nose[coverage(+),${PYTHON_USEDEP}]
131 + ${RDEPEND}
132 + )
133 "
134
135 python_test() {