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: Tue, 14 Sep 2021 21:35:32
Message-Id: 1631655317.2859da27216914976982f2bd9933a3924e75f912.mgorny@gentoo
1 commit: 2859da27216914976982f2bd9933a3924e75f912
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 14 20:00:27 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 14 21:35:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2859da27
7
8 dev-python/django-otp: Bump to 1.1.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/django-otp/Manifest | 1 +
13 dev-python/django-otp/django-otp-1.1.1.ebuild | 35 +++++++++++++++++++++++++++
14 2 files changed, 36 insertions(+)
15
16 diff --git a/dev-python/django-otp/Manifest b/dev-python/django-otp/Manifest
17 index d73c9ad2c64..3732486bfd7 100644
18 --- a/dev-python/django-otp/Manifest
19 +++ b/dev-python/django-otp/Manifest
20 @@ -1,2 +1,3 @@
21 DIST django-otp-1.0.6.gh.tar.gz 69023 BLAKE2B 82534fb666e27ab654b1587160fd9fd4600d1ecb57f5b506b383c3d7b36a13d6bbff39598603c7c3bc69edc871a6a3ad1aa2531a92ea921ab07798e7e4bb1316 SHA512 ff14a786bc8b3d22c8767fa78d676951c262389dfe00def981c79894d299f393ffc86510c33866482aa246ac1643238a3de5701bb76cf56aea5e3ba0a25cbb97
22 DIST django-otp-1.1.0.gh.tar.gz 71399 BLAKE2B 826677582fff6102b3e65750c367607e9641aa629a59f064af7023774017f6e7817f36e51e0fada181fa84054545367689b8b499ef9625729c8434a903911876 SHA512 b23c0e72508c890f7a84b59b7827f093aeaad77e6df7c824894bc789282db6f8a26699c9a3ee9bf755eb8e13c6fe5a80fad263659be7528762a8cc29d4636e11
23 +DIST django-otp-1.1.1.gh.tar.gz 71526 BLAKE2B d68c0fe99c5437d08a8a0a433b4d6f41f0068047e3899efbb24234696c3494a064982aabc02d2788662d516235413bfc804f76cf5ffa1c608d3aa61927e2fad3 SHA512 5946cd64fd0f52dac5ef9fb192f8ecf78e99c96fe7e3223b41c68d96e249f6727149ef58a2dbf48024452e078f5f93c1f9edb9db2a25def5cbb3992c16aac18c
24
25 diff --git a/dev-python/django-otp/django-otp-1.1.1.ebuild b/dev-python/django-otp/django-otp-1.1.1.ebuild
26 new file mode 100644
27 index 00000000000..89260481058
28 --- /dev/null
29 +++ b/dev-python/django-otp/django-otp-1.1.1.ebuild
30 @@ -0,0 +1,35 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Django framework adding two-factor authentication using one-time passwords"
40 +HOMEPAGE="https://github.com/django-otp/django-otp/"
41 +SRC_URI="
42 + https://github.com/django-otp/django-otp/archive/v${PV}.tar.gz
43 + -> ${P}.gh.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="test"
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="
52 + >=dev-python/django-2.2[${PYTHON_USEDEP}]"
53 +BDEPEND="
54 + test? (
55 + $(python_gen_impl_dep sqlite)
56 + dev-python/freezegun[${PYTHON_USEDEP}]
57 + dev-python/qrcode[${PYTHON_USEDEP}]
58 + ${RDEPEND}
59 + )"
60 +
61 +python_test() {
62 + local -x PYTHONPATH=test:${PYTHONPATH}
63 + local -x DJANGO_SETTINGS_MODULE=test_project.settings
64 + django-admin test -v 2 django_otp || die "Tests fail with ${EPYTHON}"
65 +}