1 |
commit: 47e3901d7d0c2c6af500ac7855ec2d4855249380 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 21 19:27:41 2021 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 21 19:37:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47e3901d |
7 |
|
8 |
dev-python/agate: Bump to version 1.6.2 + enable tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/797307 |
11 |
Reported-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
13 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
14 |
|
15 |
dev-python/agate/Manifest | 2 +- |
16 |
.../agate/{agate-1.6.1.ebuild => agate-1.6.2.ebuild} | 20 ++++++++++++++++++++ |
17 |
2 files changed, 21 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/dev-python/agate/Manifest b/dev-python/agate/Manifest |
20 |
index 79f708548fd..7b0c44d435c 100644 |
21 |
--- a/dev-python/agate/Manifest |
22 |
+++ b/dev-python/agate/Manifest |
23 |
@@ -1 +1 @@ |
24 |
-DIST agate-1.6.1.tar.gz 137280 BLAKE2B cc022eb05865af0c3f2602d0e5da19a7cbc1516ffbac3900e8cf5c414ff9237151911036170632bfddc4ebe1d40192a3efc0fa73f5ec25a996345919165729ec SHA512 03cbd569a8cff8352ea7fc7469508f5aa5fd6e99381088b53711cc688f8fe9c19c50265852d2e1f9b92852509dbab9630359b72b504a46c9f0aaa37b14027ab9 |
25 |
+DIST agate-1.6.2.tar.gz 191216 BLAKE2B 63e89f6815a36dea956e8a919aeb926291eaf1f4d5eaac7f96dab97c6958dfee4788e18a4c1325a5b8cebf15df27b32e75409ddeab1289c1e8e548088fdc0ea7 SHA512 34d9e45d162bce69d28ad0ec07f5b410b2cdac831e5bd986ca8cb8902fd0ca1ec67663b2f956f42acaf18b8ca0fa169d5236aa4cee7457765e4e86d837e7794e |
26 |
|
27 |
diff --git a/dev-python/agate/agate-1.6.1.ebuild b/dev-python/agate/agate-1.6.2.ebuild |
28 |
similarity index 63% |
29 |
rename from dev-python/agate/agate-1.6.1.ebuild |
30 |
rename to dev-python/agate/agate-1.6.2.ebuild |
31 |
index de2cbc49e12..6c3fd2a618f 100644 |
32 |
--- a/dev-python/agate/agate-1.6.1.ebuild |
33 |
+++ b/dev-python/agate/agate-1.6.2.ebuild |
34 |
@@ -13,12 +13,32 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
35 |
LICENSE="MIT" |
36 |
SLOT="0" |
37 |
KEYWORDS="~amd64" |
38 |
+IUSE="test" |
39 |
+RESTRICT="!test? ( test )" |
40 |
RDEPEND=" |
41 |
>=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
42 |
>=dev-python/pytimeparse-1.1.5[${PYTHON_USEDEP}] |
43 |
>=dev-python/parsedatetime-2.1[${PYTHON_USEDEP}] |
44 |
>=dev-python/Babel-2.0[${PYTHON_USEDEP}] |
45 |
>=dev-python/isodate-0.5.4[${PYTHON_USEDEP}] |
46 |
+ >=dev-python/pyicu-2.4.2[${PYTHON_USEDEP}] |
47 |
>=dev-python/python-slugify-1.2.1[${PYTHON_USEDEP}] |
48 |
>=dev-python/leather-0.3.2[${PYTHON_USEDEP}] |
49 |
" |
50 |
+BDEPEND=" |
51 |
+ test? ( |
52 |
+ dev-python/pytest-expect[${PYTHON_USEDEP}] |
53 |
+ ) |
54 |
+" |
55 |
+ |
56 |
+distutils_enable_tests pytest |
57 |
+ |
58 |
+python_prepare_all() { |
59 |
+ cat > .pytest.expect <<-EOF |
60 |
+pytest-expect file v1 |
61 |
+(3, 8, 10, 'final', 0) |
62 |
+u'tests/test_data_types.py::TestDate::test_cast_format_locale': FAIL |
63 |
+u'tests/test_data_types.py::TestDateTime::test_cast_format_locale': FAIL |
64 |
+EOF |
65 |
+ distutils-r1_python_prepare_all |
66 |
+} |