From: | "Michał Górny" <mgorny@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] repo/gentoo:master commit in: dev-python/pykerberos/ |
Date: | Mon, 28 Sep 2020 15:53:34 |
Message-Id: | 1601308368.36f156a18f5f00366009fc51b63c6b18b244422e.mgorny@gentoo |
1 | commit: 36f156a18f5f00366009fc51b63c6b18b244422e |
2 | Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 | AuthorDate: Sun Sep 27 21:47:02 2020 +0000 |
4 | Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 | CommitDate: Mon Sep 28 15:52:48 2020 +0000 |
6 | URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36f156a1 |
7 | |
8 | dev-python/pykerberos: Remove py2.7 in revbump |
9 | |
10 | Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 | |
12 | dev-python/pykerberos/pykerberos-1.3.0-r1.ebuild | 45 ++++++++++++++++++++++++ |
13 | 1 file changed, 45 insertions(+) |
14 | |
15 | diff --git a/dev-python/pykerberos/pykerberos-1.3.0-r1.ebuild b/dev-python/pykerberos/pykerberos-1.3.0-r1.ebuild |
16 | new file mode 100644 |
17 | index 00000000000..0d5435a1f31 |
18 | --- /dev/null |
19 | +++ b/dev-python/pykerberos/pykerberos-1.3.0-r1.ebuild |
20 | @@ -0,0 +1,45 @@ |
21 | +# Copyright 1999-2020 Gentoo Authors |
22 | +# Distributed under the terms of the GNU General Public License v2 |
23 | + |
24 | +EAPI=7 |
25 | + |
26 | +DISTUTILS_USE_SETUPTOOLS=rdepend |
27 | +PYTHON_COMPAT=( python3_{6..9} ) |
28 | +inherit distutils-r1 |
29 | + |
30 | +MY_P=PyKerberos-${PV} |
31 | +DESCRIPTION="A high-level Python wrapper for Kerberos/GSSAPI operations" |
32 | +HOMEPAGE=" |
33 | + https://trac.calendarserver.org/wiki/PyKerberos |
34 | + https://github.com/apple/ccs-pykerberos/ |
35 | + https://pypi.org/project/kerberos/" |
36 | +SRC_URI=" |
37 | + https://github.com/apple/ccs-pykerberos/archive/${MY_P}.tar.gz" |
38 | +S=${WORKDIR}/ccs-pykerberos-${MY_P} |
39 | + |
40 | +LICENSE="Apache-2.0" |
41 | +SLOT="0" |
42 | +KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc64 x86" |
43 | +# test environment is non-trivial to set up, so just use docker |
44 | +# (see python_test below) |
45 | +# also for alpha/beta Python releases support: |
46 | +# https://github.com/apple/ccs-pykerberos/pull/83/commits/5f1130a1305b5f6e7d7d8b41067c4713f0c8950f |
47 | +RESTRICT="test" |
48 | + |
49 | +RDEPEND="app-crypt/mit-krb5" |
50 | +DEPEND="${RDEPEND}" |
51 | + |
52 | +python_test() { |
53 | + set -- docker run \ |
54 | + -v "${PWD}:/app" \ |
55 | + -w /app \ |
56 | + -e PYENV=$("${EPYTHON}" -c 'import sys; print(sys.version.split()[0])') \ |
57 | + -e KERBEROS_USERNAME=administrator \ |
58 | + -e KERBEROS_PASSWORD=Password01 \ |
59 | + -e KERBEROS_REALM=example.com \ |
60 | + -e KERBEROS_PORT=80 \ |
61 | + ubuntu:16.04 \ |
62 | + /bin/bash .travis.sh |
63 | + echo "${@}" >&2 |
64 | + "${@}" || die "Tests failed with ${EPYTHON}" |
65 | +} |