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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 59CE0158091 for ; Mon, 23 May 2022 06:55:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 95627E087A; Mon, 23 May 2022 06:55:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 78B73E087A for ; Mon, 23 May 2022 06:55:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8D1BF341913 for ; Mon, 23 May 2022 06:55:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C069E4B2 for ; Mon, 23 May 2022 06:55:29 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1653288925.228fd40a9899fadf5b4c4b6e3c45d130f72614c3.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/vdirsyncer/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/vdirsyncer/vdirsyncer-0.18.0-r4.ebuild X-VCS-Directories: dev-python/vdirsyncer/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 228fd40a9899fadf5b4c4b6e3c45d130f72614c3 X-VCS-Branch: master Date: Mon, 23 May 2022 06:55:29 +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: 4f1c84fb-d994-440b-b26f-0b79165a5909 X-Archives-Hash: c28cc93a9c5750960d5d2f3c435bba56 commit: 228fd40a9899fadf5b4c4b6e3c45d130f72614c3 Author: Michał Górny gentoo org> AuthorDate: Mon May 23 06:45:36 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon May 23 06:55:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=228fd40a dev-python/vdirsyncer: Use PEP517 build Signed-off-by: Michał Górny gentoo.org> dev-python/vdirsyncer/vdirsyncer-0.18.0-r4.ebuild | 76 +++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/dev-python/vdirsyncer/vdirsyncer-0.18.0-r4.ebuild b/dev-python/vdirsyncer/vdirsyncer-0.18.0-r4.ebuild new file mode 100644 index 000000000000..1c3ec4b29ac6 --- /dev/null +++ b/dev-python/vdirsyncer/vdirsyncer-0.18.0-r4.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 systemd + +DESCRIPTION="Synchronize calendars and contacts" +HOMEPAGE=" + https://github.com/pimutils/vdirsyncer/ + https://pypi.org/project/vdirsyncer/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + dev-python/click[${PYTHON_USEDEP}] + >=dev-python/click-log-0.3.0[${PYTHON_USEDEP}] + >=dev-python/click-threading-0.5[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/requests-toolbelt[${PYTHON_USEDEP}] + dev-python/atomicwrites[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pytest-localserver[${PYTHON_USEDEP}] + dev-python/pytest-subtesthack[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-0.18.0-no-cov.patch" +) + +DOCS=( AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst config.example ) + +distutils_enable_tests pytest + +src_prepare() { + # unpin click-log + # https://github.com/pimutils/vdirsyncer/commit/ea640001d0ad6e56369102e02b949c865c48726f + sed -i -e '/click-log/s:, <0.4.0::' setup.py || die + distutils-r1_src_prepare +} + +python_test() { + # skip tests needing servers running + local -x DAV_SERVER=skip + local -x REMOTESTORAGE_SERVER=skip + # pytest dies hard if the envvars do not have any value... + local -x CI=false + local -x DETERMINISTIC_TESTS=false + + local EPYTEST_DESELECT=( + # test CA is too weak for modern python + tests/system/utils/test_main.py::test_request_ssl + tests/system/utils/test_main.py::test_request_ssl_fingerprints + ) + + epytest +} + +src_install() { + distutils-r1_src_install + + systemd_douserunit contrib/vdirsyncer.{service,timer} +}