1 |
commit: 97eb3e6d787209f1faa0789ba07a7e455f71dbd9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 17 07:54:17 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 17 07:56:27 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97eb3e6d |
7 |
|
8 |
dev-python/django-allauth: Bump to 0.45.0, add tests |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/django-allauth/Manifest | 1 + |
13 |
.../django-allauth/django-allauth-0.45.0.ebuild | 44 ++++++++++++++++++++++ |
14 |
2 files changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/django-allauth/Manifest b/dev-python/django-allauth/Manifest |
17 |
index 37b6c4f6d33..84f042f810c 100644 |
18 |
--- a/dev-python/django-allauth/Manifest |
19 |
+++ b/dev-python/django-allauth/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST django-allauth-0.42.0.tar.gz 549566 BLAKE2B aa346bcc47b9419776a68c023ab560e5cba0fd97eeaf4cb2f43da4b2c53619c65a3ec9e1313ff3ffa0ed051718d41ccea2d362f56d6bd8dcf4c5a0569ccbb7c9 SHA512 2c31a70dfd3becf0f921b0566204b8b3221b0c85e82cb8a8ad37ab557fc6f302b9c24bfdd6885978157f4ccb9044d1eed9973d066ee59877aee727c60d2a5b46 |
22 |
+DIST django-allauth-0.45.0.tar.gz 581007 BLAKE2B a0f586818e4d17ece5ed009481b71c0213bf265f45d391664d411268d53124c1d5df226ca40d98722691ace5f5ed50026b0a9db3bd34070ff855059bf3e237d6 SHA512 16b166a5f97e62fef3c801af17b6b7569bd27e597cec394032a2644397afc30512f52f0ff77af8036e414086cd207dc9f5d310dbc744627b55938243ba18e50f |
23 |
|
24 |
diff --git a/dev-python/django-allauth/django-allauth-0.45.0.ebuild b/dev-python/django-allauth/django-allauth-0.45.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..acee98cb30f |
27 |
--- /dev/null |
28 |
+++ b/dev-python/django-allauth/django-allauth-0.45.0.ebuild |
29 |
@@ -0,0 +1,44 @@ |
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..9} ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="Django 3rd party (social) account authentication" |
39 |
+HOMEPAGE=" |
40 |
+ https://www.intenct.nl/projects/django-allauth/ |
41 |
+ https://github.com/pennersr/django-allauth/" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64" |
47 |
+IUSE="test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+# cryptography via pyjwt[crypto] |
51 |
+RDEPEND=" |
52 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
53 |
+ dev-python/django[${PYTHON_USEDEP}] |
54 |
+ dev-python/pyjwt[${PYTHON_USEDEP}] |
55 |
+ dev-python/python3-openid[${PYTHON_USEDEP}] |
56 |
+ dev-python/requests-oauthlib[${PYTHON_USEDEP}] |
57 |
+ dev-python/requests[${PYTHON_USEDEP}]" |
58 |
+BDEPEND=" |
59 |
+ test? ( ${RDEPEND} )" |
60 |
+ |
61 |
+DOCS=( README.rst AUTHORS ChangeLog.rst ) |
62 |
+ |
63 |
+src_test() { |
64 |
+ # cern provider tests require Internet |
65 |
+ rm allauth/socialaccount/providers/cern/tests.py || die |
66 |
+ distutils-r1_src_test |
67 |
+} |
68 |
+ |
69 |
+python_test() { |
70 |
+ local -x DJANGO_SETTINGS_MODULE=test_settings |
71 |
+ local -x PYTHONPATH=. |
72 |
+ django-admin test -v 2 || die "Tests failed with ${EPYTHON}" |
73 |
+} |