diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-05-17 20:57:42 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-05-17 22:51:09 +0200 |
commit | 2158b8709bfd4f1e4a67bf18367bf33f117764a5 (patch) | |
tree | 8a34f081aa4b35b6bb3d16937f2993063875ab82 /dev-python/pyprof2calltree | |
parent | dev-lang/php: Version bump for 7.0.19 (diff) | |
download | gentoo-2158b8709bfd4f1e4a67bf18367bf33f117764a5.tar.gz gentoo-2158b8709bfd4f1e4a67bf18367bf33f117764a5.tar.bz2 gentoo-2158b8709bfd4f1e4a67bf18367bf33f117764a5.zip |
dev-python/pyprof2calltree: Bump to 1.4.0
Diffstat (limited to 'dev-python/pyprof2calltree')
-rw-r--r-- | dev-python/pyprof2calltree/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pyprof2calltree/files/pyprof2calltree-1.4.0-py3-test.patch | 30 | ||||
-rw-r--r-- | dev-python/pyprof2calltree/pyprof2calltree-1.4.0.ebuild | 26 |
3 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/pyprof2calltree/Manifest b/dev-python/pyprof2calltree/Manifest index e50740cf625d..925e9a8aacc6 100644 --- a/dev-python/pyprof2calltree/Manifest +++ b/dev-python/pyprof2calltree/Manifest @@ -1 +1,2 @@ DIST pyprof2calltree-1.3.2.tar.gz 6609 SHA256 28eac89262d0edd86ee2574d24d1840cbca2d4ed6a1de7e1d8fc05f30ea5a22b SHA512 e85c5a21fe52b246ee6080f59e2ff115b43e3ab634e2842aff0d493b8b996105e0c1698e049ae7d11ea53c1f1fd601ef5f12c6fba62dcea28ddff23ec61a2736 WHIRLPOOL b132fe3179bbf7e3dc999fe3f8da1fdb298b515c302e76de4d96cff4392966875df8180aba66b535a122c8521d22755efbc9f46a133f8a758cce0a230d943bc3 +DIST pyprof2calltree-1.4.0.tar.gz 7784 SHA256 90ce43399b3594f21eb2683554a41224c97440f939e0542c7f144251faab21f0 SHA512 b1acba29cd4e5112012eeeffdac53900688a28707306ef3a8a3827f7422c35bc921d59d33db3209db923bb8640014e7d9d7d819eafbcb19e0cf7e6159537bded WHIRLPOOL cc1616b398665845cc8478114bc5bcd52179acbfd8e523c76aeb415fbbe58c49e9eaeaf902b650df3a7e251616ab5b4511e352fee17131fa73976f0cddcd56be diff --git a/dev-python/pyprof2calltree/files/pyprof2calltree-1.4.0-py3-test.patch b/dev-python/pyprof2calltree/files/pyprof2calltree-1.4.0-py3-test.patch new file mode 100644 index 000000000000..a91818fca60c --- /dev/null +++ b/dev-python/pyprof2calltree/files/pyprof2calltree-1.4.0-py3-test.patch @@ -0,0 +1,30 @@ +From 582eeeaa930639ccfe9b789b057f170824edd73a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 17 May 2017 20:53:29 +0200 +Subject: [PATCH] tests: Fix StringIO import for Python 3 + +Python 3 no longer provides a 'cStringIO' module. Use StringIO from 'io' +module instead. +--- + tests/test_integration.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/tests/test_integration.py b/tests/test_integration.py +index e6f432c..cf02a4f 100644 +--- a/tests/test_integration.py ++++ b/tests/test_integration.py +@@ -3,7 +3,10 @@ import pstats + import unittest + + from .profile_code import top, expected_output +-from cStringIO import StringIO ++try: ++ from cStringIO import StringIO ++except ImportError: ++ from io import StringIO + from pyprof2calltree import CalltreeConverter + + class MockTimeProfile(cProfile.Profile): +-- +2.13.0 + diff --git a/dev-python/pyprof2calltree/pyprof2calltree-1.4.0.ebuild b/dev-python/pyprof2calltree/pyprof2calltree-1.4.0.ebuild new file mode 100644 index 000000000000..f1bf41cedbac --- /dev/null +++ b/dev-python/pyprof2calltree/pyprof2calltree-1.4.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) + +inherit distutils-r1 + +DESCRIPTION="convert python profile data to kcachegrind calltree form" +HOMEPAGE="https://pypi.python.org/pypi/pyprof2calltree/" +# pypi tarball lacks tests +SRC_URI="https://github.com/pwaller/pyprof2calltree/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}"/pyprof2calltree-1.4.0-py3-test.patch +) + +python_test() { + "${PYTHON}" -m tests.test_integration || die "Tests fail with ${EPYTHON}" +} |