1 |
commit: 466c1bd3c104b1ab041c52d8021ceea9dd8ff398 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 13 20:04:04 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 13 20:31:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=466c1bd3 |
7 |
|
8 |
dev-python/django-otp: Bump to 1.1.0 |
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.0.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 d408f76583e..d73c9ad2c64 100644 |
18 |
--- a/dev-python/django-otp/Manifest |
19 |
+++ b/dev-python/django-otp/Manifest |
20 |
@@ -1 +1,2 @@ |
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 |
|
24 |
diff --git a/dev-python/django-otp/django-otp-1.1.0.ebuild b/dev-python/django-otp/django-otp-1.1.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..89260481058 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/django-otp/django-otp-1.1.0.ebuild |
29 |
@@ -0,0 +1,35 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="Django framework adding two-factor authentication using one-time passwords" |
39 |
+HOMEPAGE="https://github.com/django-otp/django-otp/" |
40 |
+SRC_URI=" |
41 |
+ https://github.com/django-otp/django-otp/archive/v${PV}.tar.gz |
42 |
+ -> ${P}.gh.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ >=dev-python/django-2.2[${PYTHON_USEDEP}]" |
52 |
+BDEPEND=" |
53 |
+ test? ( |
54 |
+ $(python_gen_impl_dep sqlite) |
55 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
56 |
+ dev-python/qrcode[${PYTHON_USEDEP}] |
57 |
+ ${RDEPEND} |
58 |
+ )" |
59 |
+ |
60 |
+python_test() { |
61 |
+ local -x PYTHONPATH=test:${PYTHONPATH} |
62 |
+ local -x DJANGO_SETTINGS_MODULE=test_project.settings |
63 |
+ django-admin test -v 2 django_otp || die "Tests fail with ${EPYTHON}" |
64 |
+} |