Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tikzplotlib/
Date: Sat, 26 Jun 2021 20:15:01
Message-Id: 1624738493.0d4169fa343bfc44dd299eb2eb9ff791ecf0adc1.andrewammerlaan@gentoo
1 commit: 0d4169fa343bfc44dd299eb2eb9ff791ecf0adc1
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 26 20:13:18 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 26 20:14:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d4169fa
7
8 dev-python/tikzplotlib: add version 0.9.9
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 dev-python/tikzplotlib/Manifest | 1 +
14 dev-python/tikzplotlib/tikzplotlib-0.9.9.ebuild | 40 +++++++++++++++++++++++++
15 2 files changed, 41 insertions(+)
16
17 diff --git a/dev-python/tikzplotlib/Manifest b/dev-python/tikzplotlib/Manifest
18 index 9579a28104a..babedf63436 100644
19 --- a/dev-python/tikzplotlib/Manifest
20 +++ b/dev-python/tikzplotlib/Manifest
21 @@ -1 +1,2 @@
22 DIST tikzplotlib-0.9.8.tar.gz 589858 BLAKE2B 81bb2ece7d3f5976d928095caa3d8d51b619c97a4b36eea14f4b4477d31e78a978c2eeab81e9829bb9113e70f0035a572a82a229fea61ee08530d57334fda986 SHA512 a2b25d9820fd8185d4e7a03fb0669fa4c9b35aac9b371b0a873174d615bd40615f1fafa4208d2019af0b7ffe80a8eec6b56ad6075104f6c3a4f8f237ad5b4466
23 +DIST tikzplotlib-0.9.9.tar.gz 591659 BLAKE2B c8ed8069387aedc154ea1541c7e4f97cd43a74c384be4810029acf2dd1de348d732c004850b3248ba6a892451afec56fc4de0c6b05c3f4edc7b72b741e46b558 SHA512 3b6bc8b23693b1817b7f8969352bfe45f81762f86d30b9329c3c57fb1897ee5965f5759e357bbe68d21b84ac3e53e5ce80ffafccfac22d9a4a36ce104d5a2966
24
25 diff --git a/dev-python/tikzplotlib/tikzplotlib-0.9.9.ebuild b/dev-python/tikzplotlib/tikzplotlib-0.9.9.ebuild
26 new file mode 100644
27 index 00000000000..7a307bf1c63
28 --- /dev/null
29 +++ b/dev-python/tikzplotlib/tikzplotlib-0.9.9.ebuild
30 @@ -0,0 +1,40 @@
31 +# Copyright 2019-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +DISTUTILS_USE_SETUPTOOLS=pyproject.toml
37 +PYTHON_COMPAT=( python3_{8..9} )
38 +
39 +inherit distutils-r1 virtualx
40 +
41 +DESCRIPTION="Convert matplotlib figures into TikZ/PGFPlots"
42 +HOMEPAGE="https://github.com/nschloe/tikzplotlib"
43 +SRC_URI="https://github.com/nschloe/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +
49 +RDEPEND="
50 + app-text/texlive[extra]
51 + dev-python/matplotlib[latex,${PYTHON_USEDEP}]
52 + dev-python/numpy[${PYTHON_USEDEP}]
53 + dev-python/pillow[${PYTHON_USEDEP}]
54 +"
55 +
56 +BDEPEND="
57 + dev-python/wheel[${PYTHON_USEDEP}]
58 + test? (
59 + dev-python/exdown[${PYTHON_USEDEP}]
60 + dev-python/pandas[${PYTHON_USEDEP}]
61 + dev-python/scipy[${PYTHON_USEDEP}]
62 +)"
63 +
64 +distutils_enable_tests pytest
65 +distutils_enable_sphinx doc dev-python/mock
66 +
67 +python_test() {
68 + local -x MPLBACKEND=Agg
69 + virtx pytest -vv
70 +}