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/tikzplotlib/
Date: Fri, 05 Feb 2021 21:28:35
Message-Id: 1612560506.558b47c9624d890f0643bd251d8850ff7ec62167.mgorny@gentoo
1 commit: 558b47c9624d890f0643bd251d8850ff7ec62167
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 5 20:33:47 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 5 21:28:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=558b47c9
7
8 dev-python/tikzplotlib: Bump to 0.9.7
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/tikzplotlib/Manifest | 1 +
13 dev-python/tikzplotlib/tikzplotlib-0.9.7.ebuild | 56 +++++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/dev-python/tikzplotlib/Manifest b/dev-python/tikzplotlib/Manifest
17 index 5a84f468a4e..952d9609308 100644
18 --- a/dev-python/tikzplotlib/Manifest
19 +++ b/dev-python/tikzplotlib/Manifest
20 @@ -1 +1,2 @@
21 DIST tikzplotlib-0.9.6.tar.gz 589081 BLAKE2B aacd1374caed3dc86e6a93479b7ed0d0a79a2f96acc3817e630860794dc2f77c0d908d5765ebd500160d8c459b51131645f3633a084627b55aa2f26f5de87add SHA512 447dcd9da8d5cebf68b9f1a1f06d82370d5adf731524ea17c4f570bfd76dfce06e65f92df0ead732a02b42d9bdf6d0fde9e004bff50204cc5e33cca6c014a257
22 +DIST tikzplotlib-0.9.7.tar.gz 589052 BLAKE2B 2960ca341364c003e6c708fa967209c4ab13847f2b7524b926985d73ab146777b314e3df2066c8dcab2ff4c1eb8a46dc4a89f1b85578650cde8c9fb5de5743e9 SHA512 0903f774e3f95612b9b68b4e2254f2c0403e5c603dd41445e359587c4e917c373a12485bc0b8ba30b354eb7b93bb754531489c898dbc4479466c071a2f9b0f3d
23
24 diff --git a/dev-python/tikzplotlib/tikzplotlib-0.9.7.ebuild b/dev-python/tikzplotlib/tikzplotlib-0.9.7.ebuild
25 new file mode 100644
26 index 00000000000..b1d6c8827e1
27 --- /dev/null
28 +++ b/dev-python/tikzplotlib/tikzplotlib-0.9.7.ebuild
29 @@ -0,0 +1,56 @@
30 +# Copyright 2019-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 virtualx
38 +
39 +DESCRIPTION="Convert matplotlib figures into TikZ/PGFPlots"
40 +HOMEPAGE="https://github.com/nschloe/tikzplotlib"
41 +SRC_URI="https://github.com/nschloe/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="MIT"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +
47 +RDEPEND="
48 + app-text/texlive[extra]
49 + $( python_gen_cond_dep \
50 + 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' python3_7 )
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_prepare_all() {
68 + # setup.py was removed in commit f04323cfa575caf8a25a9236f55fe6baf1a33b20
69 + # for some reason, DISTUTULS_USE_SETUPTOOLS="pyproject.toml" is not working
70 + # it complains about file not found, setup.cfg does exist
71 +
72 + cat > setup.py <<EOF || die
73 +from setuptools import setup
74 +
75 +if __name__ == "__main__":
76 + setup()
77 +EOF
78 +
79 + distutils-r1_python_prepare_all
80 +}
81 +
82 +python_test() {
83 + local -x MPLBACKEND=Agg
84 + virtx pytest -vv
85 +}