summaryrefslogtreecommitdiff
path: root/dev-python/pyprof2calltree
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pyprof2calltree
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pyprof2calltree')
-rw-r--r--dev-python/pyprof2calltree/Manifest8
-rw-r--r--dev-python/pyprof2calltree/files/pyprof2calltree-1.4.0-py3-test.patch30
-rw-r--r--dev-python/pyprof2calltree/metadata.xml11
-rw-r--r--dev-python/pyprof2calltree/pyprof2calltree-1.3.2.ebuild18
-rw-r--r--dev-python/pyprof2calltree/pyprof2calltree-1.4.0.ebuild26
5 files changed, 93 insertions, 0 deletions
diff --git a/dev-python/pyprof2calltree/Manifest b/dev-python/pyprof2calltree/Manifest
new file mode 100644
index 000000000000..4fba95dca8c1
--- /dev/null
+++ b/dev-python/pyprof2calltree/Manifest
@@ -0,0 +1,8 @@
+AUX pyprof2calltree-1.4.0-py3-test.patch 895 SHA256 69a397ecfecd7c3d7e3315200874a8053571af4c31c87c63ab31a274adea35f1 SHA512 26f55492e65f8708c0587c594ae05a4ffe2611debe1dacabfa6b959468c02ae5e3c4b8ca0a86fc8f23be1646aef83b9450468483f7f40a8f746e026dac0b70db WHIRLPOOL 6f24c7840fa64085a0213eca4e4fd977eb18e10d7d19cc3c39faba22e59aac3ceb6384b24d35b0b019200cf78dde04074b500ac576fc3cea4b1d0784b2a6b860
+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
+EBUILD pyprof2calltree-1.3.2.ebuild 448 SHA256 6097c8bebaec7796220d17169bd099ef3462848970289b46fde7ce3ccd638cfe SHA512 c3c6ebc4b423239a32cf5ca29bd372b5faf3e8ff7714270e5f43c38d9a5c00ea92a257d1a0f6ea0945b7133b2bc6b992ec6e1ac446ca15a74e6d89a146641799 WHIRLPOOL 25575c8b763696a5c4eabbe98d9fe0d4f12d0cd95aacd122c47c3119dae0aae78a9ff68aec83c09b78bd1f07a9dfced4a85cd272c41b4b8c613a64e8736661e9
+EBUILD pyprof2calltree-1.4.0.ebuild 679 SHA256 37f250fe13b4af103b145c4eb990f46b7c2452ba363bfa637ddf34269d4ce67c SHA512 99cf40f898dcb494fed690199526182b2895f2b53881abfcaa0bf4087fec143559aac704d9ed2a0f5c55b97176116f445125e35b4e4b82593fc74442f141af75 WHIRLPOOL 46176db6821d0879a9c63e7ebc680c3ea7ae336d3b83d2c4ea674e31881ead3a2a4c831f8d9b58fce2fd1a12adeaee841a57ef32a90911d8d27caf38790e6f10
+MISC ChangeLog 2872 SHA256 a07ce0e784c9c7e3883fb57531f9ec3211ca2023fddadb18c2e0945c317eac2c SHA512 72f2efc19d04e4f2a7a206864cc14793ec14df7a2486a971edd2abd2684de10fc893fd16af80f62627a6a6f2db8a001c00ae788cadbf573082088142e20f9af1 WHIRLPOOL ee446a1d3720d5d15bcb9ba30a4a0bba33d1ece84966c3aeefacdb5eb77fe20a82aac1be8db90776847f815825ce1b2fa6314574cb6243c111ad211c25d24c1f
+MISC ChangeLog-2015 1331 SHA256 a70b64632ecdf8bd6584ff26a49b20e13a14e5e9cda4fdc3406ef7f78ef216fd SHA512 e1b964d02cf58c14e9ea30447aaedfb44e9c99f8739e72b5ea03d5f9117fd76673cbb869a95b1ddaa136f9cc49a9999bf877a470a4674781d11bd13ba216124d WHIRLPOOL a8d81e75c2ba733792a77b9b6358be450190fe596730a169c5e5de6dbdfd7865f60e0f9cc4e0859316f57ad460d18f90bef0dfaeadd8973ee50d6253a7e331eb
+MISC metadata.xml 318 SHA256 54c065877a5b8131bbd36531acb9ed551ee05be257926494885b93239cbf0e15 SHA512 7a75d6efb9f11a6e1ce086cf53e5038b12815fe8110bf16c9b6e781c31cb721ec8694fb6fb0d4d131f9581cb130cecbceadf0e10b1528717cb8f4ab977514372 WHIRLPOOL eb4e737a6e950cc3ae453ff6be33eb2223edad86c5bd3b322799a774d1e130441f7c6eb42950e7acf52337de20c29fb8b5292bd1b320ab3bd0141fff264c1a36
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/metadata.xml b/dev-python/pyprof2calltree/metadata.xml
new file mode 100644
index 000000000000..ae7e9c912476
--- /dev/null
+++ b/dev-python/pyprof2calltree/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">pyprof2calltree</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pyprof2calltree/pyprof2calltree-1.3.2.ebuild b/dev-python/pyprof2calltree/pyprof2calltree-1.3.2.ebuild
new file mode 100644
index 000000000000..477d26d8b8ab
--- /dev/null
+++ b/dev-python/pyprof2calltree/pyprof2calltree-1.3.2.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4} )
+
+inherit distutils-r1
+
+DESCRIPTION="convert python profile data to kcachegrind calltree form"
+HOMEPAGE="https://pypi.python.org/pypi/pyprof2calltree/"
+SRC_URI="mirror://pypi/p/${PN}/${PF}.tar.gz"
+IUSE=
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
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}"
+}