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 054A3158088 for ; Sun, 30 Jan 2022 10:04:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8B80F2BC028; Sun, 30 Jan 2022 10:04:31 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A35E2BC020 for ; Sun, 30 Jan 2022 10:04:31 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E792B34341F for ; Sun, 30 Jan 2022 10:04:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5B6692B8 for ; Sun, 30 Jan 2022 10:04:28 +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: <1643537062.e5873eeb500bdf7e4f87e105574b42608948719a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-systemd/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-systemd/python-systemd-234-r2.ebuild X-VCS-Directories: dev-python/python-systemd/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e5873eeb500bdf7e4f87e105574b42608948719a X-VCS-Branch: master Date: Sun, 30 Jan 2022 10:04:28 +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: a86430ea-5e7b-49be-88ed-cb6dab3988a9 X-Archives-Hash: c8b6102bdf3db60197e49ad2592ffdf4 commit: e5873eeb500bdf7e4f87e105574b42608948719a Author: Michał Górny gentoo org> AuthorDate: Sun Jan 30 09:55:25 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Jan 30 10:04:22 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5873eeb dev-python/python-systemd: Switch to PEP 517 build Signed-off-by: Michał Górny gentoo.org> .../python-systemd/python-systemd-234-r2.ebuild | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/dev-python/python-systemd/python-systemd-234-r2.ebuild b/dev-python/python-systemd/python-systemd-234-r2.ebuild new file mode 100644 index 000000000000..60d75ffb0ea8 --- /dev/null +++ b/dev-python/python-systemd/python-systemd-234-r2.ebuild @@ -0,0 +1,44 @@ +# Copyright 2015-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} ) + +inherit distutils-r1 + +DESCRIPTION="Python module for native access to the systemd facilities" +HOMEPAGE="https://github.com/systemd/python-systemd" +SRC_URI="https://github.com/systemd/python-systemd/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + +DEPEND="sys-apps/systemd:0=" +RDEPEND="${DEPEND} + !sys-apps/systemd[python(-)] +" + +PATCHES=( + "${FILESDIR}"/${P}-fix-py3.10.patch +) + +distutils_enable_tests pytest + +python_compile() { + # https://bugs.gentoo.org/690316 + distutils-r1_python_compile -j1 +} + +src_test() { + # prevent relative import + rm -r systemd || die + distutils-r1_src_test +} + +python_test() { + unset NOTIFY_SOCKET + epytest --pyargs systemd -o cache_dir="${T}" +}