diff --git a/dev-python/line_profiler/Manifest b/dev-python/line_profiler/Manifest new file mode 100644 index 0000000000000..abe554928bcf2 --- /dev/null +++ b/dev-python/line_profiler/Manifest @@ -0,0 +1 @@ +DIST line_profiler-1.0.tar.gz 65862 SHA256 a9e0c9ffa814f1215107c86c890afa8e63bec5a37d951f6f9d3668c1df2b1900 SHA512 15dd7ee10951287a5030eaff28e729e82094ec41d8e8dec803d5e44c6b9036ecbf1198365ef43c1fdd28451dec260c6491d118f1762d99fe037bb85eb7908dda WHIRLPOOL 1fd56ea4777a3c569807a124c708018fc77e68521d1f1ecdb13c343ddad3fcd881353cd71a0af36d06a12f1dd17be0f2731040fca5e827a4936298057dabf917 diff --git a/dev-python/line_profiler/line_profiler-1.0.ebuild b/dev-python/line_profiler/line_profiler-1.0.ebuild new file mode 100644 index 0000000000000..a2df317bf77e2 --- /dev/null +++ b/dev-python/line_profiler/line_profiler-1.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) + +inherit distutils-r1 + +DESCRIPTION="Line-by-line profiler" +HOMEPAGE="https://github.com/rkern/line_profiler" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +KEYWORDS="~amd64" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=" + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) + " + +python_test() { + "${PYTHON}" -m unittest discover -v "${S}"/tests/ \ + || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/line_profiler/line_profiler-9999.ebuild b/dev-python/line_profiler/line_profiler-9999.ebuild new file mode 100644 index 0000000000000..2b7914dee9076 --- /dev/null +++ b/dev-python/line_profiler/line_profiler-9999.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) + +inherit distutils-r1 git-r3 + +DESCRIPTION="Line-by-line profiler" +HOMEPAGE="https://github.com/rkern/line_profiler" +EGIT_REPO_URI="https://github.com/rkern/${PN}.git" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="" +IUSE="test" + +DEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) + " + +python_test() { + "${PYTHON}" -m unittest discover -v "${S}"/tests/ \ + || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/line_profiler/metadata.xml b/dev-python/line_profiler/metadata.xml new file mode 100644 index 0000000000000..270efb218b4c3 --- /dev/null +++ b/dev-python/line_profiler/metadata.xml @@ -0,0 +1,19 @@ + + + + sci + + marbre@linux.sungazer.de + Marius Brehler + + + line_profiler is a module for doing line-by-line profiling of + functions. kernprof is a convenient script for running either + line_profiler or the Python standard library's cProfile or profile + modules, depending on what is available. + + + line_profiler + rkern/line_profiler + +