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: Wed, 07 Oct 2020 07:28:06
Message-Id: 1602055662.592428142de0831be28ed910d745b48fe5383ba5.mgorny@gentoo
1 commit: 592428142de0831be28ed910d745b48fe5383ba5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 7 06:02:01 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 7 07:27:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59242814
7
8 dev-python/django-otp: Bump to 1.0.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.0.1.ebuild | 36 +++++++++++++++++++++++++++
14 2 files changed, 37 insertions(+)
15
16 diff --git a/dev-python/django-otp/Manifest b/dev-python/django-otp/Manifest
17 index 5d64f223c3f..f264f07cb95 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.0.gh.tar.gz 63813 BLAKE2B 17e771f11ddfe4c1667b29da7e6bdbf542796ce48d9f5898e1399603c373bee04a2b6d2d96d8b3295adf07ac245f7e5ad4baf3f6f63f6fe9ce350482a6cc06e8 SHA512 66bce779c5ce98c8b0f64bafa98d8be26a2175678b413bc5e8a80a2157d4b843c217aed7cb7b64fb423184c7dcff5967fa352dd233c404dc51082ec7e94792f7
22 +DIST django-otp-1.0.1.gh.tar.gz 66717 BLAKE2B 6eb24baf21667af5fe5200a91d320884b1fa37b78def9b543b3411f75de97226d0f40ce53f06391d7cfc9f5ad4020a14e472f9a1abe89844778ef69a2f3b5b72 SHA512 981d374ed4dacf3edd33dc1437465de7458ec243e1ace0b87425ec2b01a51fe4cee3545d1bbe53d7c924c5981b76f7ca77b5da2cf5d6f170f2f7435cff991337
23
24 diff --git a/dev-python/django-otp/django-otp-1.0.1.ebuild b/dev-python/django-otp/django-otp-1.0.1.ebuild
25 new file mode 100644
26 index 00000000000..3c7f80d1650
27 --- /dev/null
28 +++ b/dev-python/django-otp/django-otp-1.0.1.ebuild
29 @@ -0,0 +1,36 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{6..9} )
36 +
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 +}