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 1106D139360 for ; Wed, 11 Aug 2021 20:05:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 595ECE077C; Wed, 11 Aug 2021 20:05:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 3AFADE077C for ; Wed, 11 Aug 2021 20:05:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 5106D340A12 for ; Wed, 11 Aug 2021 20:05:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CDC3B86D for ; Wed, 11 Aug 2021 20:05:14 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1628711978.756605e0b1e143a14c53f6cc4db9f87f42bec734.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/acme/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/acme/acme-1.18.0-r1.ebuild app-crypt/acme/acme-1.18.0.ebuild X-VCS-Directories: app-crypt/acme/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: 756605e0b1e143a14c53f6cc4db9f87f42bec734 X-VCS-Branch: master Date: Wed, 11 Aug 2021 20:05:14 +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: b815246f-f0c9-4cd9-b546-5bc846774f97 X-Archives-Hash: 4be93832b115024fae326b0085d5fa10 commit: 756605e0b1e143a14c53f6cc4db9f87f42bec734 Author: Louis Sautier gentoo org> AuthorDate: Wed Aug 11 11:34:48 2021 +0000 Commit: Louis Sautier gentoo org> CommitDate: Wed Aug 11 19:59:38 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=756605e0 app-crypt/acme: enable py3.10, fix tests and more * Tests were not actually run by nose, switch to pytest instead, use the standard distutils_enable_tests function. * Remove pytest-xdist from test dependencies as it is not required. * Use distutils_enable_sphinx instead of complex phase function overrides. * Remove idna from RDEPEND, it is not a direct dependency. Signed-off-by: Louis Sautier gentoo.org> .../{acme-1.18.0.ebuild => acme-1.18.0-r1.ebuild} | 44 ++++------------------ 1 file changed, 7 insertions(+), 37 deletions(-) diff --git a/app-crypt/acme/acme-1.18.0.ebuild b/app-crypt/acme/acme-1.18.0-r1.ebuild similarity index 57% rename from app-crypt/acme/acme-1.18.0.ebuild rename to app-crypt/acme/acme-1.18.0-r1.ebuild index 2addb06332f..7c666ebed1f 100644 --- a/app-crypt/acme/acme-1.18.0.ebuild +++ b/app-crypt/acme/acme-1.18.0-r1.ebuild @@ -1,10 +1,13 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 -PYTHON_COMPAT=(python{3_7,3_8,3_9}) +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + if [[ ${PV} == 9999* ]]; then EGIT_REPO_URI="https://github.com/certbot/certbot.git" inherit git-r3 @@ -15,20 +18,15 @@ else S=${WORKDIR}/certbot-${PV}/acme fi -inherit distutils-r1 - DESCRIPTION="An implementation of the ACME protocol" HOMEPAGE="https://github.com/certbot/certbot https://letsencrypt.org/" LICENSE="Apache-2.0" SLOT="0" -IUSE="doc test" -RESTRICT="!test? ( test )" RDEPEND=" dev-python/chardet[${PYTHON_USEDEP}] >=dev-python/cryptography-2.1.4[${PYTHON_USEDEP}] - >=dev-python/idna-2.0.0[${PYTHON_USEDEP}] >=dev-python/josepy-1.1.0[${PYTHON_USEDEP}] >=dev-python/pyopenssl-17.3.0[${PYTHON_USEDEP}] dev-python/pyrfc3339[${PYTHON_USEDEP}] @@ -36,34 +34,6 @@ RDEPEND=" >=dev-python/requests-2.14.2[${PYTHON_USEDEP}] >=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] " -DEPEND=" - doc? ( - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] - ) - test? ( - ${RDEPEND} - dev-python/nose[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - ) -" - -src_compile() { - python_foreach_impl run_in_build_dir default - distutils-r1_src_compile - if use doc ; then - cd docs || die - sphinx-build -b html -d _build/doctrees . _build/html - fi -} - -python_test() { - nosetests -w ${PN} || die -} - -python_install_all() { - use doc && local HTML_DOCS=( docs/_build/html/. ) - distutils-r1_python_install_all -} +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme +distutils_enable_tests pytest