From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5A544138350 for ; Thu, 2 Apr 2020 10:09:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7DE12E0ADA; Thu, 2 Apr 2020 10:09:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5E896E0ADA for ; Thu, 2 Apr 2020 10:09:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3A6D534EFAD for ; Thu, 2 Apr 2020 10:09:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1D94D71 for ; Thu, 2 Apr 2020 10:09:38 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1585822169.b8912a8ccecc534293879a6d133eb256f395f829.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/fake-useragent/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/fake-useragent/Manifest dev-python/fake-useragent/fake-useragent-0.1.11.ebuild X-VCS-Directories: dev-python/fake-useragent/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: b8912a8ccecc534293879a6d133eb256f395f829 X-VCS-Branch: dev Date: Thu, 2 Apr 2020 10:09:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d3ba720d-3fc7-4c1f-a5e1-8c3a9c195b79 X-Archives-Hash: 44e390c06d144f8424ea5d72a0341b1c commit: b8912a8ccecc534293879a6d133eb256f395f829 Author: Andrew Ammerlaan riseup net> AuthorDate: Thu Apr 2 10:09:29 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Thu Apr 2 10:09:29 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b8912a8c dev-python/fake-useragent: fix tests and doc Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan riseup.net> dev-python/fake-useragent/Manifest | 2 +- dev-python/fake-useragent/fake-useragent-0.1.11.ebuild | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/dev-python/fake-useragent/Manifest b/dev-python/fake-useragent/Manifest index 063a0c0..366fc02 100644 --- a/dev-python/fake-useragent/Manifest +++ b/dev-python/fake-useragent/Manifest @@ -1 +1 @@ -DIST fake-useragent-0.1.11.tar.gz 13200 BLAKE2B 13ba8a37a418fb8ed11491171a502737b51a60b9a6d54969f20ef0a5fb10e77dc33dd897d13d7034719c5d1376701f38dc6d17a9f5e484dc566fc647b8546075 SHA512 38dd46a1186a92b87d8886876dd0163640d39a852c00d7264947f940a59331168d595c4ee9fce357a2fed07425a557d80ad6c5a693ec0087ea2b69e327927ed1 +DIST fake-useragent-0.1.11.tar.gz 20989 BLAKE2B affa8cb9c6102076ed19429310ed870d2ebb6f3948ddd12508c80e27648bdcd502c3e5b04e836b0be4ac5e1cd6e400054d5a3d1d9d721298cfa1d9ad4161d6fd SHA512 f73e1348af2694469a22a4cc91e9a5d57cce33b969d016903fc7fb4f91375ea5b24a5835cff38181f53dd92794d5606f52822e06d43801c0442f2b389378b2d2 diff --git a/dev-python/fake-useragent/fake-useragent-0.1.11.ebuild b/dev-python/fake-useragent/fake-useragent-0.1.11.ebuild index e38fefb..1c81a42 100644 --- a/dev-python/fake-useragent/fake-useragent-0.1.11.ebuild +++ b/dev-python/fake-useragent/fake-useragent-0.1.11.ebuild @@ -12,7 +12,7 @@ HOMEPAGE=" https://github.com/hellysmile/fake-useragent https://pypi.org/project/fake-useragent " -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/hellysmile/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" @@ -49,5 +49,16 @@ RDEPEND=" " DEPEND="${RDEPEND}" +python_prepare_all() { + # do not depend on pytest-cov + sed -i -e '/addopts/d' pytest.ini || die + + # skip online tests + rm tests/test_fake.py || die + rm tests/test_utils.py || die + + distutils-r1_python_prepare_all +} + distutils_enable_tests pytest -distutils_enable_sphinx docs +distutils_enable_sphinx docs --no-autodoc From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 688D9138350 for ; Thu, 2 Apr 2020 10:12:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 84E1CE0BC5; Thu, 2 Apr 2020 10:12:38 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 71056E0BC5 for ; Thu, 2 Apr 2020 10:12:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8AAC734F02A for ; Thu, 2 Apr 2020 10:12:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 633DE1C8 for ; Thu, 2 Apr 2020 10:12:34 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1585822169.b8912a8ccecc534293879a6d133eb256f395f829.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/fake-useragent/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/fake-useragent/Manifest dev-python/fake-useragent/fake-useragent-0.1.11.ebuild X-VCS-Directories: dev-python/fake-useragent/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: b8912a8ccecc534293879a6d133eb256f395f829 X-VCS-Branch: master Date: Thu, 2 Apr 2020 10:12:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: df242d8b-eef4-437e-a606-45d1a7500839 X-Archives-Hash: 9356de504b74e7549d964bee3ca89405 Message-ID: <20200402101234.KjW_Wfa6dngQD_uudW97viWnjiLIFkWztcKJZUEwHEw@z> commit: b8912a8ccecc534293879a6d133eb256f395f829 Author: Andrew Ammerlaan riseup net> AuthorDate: Thu Apr 2 10:09:29 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Thu Apr 2 10:09:29 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b8912a8c dev-python/fake-useragent: fix tests and doc Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan riseup.net> dev-python/fake-useragent/Manifest | 2 +- dev-python/fake-useragent/fake-useragent-0.1.11.ebuild | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/dev-python/fake-useragent/Manifest b/dev-python/fake-useragent/Manifest index 063a0c0..366fc02 100644 --- a/dev-python/fake-useragent/Manifest +++ b/dev-python/fake-useragent/Manifest @@ -1 +1 @@ -DIST fake-useragent-0.1.11.tar.gz 13200 BLAKE2B 13ba8a37a418fb8ed11491171a502737b51a60b9a6d54969f20ef0a5fb10e77dc33dd897d13d7034719c5d1376701f38dc6d17a9f5e484dc566fc647b8546075 SHA512 38dd46a1186a92b87d8886876dd0163640d39a852c00d7264947f940a59331168d595c4ee9fce357a2fed07425a557d80ad6c5a693ec0087ea2b69e327927ed1 +DIST fake-useragent-0.1.11.tar.gz 20989 BLAKE2B affa8cb9c6102076ed19429310ed870d2ebb6f3948ddd12508c80e27648bdcd502c3e5b04e836b0be4ac5e1cd6e400054d5a3d1d9d721298cfa1d9ad4161d6fd SHA512 f73e1348af2694469a22a4cc91e9a5d57cce33b969d016903fc7fb4f91375ea5b24a5835cff38181f53dd92794d5606f52822e06d43801c0442f2b389378b2d2 diff --git a/dev-python/fake-useragent/fake-useragent-0.1.11.ebuild b/dev-python/fake-useragent/fake-useragent-0.1.11.ebuild index e38fefb..1c81a42 100644 --- a/dev-python/fake-useragent/fake-useragent-0.1.11.ebuild +++ b/dev-python/fake-useragent/fake-useragent-0.1.11.ebuild @@ -12,7 +12,7 @@ HOMEPAGE=" https://github.com/hellysmile/fake-useragent https://pypi.org/project/fake-useragent " -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/hellysmile/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" @@ -49,5 +49,16 @@ RDEPEND=" " DEPEND="${RDEPEND}" +python_prepare_all() { + # do not depend on pytest-cov + sed -i -e '/addopts/d' pytest.ini || die + + # skip online tests + rm tests/test_fake.py || die + rm tests/test_utils.py || die + + distutils-r1_python_prepare_all +} + distutils_enable_tests pytest -distutils_enable_sphinx docs +distutils_enable_sphinx docs --no-autodoc