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 A9D7A15800D for ; Sat, 8 Jul 2023 15:23:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F1762E08A0; Sat, 8 Jul 2023 15:23:04 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 DD7A1E08A0 for ; Sat, 8 Jul 2023 15:23:04 +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 1E5FA340DF8 for ; Sat, 8 Jul 2023 15:23:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AEFF9AC7 for ; Sat, 8 Jul 2023 15:23:02 +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: <1688829775.b2bb39fb9aee459692ba6fc1fdbf5ad589e87555.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pykerberos/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pykerberos/Manifest dev-python/pykerberos/pykerberos-1.3.1-r2.ebuild X-VCS-Directories: dev-python/pykerberos/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b2bb39fb9aee459692ba6fc1fdbf5ad589e87555 X-VCS-Branch: master Date: Sat, 8 Jul 2023 15:23:02 +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: 9232e77d-1373-4784-ad73-42a132dcb202 X-Archives-Hash: d2975321711eddf628e7dfa1709232f7 commit: b2bb39fb9aee459692ba6fc1fdbf5ad589e87555 Author: Michał Górny gentoo org> AuthorDate: Sat Jul 8 15:08:40 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Jul 8 15:22:55 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2bb39fb dev-python/pykerberos: EAPI 8, PEP517 Closes: https://bugs.gentoo.org/909941 Signed-off-by: Michał Górny gentoo.org> dev-python/pykerberos/Manifest | 1 + dev-python/pykerberos/pykerberos-1.3.1-r2.ebuild | 58 ++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/dev-python/pykerberos/Manifest b/dev-python/pykerberos/Manifest index cf0fb2ef6e73..1bc6200a7b32 100644 --- a/dev-python/pykerberos/Manifest +++ b/dev-python/pykerberos/Manifest @@ -1 +1,2 @@ DIST PyKerberos-1.3.1.tar.gz 41954 BLAKE2B b95a3473c5803ebcb461db7f2589caa03e92f4cb3ba3a4890a31db99b687aa4c77ae4e58f09ae2339a1fd8acf6fe9ab5797e3b7178dfeb2ee7a95bb851fff402 SHA512 dcadc5c3b095d8bba947a745ac84cc558d7eebad139a0e86260891966786506a7a62600fde93fa14683971e436da8cc5cd3795817b20ba45ce7e39f8c05deb53 +DIST ccs-pykerberos-PyKerberos-1.3.1.gh.tar.gz 41954 BLAKE2B b95a3473c5803ebcb461db7f2589caa03e92f4cb3ba3a4890a31db99b687aa4c77ae4e58f09ae2339a1fd8acf6fe9ab5797e3b7178dfeb2ee7a95bb851fff402 SHA512 dcadc5c3b095d8bba947a745ac84cc558d7eebad139a0e86260891966786506a7a62600fde93fa14683971e436da8cc5cd3795817b20ba45ce7e39f8c05deb53 diff --git a/dev-python/pykerberos/pykerberos-1.3.1-r2.ebuild b/dev-python/pykerberos/pykerberos-1.3.1-r2.ebuild new file mode 100644 index 000000000000..99abdec65e6e --- /dev/null +++ b/dev-python/pykerberos/pykerberos-1.3.1-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 + +MY_P=ccs-pykerberos-PyKerberos-${PV} +DESCRIPTION="A high-level Python wrapper for Kerberos/GSSAPI operations" +HOMEPAGE=" + https://www.calendarserver.org/PyKerberos.html + https://github.com/apple/ccs-pykerberos/ + https://pypi.org/project/kerberos/ +" +SRC_URI=" + https://github.com/apple/ccs-pykerberos/archive/PyKerberos-${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~riscv ~x86" +# test environment is non-trivial to set up, so just use docker +# (see python_test below) +# also for alpha/beta Python releases support: +# https://github.com/apple/ccs-pykerberos/pull/83/commits/5f1130a1305b5f6e7d7d8b41067c4713f0c8950f +RESTRICT="test" + +DEPEND=" + app-crypt/mit-krb5 +" +RDEPEND=" + ${DEPEND} +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.3.1-python3.10.patch +) + +python_test() { + set -- docker run \ + -v "${PWD}:/app" \ + -w /app \ + -e PYENV=$("${EPYTHON}" -c 'import sys; print(sys.version.split()[0])') \ + -e KERBEROS_USERNAME=administrator \ + -e KERBEROS_PASSWORD=Password01 \ + -e KERBEROS_REALM=example.com \ + -e KERBEROS_PORT=80 \ + ubuntu:16.04 \ + /bin/bash .travis.sh + echo "${@}" >&2 + "${@}" || die "Tests failed with ${EPYTHON}" +}