commit:     47936a0f50468cce092fabcdb2caa18104792835
Author:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Wed Feb 15 18:25:32 2023 +0000
Commit:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
CommitDate: Wed Feb 15 20:36:38 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=47936a0f

dev-python/codecov: update HOMEPAGE, SRC_URI, disable tests

Closes: https://bugs.gentoo.org/894282
Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>

 dev-python/codecov/Manifest              |  2 +-
 dev-python/codecov/codecov-2.1.12.ebuild | 36 +++++++++++++++++++-------------
 2 files changed, 22 insertions(+), 16 deletions(-)

diff --git a/dev-python/codecov/Manifest b/dev-python/codecov/Manifest
index 2c44531c1..2751b07a8 100644
--- a/dev-python/codecov/Manifest
+++ b/dev-python/codecov/Manifest
@@ -1 +1 @@
-DIST codecov-2.1.12.tar.gz 20866 BLAKE2B 
dbccde91bf2290eb403a9f52583b1bb4629860a200bc4a592e2e2ad48443c77c3de36c02503f3716b16d941016296f20071ab7f34227058ccdc7c7f8d925d909
 SHA512 
9d364844dc864996e7d65d6210c7bca345a67d5aa61bcdd351591f0aeadcd2662101e59449e8a86b8341d9fc840889cb635b2c41c6287001b598ee1647c86b02
+DIST codecov-2.1.12.gh.tar.gz 27160 BLAKE2B 
93886b117bd0281f72f1bc14d1798ed526edec850ce3d900e505da1469e9bef59caccd449aef557dab7e9ea34c9990d4624d7ebfb9350f27990981223c7c9930
 SHA512 
fac34179ace4d4813ed71a5745e6ef8120d052fd7d7bef5548f80f7009f7b3242ec3aeb948f2125980ea932f130a2e81f742f47a3bd4f984726eaba16e1a7133

diff --git a/dev-python/codecov/codecov-2.1.12.ebuild 
b/dev-python/codecov/codecov-2.1.12.ebuild
index d8422eb97..022d60293 100644
--- a/dev-python/codecov/codecov-2.1.12.ebuild
+++ b/dev-python/codecov/codecov-2.1.12.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -9,25 +9,31 @@ PYTHON_COMPAT=( python3_{9..11} )
 inherit distutils-r1
 
 DESCRIPTION="Hosted coverage reports for GitHub, Bitbucket and Gitlab"
-HOMEPAGE="https://github.com/codecov/codecov-python 
https://pypi.org/project/codecov/";
-SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+HOMEPAGE="https://github.com/codecov/codecov-python 
https://pypi.org/project/codecov";
+SRC_URI="https://github.com/codecov/codecov-python/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.gh.tar.gz"
+S="${WORKDIR}/codecov-python-${PV}"
 
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64"
 
-DOCS=""
-
 RDEPEND=">=dev-python/requests-2.7.9[${PYTHON_USEDEP}]
        dev-python/coverage[${PYTHON_USEDEP}]"
-BDEPEND="
-       dev-python/setuptools[${PYTHON_USEDEP}]
-       test? (
-               dev-python/pytest[${PYTHON_USEDEP}]
-       )"
-
-python_test() {
-       py.test -v -v || die
-}
 
-distutils_enable_tests pytest
+python_prepare_all() {
+       # The tests does not follow the naming convention
+       rm -r "${S}/tests"
+       distutils-r1_python_prepare_all
+}
+# BDEPEND="
+#      test? (
+#              dev-python/pytest[${PYTHON_USEDEP}]
+#              dev-python/ddt[${PYTHON_USEDEP}]
+#              dev-python/mock[${PYTHON_USEDEP}]
+#              dev-python/pytest-cov[${PYTHON_USEDEP}]
+#              dev-python/funcsigs[${PYTHON_USEDEP}]
+#              dev-python/requests[${PYTHON_USEDEP}]
+#              dev-python/black[${PYTHON_USEDEP}]
+#      )"
+
+# distutils_enable_tests pytest

Reply via email to