diff options
author | Mike Gilbert <floppym@gentoo.org> | 2013-04-17 17:07:30 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2013-04-17 17:07:30 +0000 |
commit | bbe65a27b148681e1bab1f7a03dd297e3ee44bf5 (patch) | |
tree | 6c9a0d3d9b390feb8c311342160a74b507062499 /dev-python | |
parent | Version bump (diff) | |
download | gentoo-2-bbe65a27b148681e1bab1f7a03dd297e3ee44bf5.tar.gz gentoo-2-bbe65a27b148681e1bab1f7a03dd297e3ee44bf5.tar.bz2 gentoo-2-bbe65a27b148681e1bab1f7a03dd297e3ee44bf5.zip |
Version bump with python3 support.
(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Diffstat (limited to 'dev-python')
4 files changed, 52 insertions, 62 deletions
diff --git a/dev-python/transmissionrpc/ChangeLog b/dev-python/transmissionrpc/ChangeLog index 6e9e23ae4a56..38921bdcfc18 100644 --- a/dev-python/transmissionrpc/ChangeLog +++ b/dev-python/transmissionrpc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/transmissionrpc # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/transmissionrpc/ChangeLog,v 1.7 2013/02/03 21:28:03 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/transmissionrpc/ChangeLog,v 1.8 2013/04/17 17:07:29 floppym Exp $ + +*transmissionrpc-0.10 (17 Apr 2013) + + 17 Apr 2013; Mike Gilbert <floppym@gentoo.org> +transmissionrpc-0.10.ebuild, + -files/transmissionrpc-timestamp-test.patch, transmissionrpc-9999.ebuild: + Version bump with python3 support. 03 Feb 2013; Zac Medico <zmedico@gentoo.org> transmissionrpc-0.9.ebuild: Fix SRC_URI. diff --git a/dev-python/transmissionrpc/files/transmissionrpc-timestamp-test.patch b/dev-python/transmissionrpc/files/transmissionrpc-timestamp-test.patch deleted file mode 100644 index 3f7384b3a301..000000000000 --- a/dev-python/transmissionrpc/files/transmissionrpc-timestamp-test.patch +++ /dev/null @@ -1,55 +0,0 @@ -# HG changeset patch -# User Mike Gilbert <floppymaster@gmail.com> -# Date 1312249052 14400 -# Node ID 144110dc47fae14f2692afa1be1e57d461b7393e -# Parent 4fe71eb818d0a220b8fe6370fa00c997e7f12e4b -Use UTC for utils.format_timestamp unit test. - -This removes dependence on the local time zone when running tests. - -diff --git a/test/utils.py b/test/utils.py ---- a/test/utils.py -+++ b/test/utils.py -@@ -55,11 +55,11 @@ - def testFormatTimestamp(self): - table = { - 0: '-', -- 1: '1970-01-01 01:00:01', -- 1129135532: '2005-10-12 18:45:32', -+ 1: '1970-01-01 00:00:01', -+ 1129135532: '2005-10-12 16:45:32', - } - for timestamp, expected in table.iteritems(): -- self.assertEqual(tu.format_timestamp(timestamp), expected) -+ self.assertEqual(tu.format_timestamp(timestamp, utc=True), expected) - - def testInetAddress(self): - table = { -@@ -97,4 +97,4 @@ - return suite - - if __name__ == '__main__': -- unittest.main() -\ No newline at end of file -+ unittest.main() -diff --git a/transmissionrpc/utils.py b/transmissionrpc/utils.py ---- a/transmissionrpc/utils.py -+++ b/transmissionrpc/utils.py -@@ -34,12 +34,15 @@ - hours, minutes = divmod(minutes, 60) - return '%d %02d:%02d:%02d' % (delta.days, hours, minutes, seconds) - --def format_timestamp(timestamp): -+def format_timestamp(timestamp, utc=False): - """ - Format unix timestamp into ISO date format. - """ - if timestamp > 0: -- dt_timestamp = datetime.datetime.fromtimestamp(timestamp) -+ if utc: -+ dt_timestamp = datetime.datetime.utcfromtimestamp(timestamp) -+ else: -+ dt_timestamp = datetime.datetime.fromtimestamp(timestamp) - return dt_timestamp.isoformat(' ') - else: - return '-' diff --git a/dev-python/transmissionrpc/transmissionrpc-0.10.ebuild b/dev-python/transmissionrpc/transmissionrpc-0.10.ebuild new file mode 100644 index 000000000000..2e77017bebd7 --- /dev/null +++ b/dev-python/transmissionrpc/transmissionrpc-0.10.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/transmissionrpc/transmissionrpc-0.10.ebuild,v 1.1 2013/04/17 17:07:29 floppym Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} ) + +inherit distutils-r1 + +if [[ ${PV} != 9999 ]]; then + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + https://bitbucket.org/blueluna/transmissionrpc/src/release-0.10/test/data/ubuntu-12.04.2-alternate-amd64.iso.torrent" + KEYWORDS="~amd64 ~x86" +else + inherit mercurial + EHG_REPO_URI="https://bitbucket.org/blueluna/${PN}" + KEYWORDS="" +fi + +DESCRIPTION="Python module that implements the Transmission bittorrent client RPC protocol" +HOMEPAGE="https://bitbucket.org/blueluna/transmissionrpc" + +LICENSE="MIT" +SLOT="0" +IUSE="" + +RDEPEND=">=dev-python/six-1.1.0[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +src_unpack() { + unpack ${P}.tar.gz + cp "${DISTDIR}/ubuntu-12.04.2-alternate-amd64.iso.torrent" ${P}/test/data/ || die +} + +python_test() { + esetup.py test +} diff --git a/dev-python/transmissionrpc/transmissionrpc-9999.ebuild b/dev-python/transmissionrpc/transmissionrpc-9999.ebuild index a6c9440bebc3..bde51fc60bed 100644 --- a/dev-python/transmissionrpc/transmissionrpc-9999.ebuild +++ b/dev-python/transmissionrpc/transmissionrpc-9999.ebuild @@ -1,17 +1,16 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/transmissionrpc/transmissionrpc-9999.ebuild,v 1.3 2013/02/03 20:16:52 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/transmissionrpc/transmissionrpc-9999.ebuild,v 1.4 2013/04/17 17:07:29 floppym Exp $ EAPI=5 -PYTHON_COMPAT=( python{2_6,2_7} pypy{1_9,2_0} ) +PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} ) inherit distutils-r1 if [[ ${PV} != 9999 ]]; then - SRC_URI="mirror://pypi/${PN:0:1}/${P}.tar.gz" + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" KEYWORDS="~amd64 ~x86" - RESTRICT="test" else inherit mercurial EHG_REPO_URI="https://bitbucket.org/blueluna/${PN}" @@ -25,8 +24,9 @@ LICENSE="MIT" SLOT="0" IUSE="" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" -RDEPEND="" +RDEPEND=">=dev-python/six-1.1.0[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" python_test() { esetup.py test |