Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/django-configurations/
Date: Thu, 01 Sep 2022 19:42:13
Message-Id: 1662061311.cdd930d1506e21b70c3d5c988fb0b417a6d89b28.arthurzam@gentoo
1 commit: cdd930d1506e21b70c3d5c988fb0b417a6d89b28
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 18:55:51 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 19:41:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdd930d1
7
8 dev-python/django-configurations: add 2.4
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/django-configurations/Manifest | 1 +
13 .../django-configurations-2.4.ebuild | 47 ++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/dev-python/django-configurations/Manifest b/dev-python/django-configurations/Manifest
17 index ab7809eb6eca..1fee3c094acf 100644
18 --- a/dev-python/django-configurations/Manifest
19 +++ b/dev-python/django-configurations/Manifest
20 @@ -1 +1,2 @@
21 DIST django-configurations-2.3.2.gh.tar.gz 38475 BLAKE2B 2b3c583e665a08a46bc0ca0c52ae4326fbdfb794d102deecbd13f953e8b6f3fd39b3b747c591fc9717c6a0792258cdb9041de53e71db2034de1a31ddf5bfc0ea SHA512 4cb5a7b284a0025ba93b32e158fb65b57e66230938181b921a1b1264848113b697eb45ac6ad2fc4f26f3bc29ea5f77acbfd5307b20ef2d385e29c2c1746295b3
22 +DIST django-configurations-2.4.gh.tar.gz 38563 BLAKE2B a454cc492354c1b969a1b0389ccb21088e99af17b5056ae514b36b5c2fd7391368437093d1a075814dfb8e15ec8ce3ec3c5269d5c867b4a03a5269a533826a31 SHA512 de9793c5fce869ef77e4396dd5ea45fc57728d702383885599d3a08b16e37e0e425258aacd671ac78592df813c8fa3a08b33ad9410843f7d7976589da33592ca
23
24 diff --git a/dev-python/django-configurations/django-configurations-2.4.ebuild b/dev-python/django-configurations/django-configurations-2.4.ebuild
25 new file mode 100644
26 index 000000000000..cd1f8512e9ff
27 --- /dev/null
28 +++ b/dev-python/django-configurations/django-configurations-2.4.ebuild
29 @@ -0,0 +1,47 @@
30 +# Copyright 2021-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="A helper for organizing Django settings"
41 +HOMEPAGE="
42 + https://pypi.org/project/django-configurations/
43 + https://github.com/jazzband/django-configurations/
44 + https://django-configurations.readthedocs.io/
45 +"
46 +SRC_URI="
47 + https://github.com/jazzband/django-configurations/archive/${PV}.tar.gz
48 + -> ${P}.gh.tar.gz
49 +"
50 +
51 +LICENSE="BSD"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
54 +IUSE="test"
55 +RESTRICT="!test? ( test )"
56 +
57 +RDEPEND="
58 + >=dev-python/django-3.2[${PYTHON_USEDEP}]
59 +"
60 +BDEPEND="
61 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
62 + test? (
63 + dev-python/django-cache-url[${PYTHON_USEDEP}]
64 + dev-python/dj-database-url[${PYTHON_USEDEP}]
65 + dev-python/dj-email-url[${PYTHON_USEDEP}]
66 + dev-python/dj-search-url[${PYTHON_USEDEP}]
67 + )
68 +"
69 +
70 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
71 +
72 +python_test() {
73 + local -x DJANGO_SETTINGS_MODULE=tests.settings.main
74 + local -x DJANGO_CONFIGURATION=Test
75 + PYTHONPATH=. django-cadmin test -v2 || die "Tests failed with ${EPYTHON}"
76 +}