Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/django-otp/
Date: Sat, 26 Feb 2022 18:00:01
Message-Id: 1645898386.bf1ea2bf29fbaa4af50d710f9c7743103c5d0afa.mgorny@gentoo
1 commit: bf1ea2bf29fbaa4af50d710f9c7743103c5d0afa
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 26 17:46:55 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 26 17:59:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf1ea2bf
7
8 dev-python/django-otp: Migrate to PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/django-otp/django-otp-1.1.3-r1.ebuild | 40 ++++++++++++++++++++++++
13 1 file changed, 40 insertions(+)
14
15 diff --git a/dev-python/django-otp/django-otp-1.1.3-r1.ebuild b/dev-python/django-otp/django-otp-1.1.3-r1.ebuild
16 new file mode 100644
17 index 000000000000..a4cbc4ab7d4e
18 --- /dev/null
19 +++ b/dev-python/django-otp/django-otp-1.1.3-r1.ebuild
20 @@ -0,0 +1,40 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Django framework adding two-factor authentication using one-time passwords"
32 +HOMEPAGE="https://github.com/django-otp/django-otp/"
33 +SRC_URI="
34 + https://github.com/django-otp/django-otp/archive/v${PV}.tar.gz
35 + -> ${P}.gh.tar.gz
36 +"
37 +
38 +LICENSE="BSD"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +IUSE="test"
42 +RESTRICT="!test? ( test )"
43 +
44 +RDEPEND="
45 + >=dev-python/django-2.2[${PYTHON_USEDEP}]
46 +"
47 +BDEPEND="
48 + test? (
49 + $(python_gen_impl_dep sqlite)
50 + dev-python/freezegun[${PYTHON_USEDEP}]
51 + dev-python/qrcode[${PYTHON_USEDEP}]
52 + ${RDEPEND}
53 + )
54 +"
55 +
56 +python_test() {
57 + local -x PYTHONPATH=test:${PYTHONPATH}
58 + local -x DJANGO_SETTINGS_MODULE=test_project.settings
59 + django-admin test -v 2 django_otp || die "Tests fail with ${EPYTHON}"
60 +}