Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pendulum/
Date: Mon, 06 Jun 2022 09:33:48
Message-Id: 1654507959.5c766ace6ff195dbff98b49c024c87aa79a6dbb8.jsmolic@gentoo
1 commit: 5c766ace6ff195dbff98b49c024c87aa79a6dbb8
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 6 09:32:35 2022 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 6 09:32:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c766ace
7
8 dev-python/pendulum: enable py3.10 and disable py3.7
9
10 - Enable tests given they are fixed now and pass on all impls.
11
12 Closes: https://bugs.gentoo.org/845777
13 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
14
15 dev-python/pendulum/pendulum-2.1.2-r1.ebuild | 28 +++++++++++-----------------
16 1 file changed, 11 insertions(+), 17 deletions(-)
17
18 diff --git a/dev-python/pendulum/pendulum-2.1.2-r1.ebuild b/dev-python/pendulum/pendulum-2.1.2-r1.ebuild
19 index 32b705122dca..602bea9a4764 100644
20 --- a/dev-python/pendulum/pendulum-2.1.2-r1.ebuild
21 +++ b/dev-python/pendulum/pendulum-2.1.2-r1.ebuild
22 @@ -4,7 +4,7 @@
23 EAPI=7
24
25 DISTUTILS_USE_SETUPTOOLS=pyproject.toml
26 -PYTHON_COMPAT=( python3_{7..9} )
27 +PYTHON_COMPAT=( python3_{8..10} )
28 inherit distutils-r1
29
30 DESCRIPTION="Drop-in replacement for the standard datetime class"
31 @@ -15,22 +15,16 @@ LICENSE="MIT"
32 SLOT="0"
33 KEYWORDS="amd64 ~x86"
34
35 -# Requires timezone information which is not installed by default
36 -# with dev-python/pytzdata, and otherwise approx. 50 out of 1600
37 -# tests are failing for now. Keeping the test dependencies
38 -# commented for future tests fixups
39 -RESTRICT="test"
40 -
41 DEPEND="
42 dev-python/python-dateutil[${PYTHON_USEDEP}]
43 - dev-python/pytzdata[${PYTHON_USEDEP}]"
44 + dev-python/pytzdata[${PYTHON_USEDEP}]
45 +"
46 RDEPEND="${DEPEND}"
47 -
48 -#BDEPEND="
49 -# test? (
50 -# dev-python/babel[${PYTHON_USEDEP}]
51 -# dev-python/freezegun[${PYTHON_USEDEP}]
52 -# dev-python/pytz[${PYTHON_USEDEP}]
53 -# )"
54 -
55 -# distutils_enable_tests pytest
56 +BDEPEND="
57 + test? (
58 + dev-python/Babel[${PYTHON_USEDEP}]
59 + dev-python/freezegun[${PYTHON_USEDEP}]
60 + dev-python/pytz[${PYTHON_USEDEP}]
61 + )"
62 +
63 +distutils_enable_tests pytest