From f640f808edfa4fc30abb805caf76b8f59926875d Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 13 Jan 2021 14:53:54 +0000 Subject: dev-python/yappi: fix 1.3.0 tarball The GIT_COMMIT wasn't updated, so the stabled(!) version was actually 1.2.5 still. Fixed the commit, dropped back to ~arch, added a gevent test dependency. Closes: https://bugs.gentoo.org/762193 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sam James --- dev-python/yappi/Manifest | 2 +- dev-python/yappi/yappi-1.3.0-r1.ebuild | 36 ++++++++++++++++++++++++++++++++++ dev-python/yappi/yappi-1.3.0.ebuild | 35 --------------------------------- 3 files changed, 37 insertions(+), 36 deletions(-) create mode 100644 dev-python/yappi/yappi-1.3.0-r1.ebuild delete mode 100644 dev-python/yappi/yappi-1.3.0.ebuild (limited to 'dev-python/yappi') diff --git a/dev-python/yappi/Manifest b/dev-python/yappi/Manifest index 15620f122210..bf54e86e8269 100644 --- a/dev-python/yappi/Manifest +++ b/dev-python/yappi/Manifest @@ -1,3 +1,3 @@ DIST yappi-1.2.5.tar.gz 928100 BLAKE2B 1d303226821d53fb215ac29f8363d9f564f9f40096b5ba8f67475c4074012316f523afb6d770cff879038cd333ef7f050b29c015e2dd2e517859f66a0e1f36f3 SHA512 ec784e76b56e8bc0c3cfe07c90d0810fa90d5a7da62f36187e8a09a9d6e01f3c2d74320de3dd3f4bf1d4a9425fee319c7a575a9d35ad5412c1501c934f1ba353 -DIST yappi-1.3.0.tar.gz 928100 BLAKE2B 1d303226821d53fb215ac29f8363d9f564f9f40096b5ba8f67475c4074012316f523afb6d770cff879038cd333ef7f050b29c015e2dd2e517859f66a0e1f36f3 SHA512 ec784e76b56e8bc0c3cfe07c90d0810fa90d5a7da62f36187e8a09a9d6e01f3c2d74320de3dd3f4bf1d4a9425fee319c7a575a9d35ad5412c1501c934f1ba353 +DIST yappi-1.3.0.gh.tar.gz 936160 BLAKE2B fcb7651a188e8442f9cac8dc680cc2c944f0f20d322982eaa3f75893f8575db45144f9fac51af58e4c75001603fce08c65d5ffd02b47cceb0d4db0af0ffb1b36 SHA512 ae7c27231721df1a705905c0270feb3e469d156fd8e62fe83a8387920662eb10c5262783b74e97fb01c8ea0dcdb6b78dcce3a87ab5472f1a8f6f03849480a523 DIST yappi-1.3.2.tar.gz 936566 BLAKE2B 55f114b8ed8689944f8146cb283701b41f34e87f3e5104d7d8df239cd2afc24f1ca1bf86f99bf672735677005df6527c83c5306a7902ea45e335134a925d6e18 SHA512 7a555bf6db8d7b9d8b4e36ceda1a40319a3d0aa478c512fb0fbca678dd3966b1facffa7555dca1ffaf07461ed3ab81284bd643e331eb2e6d1ee9c99eab1acb55 diff --git a/dev-python/yappi/yappi-1.3.0-r1.ebuild b/dev-python/yappi/yappi-1.3.0-r1.ebuild new file mode 100644 index 000000000000..6e3a3a01455c --- /dev/null +++ b/dev-python/yappi/yappi-1.3.0-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + +# no tags on github, no tests on pypi +COMMIT_HASH="ade55478807aa957714e0ef3e228d0cf0c68949d" + +DESCRIPTION="Yet Another Python Profiler" +HOMEPAGE="https://pypi.org/project/yappi/ https://github.com/sumerc/yappi" +SRC_URI="https://github.com/sumerc/yappi/archive/${COMMIT_HASH}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT_HASH}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( dev-python/gevent[${PYTHON_USEDEP}] )" + +distutils_enable_tests unittest + +PATCHES=( + "${FILESDIR}/yappi-1.2.5-warnings.patch" + "${FILESDIR}/yappi-1.3.0-tests.patch" +) + +python_prepare_all() { + cp tests/utils.py "${S}" || die + distutils-r1_python_prepare_all +} diff --git a/dev-python/yappi/yappi-1.3.0.ebuild b/dev-python/yappi/yappi-1.3.0.ebuild deleted file mode 100644 index 3f448ea8e3c0..000000000000 --- a/dev-python/yappi/yappi-1.3.0.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=(python3_{7..9}) -DISTUTILS_USE_SETUPTOOLS=rdepend -inherit distutils-r1 - -# no tags on github, no tests on pypi -COMMIT_HASH="b6c7d9f0bb40b511f61bb82cc395ad9140a4f4b0" - -DESCRIPTION="Yet Another Python Profiler" -HOMEPAGE="https://pypi.org/project/yappi/ https://github.com/sumerc/yappi" -SRC_URI="https://github.com/sumerc/yappi/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}-${COMMIT_HASH}" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ~arm64 x86" - -#RDEPEND=" -# $(python_gen_cond_dep 'dev-python/contextvars[${PYTHON_USEDEP}]' 'python3_6') -#" - -distutils_enable_tests unittest - -PATCHES=( - "${FILESDIR}/yappi-1.2.5-warnings.patch" - "${FILESDIR}/yappi-1.3.0-tests.patch" -) - -python_prepare_all() { - cp tests/utils.py "${S}" || die - distutils-r1_python_prepare_all -} -- cgit v1.2.3-65-gdbad