1 |
commit: becb775fe9b788197b46beabea8ecf90a006a76d |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 22 02:53:10 2021 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 22 02:56:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=becb775f |
7 |
|
8 |
dev-python/leather: Enable unit tests |
9 |
|
10 |
tests/test_axis.py::TestChart::test_tick_formatter PASSED [ 1%] |
11 |
tests/test_axis.py::TestChart::test_ticks PASSED [ 2%] |
12 |
tests/test_chart.py::TestChart::test_add_axes PASSED [ 4%] |
13 |
tests/test_chart.py::TestChart::test_add_scales PASSED [ 5%] |
14 |
tests/test_chart.py::TestChart::test_multiple_series PASSED [ 7%] |
15 |
tests/test_chart.py::TestChart::test_scale_domain_warning PASSED [ 8%] |
16 |
tests/test_chart.py::TestChart::test_set_axes PASSED [ 10%] |
17 |
tests/test_chart.py::TestChart::test_set_scales PASSED [ 11%] |
18 |
tests/test_chart.py::TestChart::test_single_series PASSED [ 12%] |
19 |
tests/test_chart.py::TestChart::test_to_svg_file_handle PASSED [ 14%] |
20 |
tests/test_chart.py::TestChart::test_to_svg_file_name PASSED [ 15%] |
21 |
tests/test_chart.py::TestChart::test_unicode PASSED [ 17%] |
22 |
tests/test_grid.py::TestGrid::test_add_many PASSED [ 18%] |
23 |
tests/test_grid.py::TestGrid::test_add_one PASSED [ 20%] |
24 |
tests/test_grid.py::TestGrid::test_to_svg_file_handle PASSED [ 21%] |
25 |
tests/test_grid.py::TestGrid::test_to_svg_file_name PASSED [ 22%] |
26 |
tests/test_lattice.py::TestLattice::test_add_many PASSED [ 24%] |
27 |
tests/test_lattice.py::TestLattice::test_add_one PASSED [ 25%] |
28 |
tests/test_lattice.py::TestLattice::test_bars PASSED [ 27%] |
29 |
tests/test_lattice.py::TestLattice::test_bars_different PASSED [ 28%] |
30 |
tests/test_scales.py::TestLinear::test_contains PASSED [ 30%] |
31 |
tests/test_scales.py::TestLinear::test_decimal PASSED [ 31%] |
32 |
tests/test_scales.py::TestLinear::test_no_spread PASSED [ 32%] |
33 |
tests/test_scales.py::TestLinear::test_project PASSED [ 34%] |
34 |
tests/test_scales.py::TestLinear::test_ticks PASSED [ 35%] |
35 |
tests/test_scales.py::TestOrdinal::test_contains PASSED [ 37%] |
36 |
tests/test_scales.py::TestOrdinal::test_project PASSED [ 38%] |
37 |
tests/test_scales.py::TestOrdinal::test_project_interval PASSED [ 40%] |
38 |
tests/test_scales.py::TestOrdinal::test_ticks PASSED [ 41%] |
39 |
tests/test_scales.py::TestTemporal::test_contains PASSED [ 42%] |
40 |
tests/test_scales.py::TestTemporal::test_project PASSED [ 44%] |
41 |
tests/test_scales.py::TestTemporal::test_project_interval PASSED [ 45%] |
42 |
tests/test_scales.py::TestTemporal::test_ticks PASSED [ 47%] |
43 |
tests/test_series.py::TestSeries::test_custom PASSED [ 48%] |
44 |
tests/test_series.py::TestSeries::test_dicts PASSED [ 50%] |
45 |
tests/test_series.py::TestSeries::test_lists PASSED [ 51%] |
46 |
tests/test_series.py::TestSeries::test_pairs PASSED [ 52%] |
47 |
tests/test_series.py::TestCategorySeries::test_triples PASSED [ 54%] |
48 |
tests/test_shapes.py::TestBars::test_nulls PASSED [ 55%] |
49 |
tests/test_shapes.py::TestBars::test_to_svg PASSED [ 57%] |
50 |
tests/test_shapes.py::TestBars::test_validate PASSED [ 58%] |
51 |
tests/test_shapes.py::TestBars::test_zeros PASSED [ 60%] |
52 |
tests/test_shapes.py::TestColumns::test_nulls PASSED [ 61%] |
53 |
tests/test_shapes.py::TestColumns::test_to_svg PASSED [ 62%] |
54 |
tests/test_shapes.py::TestColumns::test_validate PASSED [ 64%] |
55 |
tests/test_shapes.py::TestDots::test_linear PASSED [ 65%] |
56 |
tests/test_shapes.py::TestDots::test_nulls PASSED [ 67%] |
57 |
tests/test_shapes.py::TestDots::test_ordinal PASSED [ 68%] |
58 |
tests/test_shapes.py::TestDots::test_validate PASSED [ 70%] |
59 |
tests/test_shapes.py::TestLine::test_linear PASSED [ 71%] |
60 |
tests/test_shapes.py::TestLine::test_nulls PASSED [ 72%] |
61 |
tests/test_shapes.py::TestLine::test_ordinal PASSED [ 74%] |
62 |
tests/test_shapes.py::TestLine::test_validate PASSED [ 75%] |
63 |
tests/test_ticks.py::TestScoreTicker::test_years PASSED [ 77%] |
64 |
tests/test_ticks.py::TestScoreTimeTicker::test_days PASSED [ 78%] |
65 |
tests/test_ticks.py::TestScoreTimeTicker::test_days_datetime PASSED [ 80%] |
66 |
tests/test_ticks.py::TestScoreTimeTicker::test_days_for_months PASSED [ 81%] |
67 |
tests/test_ticks.py::TestScoreTimeTicker::test_hours PASSED [ 82%] |
68 |
tests/test_ticks.py::TestScoreTimeTicker::test_hours_for_days PASSED [ 84%] |
69 |
tests/test_ticks.py::TestScoreTimeTicker::test_microseconds PASSED [ 85%] |
70 |
tests/test_ticks.py::TestScoreTimeTicker::test_microseconds_for_seconds PASSED [ 87%] |
71 |
tests/test_ticks.py::TestScoreTimeTicker::test_minutes PASSED [ 88%] |
72 |
tests/test_ticks.py::TestScoreTimeTicker::test_minutes_for_hours PASSED [ 90%] |
73 |
tests/test_ticks.py::TestScoreTimeTicker::test_months PASSED [ 91%] |
74 |
tests/test_ticks.py::TestScoreTimeTicker::test_months_datetime PASSED [ 92%] |
75 |
tests/test_ticks.py::TestScoreTimeTicker::test_months_for_years PASSED [ 94%] |
76 |
tests/test_ticks.py::TestScoreTimeTicker::test_seconds PASSED [ 95%] |
77 |
tests/test_ticks.py::TestScoreTimeTicker::test_seconds_for_minutes PASSED [ 97%] |
78 |
tests/test_ticks.py::TestScoreTimeTicker::test_years PASSED [ 98%] |
79 |
tests/test_ticks.py::TestScoreTimeTicker::test_years_datetime PASSED [100%] |
80 |
|
81 |
Reported-py: Michał Górny <mgorny <AT> gentoo.org> |
82 |
Closes: https://bugs.gentoo.org/797313 |
83 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
84 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
85 |
|
86 |
dev-python/leather/Manifest | 1 + |
87 |
dev-python/leather/leather-0.3.3-r1.ebuild | 8 ++++++-- |
88 |
2 files changed, 7 insertions(+), 2 deletions(-) |
89 |
|
90 |
diff --git a/dev-python/leather/Manifest b/dev-python/leather/Manifest |
91 |
index 0d3da570b05..5df59075e1e 100644 |
92 |
--- a/dev-python/leather/Manifest |
93 |
+++ b/dev-python/leather/Manifest |
94 |
@@ -1 +1,2 @@ |
95 |
+DIST leather-0.3.3-src.tar.gz 40522 BLAKE2B 3c7e6a48615751b310b7f066f2a78a2494e00256cae2ebfb4633c9389cca2477c2265fcf8c68f37733568ef729db1a5daf02ddc640bf2a60f2b39127c9a38d91 SHA512 30ea50ac6f97c55ee695b0e175a27e1e64fd17da7b0686ca8595fe0e5067932e19e59368fe6441f8f291ec52be3e597a80f8e04a3fcc0eeae33b3a5b3030e1d6 |
96 |
DIST leather-0.3.3.tar.gz 18391 BLAKE2B 0a81343251fcdea85873fea023e1d709a385b268c2900642764c1a0ae6abfa84d9dece0ef67ae152b716c93c1bdaf9671f8c5df8cf5605694af48e8f3552437a SHA512 3387353d4da129fa3601799efe8742aea08f94579caab7a5a05175ff7ad50a815fc7ca4aee5d1c390027bda3a9bf1ecd1ed5167575386a7a58f56625f5165350 |
97 |
|
98 |
diff --git a/dev-python/leather/leather-0.3.3-r1.ebuild b/dev-python/leather/leather-0.3.3-r1.ebuild |
99 |
index 7339c3ec38f..8677a80398d 100644 |
100 |
--- a/dev-python/leather/leather-0.3.3-r1.ebuild |
101 |
+++ b/dev-python/leather/leather-0.3.3-r1.ebuild |
102 |
@@ -9,11 +9,13 @@ inherit distutils-r1 |
103 |
|
104 |
DESCRIPTION="Python charting for 80% of humans." |
105 |
HOMEPAGE="https://github.com/wireservice/leather https://pypi.org/project/leather/" |
106 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
107 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
108 |
+ test? ( https://github.com/wireservice/leather/archive/refs/tags/${PV}.tar.gz -> ${P}-src.tar.gz ) " |
109 |
LICENSE="MIT" |
110 |
SLOT="0" |
111 |
KEYWORDS="~amd64" |
112 |
-IUSE="+xml" |
113 |
+IUSE="test +xml" |
114 |
+RESTRICT="!test? ( test )" |
115 |
|
116 |
# Other packages have BDEPEND="test? ( dev-python/leather[xml] )" |
117 |
TEST_AGAINST_RDEPEND="xml? ( dev-python/lxml[${PYTHON_USEDEP}] )" |
118 |
@@ -21,3 +23,5 @@ RDEPEND=" |
119 |
${TEST_AGAINST_RDEPEND} |
120 |
>=dev-python/six-1.6.1[${PYTHON_USEDEP}] |
121 |
" |
122 |
+ |
123 |
+distutils_enable_tests pytest |