From c1f9eae2aaf0f57da949d20b601985c55a053870 Mon Sep 17 00:00:00 2001 From: Louis Sautier Date: Mon, 1 Feb 2016 02:35:33 +0100 Subject: dev-python/pysrt: support Python 3.5, fix tests, take package Pull releases from github instead of pypi Package-Manager: portage-2.2.27 --- dev-python/pysrt/metadata.xml | 24 +++++++++++++----------- dev-python/pysrt/pysrt-1.0.1.ebuild | 21 ++++++++++----------- dev-python/pysrt/pysrt-9999.ebuild | 15 ++++++++------- 3 files changed, 31 insertions(+), 29 deletions(-) diff --git a/dev-python/pysrt/metadata.xml b/dev-python/pysrt/metadata.xml index 6518363b6800..9950bf88affa 100644 --- a/dev-python/pysrt/metadata.xml +++ b/dev-python/pysrt/metadata.xml @@ -1,15 +1,17 @@ - - nikoli@gmx.us - - - proxy-maint@gentoo.org - Proxy Maintainers - - - pysrt - byroot/pysrt - + + sautier.louis@gmail.com + Louis Sautier + Proxied maintainer; set to assignee in all bugs + + + proxy-maint@gentoo.org + Proxy Maintainers + + + pysrt + byroot/pysrt + diff --git a/dev-python/pysrt/pysrt-1.0.1.ebuild b/dev-python/pysrt/pysrt-1.0.1.ebuild index db90218b1c7f..effad92e2cb9 100644 --- a/dev-python/pysrt/pysrt-1.0.1.ebuild +++ b/dev-python/pysrt/pysrt-1.0.1.ebuild @@ -1,32 +1,31 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI="5" -PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) inherit distutils-r1 DESCRIPTION="Python library used to edit or create SubRip files" HOMEPAGE="https://github.com/byroot/pysrt https://pypi.python.org/pypi/pysrt" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +# pypi tarballs don't include tests https://github.com/byroot/pysrt/issues/42 +SRC_URI="https://github.com/byroot/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="test" -RDEPEND=" - dev-python/chardet[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND} +RDEPEND="dev-python/chardet[${PYTHON_USEDEP}]" +DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] - test? ( dev-python/nose[coverage(+),${PYTHON_USEDEP}] ) + test? ( + dev-python/nose[coverage(+),${PYTHON_USEDEP}] + ${RDEPEND} + ) " -# https://github.com/byroot/pysrt/issues/42 -RESTRICT="test" - python_test() { nosetests --with-coverage --cover-package=pysrt \ || die "Tests failed under ${EPYTHON}" diff --git a/dev-python/pysrt/pysrt-9999.ebuild b/dev-python/pysrt/pysrt-9999.ebuild index 374a8c7f8ddc..52db6b6d427d 100644 --- a/dev-python/pysrt/pysrt-9999.ebuild +++ b/dev-python/pysrt/pysrt-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI="5" -PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) inherit distutils-r1 git-r3 @@ -16,12 +16,13 @@ SLOT="0" KEYWORDS="" IUSE="test" -RDEPEND=" - dev-python/chardet[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND} +RDEPEND="dev-python/chardet[${PYTHON_USEDEP}]" +DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] - test? ( dev-python/nose[coverage(+),${PYTHON_USEDEP}] ) + test? ( + dev-python/nose[coverage(+),${PYTHON_USEDEP}] + ${RDEPEND} + ) " python_test() { -- cgit v1.2.3-65-gdbad