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/djangorestframework/
Date: Tue, 30 Mar 2021 08:17:12
Message-Id: 1617092225.0e5c2cb089c728870360973fe92a71978462062f.mgorny@gentoo
1 commit: 0e5c2cb089c728870360973fe92a71978462062f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 30 08:12:23 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 30 08:17:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e5c2cb0
7
8 dev-python/djangorestframework: Bump to 3.12.4
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/djangorestframework/Manifest | 1 +
13 .../djangorestframework-3.12.4.ebuild | 40 ++++++++++++++++++++++
14 2 files changed, 41 insertions(+)
15
16 diff --git a/dev-python/djangorestframework/Manifest b/dev-python/djangorestframework/Manifest
17 index e95b2a7e64b..cc4cc8a41f2 100644
18 --- a/dev-python/djangorestframework/Manifest
19 +++ b/dev-python/djangorestframework/Manifest
20 @@ -1 +1,2 @@
21 DIST django-rest-framework-3.12.2.gh.tar.gz 8856613 BLAKE2B 77d0b3bad38c7829387de752d913eb758935615213d8f8ada9422ecf25142383c1b11a1c95d5fc9f4cf7634e494119ddcb236c810e85429fa8cd4ecd1ef88132 SHA512 7c3e712897562eff14ddfa4ded6627d6b4263001e0c9a4047b92da43c0fd86e8ac9d09bb54bb87ce0d4e7743553c4733a60b18327f7e4d481cb9898593731467
22 +DIST django-rest-framework-3.12.4.gh.tar.gz 8856507 BLAKE2B 48150e8d966ddd169a2b58d90656efa8f9f549c9d2fdee6025254fba2a6221704fe6bcb246567c8acb963f76ea56046935d3190c7c391daf4773b100a641ba02 SHA512 406b5354809b94e371a2c7d4b62ce66c18a1f60bd02574cba603ad4c44faa4297bdbbd6ee50de63fe21d2aae18386e05d46983a506bddd17f06ce610d5b727c9
23
24 diff --git a/dev-python/djangorestframework/djangorestframework-3.12.4.ebuild b/dev-python/djangorestframework/djangorestframework-3.12.4.ebuild
25 new file mode 100644
26 index 00000000000..8530587f35d
27 --- /dev/null
28 +++ b/dev-python/djangorestframework/djangorestframework-3.12.4.ebuild
29 @@ -0,0 +1,40 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
36 +
37 +inherit distutils-r1
38 +
39 +MY_P=django-rest-framework-${PV}
40 +DESCRIPTION="Web APIs with django made easy"
41 +HOMEPAGE="https://www.django-rest-framework.org/"
42 +SRC_URI="
43 + https://github.com/encode/django-rest-framework/archive/${PV}.tar.gz
44 + -> ${MY_P}.gh.tar.gz"
45 +S=${WORKDIR}/${MY_P}
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +
51 +RDEPEND=">=dev-python/django-1.11[${PYTHON_USEDEP}]"
52 +BDEPEND="
53 + test? (
54 + dev-python/coreapi[${PYTHON_USEDEP}]
55 + dev-python/coreschema[${PYTHON_USEDEP}]
56 + dev-python/pytest-django[${PYTHON_USEDEP}]
57 + dev-python/pyyaml[${PYTHON_USEDEP}]
58 + )"
59 +
60 +distutils_enable_tests pytest
61 +
62 +python_test() {
63 + local deselect=(
64 + # TODO
65 + tests/test_description.py::TestViewNamesAndDescriptions::test_markdown
66 + )
67 +
68 + epytest ${deselect[@]/#/--deselect }
69 +}