1 |
commit: 99f04dca7384ce9b6e91700ccac7ba29f52af8ef |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 29 21:51:22 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 29 22:28:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99f04dca |
7 |
|
8 |
dev-python/django-otp: Bump to 1.1.2 |
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.2.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 2353d4fad682..209230488f72 100644 |
18 |
--- a/dev-python/django-otp/Manifest |
19 |
+++ b/dev-python/django-otp/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST django-otp-1.1.1.gh.tar.gz 71526 BLAKE2B d68c0fe99c5437d08a8a0a433b4d6f41f0068047e3899efbb24234696c3494a064982aabc02d2788662d516235413bfc804f76cf5ffa1c608d3aa61927e2fad3 SHA512 5946cd64fd0f52dac5ef9fb192f8ecf78e99c96fe7e3223b41c68d96e249f6727149ef58a2dbf48024452e078f5f93c1f9edb9db2a25def5cbb3992c16aac18c |
22 |
+DIST django-otp-1.1.2.gh.tar.gz 72639 BLAKE2B ba30e8d6c9982010dd9a627a810b9bc36474c571cbb6eb756d45b617338f18b7ceb024f88baeb7ceb6dbd76b3f5cf9ed53ebabd9dba435b6ab6cc3bdba092fa4 SHA512 85b34f9a36632ca44e4f7a3f11d1fd795bf65f909c0b6e4735afd56f06d754f7f28b43ccc851cb86c7330919978d3e2cb793111e50030273056da0231ee0e3ca |
23 |
|
24 |
diff --git a/dev-python/django-otp/django-otp-1.1.2.ebuild b/dev-python/django-otp/django-otp-1.1.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..892604810582 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/django-otp/django-otp-1.1.2.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 |
+} |