Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/matplotlib2tikz/, dev-python/matplotlib2tikz/files/
Date: Sun, 30 Jul 2017 09:35:02
Message-Id: 1501407226.4b60f1b278a7521bc218e4d1af5b2881e83989f4.soap@gentoo
1 commit: 4b60f1b278a7521bc218e4d1af5b2881e83989f4
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Mon Jul 24 07:08:58 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 30 09:33:46 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b60f1b2
7
8 dev-python/matplotlib2tikz: Version bump to 0.6.11
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11 Closes: https://github.com/gentoo/gentoo/pull/5192
12
13 dev-python/matplotlib2tikz/Manifest | 1 +
14 .../files/matplotlib2tikz-0.6.11-pipdated.patch | 24 +++++++++++++
15 .../matplotlib2tikz/matplotlib2tikz-0.6.11.ebuild | 39 ++++++++++++++++++++++
16 3 files changed, 64 insertions(+)
17
18 diff --git a/dev-python/matplotlib2tikz/Manifest b/dev-python/matplotlib2tikz/Manifest
19 index 3c17d71ae82..ac645618b00 100644
20 --- a/dev-python/matplotlib2tikz/Manifest
21 +++ b/dev-python/matplotlib2tikz/Manifest
22 @@ -1 +1,2 @@
23 +DIST matplotlib2tikz-0.6.11.tar.gz 524298 SHA256 79c9f141fd802fe5863d2eaff6c67476d02ca474433e65990c935241a2591994 SHA512 eda5042f1db35436ca56256cb858fa11b48d497f621183475d69381b0b10ac67f9447522e1b78c1a331337e34eb159b5ffeef9655a8c0dc4ccab22b7afcb5e96 WHIRLPOOL b09025b9444e0a0ec122fbb7d6d90e32e043c3a86e8b7454ac3fdc0ba03374f5648491a4564bae7ef622a536f4ec92e762a68816d64621da6df44fea2c404c8c
24 DIST matplotlib2tikz-0.6.7.tar.gz 523464 SHA256 ba95bbf5f654abccee6c3e9ab9bdd4e7fc6cab5d49def072d1c7a9020b7b602e SHA512 9128eb7cabcd44ed84ac5d9b125dc897d2901cd4d29a8aa6bbd48c35c6418f4b5cd5b8e7c55e7690fe927c704580fe2d83084c37d515c9a25ee67ea476a63e4d WHIRLPOOL f1cd962ebafab85adbd8bbaaf6f565e1312d610bfd7cd0827f60535432ce952ae6e5535860e754ad872cdfffaa70bb72d4cfb676adb91b2624f5ab060969fd7b
25
26 diff --git a/dev-python/matplotlib2tikz/files/matplotlib2tikz-0.6.11-pipdated.patch b/dev-python/matplotlib2tikz/files/matplotlib2tikz-0.6.11-pipdated.patch
27 new file mode 100644
28 index 00000000000..3b7cf2ffbe5
29 --- /dev/null
30 +++ b/dev-python/matplotlib2tikz/files/matplotlib2tikz-0.6.11-pipdated.patch
31 @@ -0,0 +1,24 @@
32 +Remove version checks using pipdated.
33 +
34 +Patch by Marius Brehler <marbre@××××××××××××××.de>
35 +--- a/matplotlib2tikz/__init__.py
36 ++++ b/matplotlib2tikz/__init__.py
37 +@@ -16,7 +16,3 @@ from matplotlib2tikz.__about__ import (
38 + )
39 +
40 + from matplotlib2tikz.save import get_tikz_code, save
41 +-
42 +-import pipdated
43 +-if pipdated.needs_checking(__name__):
44 +- print(pipdated.check(__name__, __version__))
45 +
46 +--- a/setup.py
47 ++++ b/setup.py
48 +@@ -34,7 +34,6 @@ setup(
49 + 'matplotlib >=1.4.0',
50 + 'numpy',
51 + 'Pillow >= 3.0.0',
52 +- 'pipdated',
53 + 'six',
54 + ],
55 + description='convert matplotlib figures into TikZ/PGFPlots',
56
57 diff --git a/dev-python/matplotlib2tikz/matplotlib2tikz-0.6.11.ebuild b/dev-python/matplotlib2tikz/matplotlib2tikz-0.6.11.ebuild
58 new file mode 100644
59 index 00000000000..437c6ed6f55
60 --- /dev/null
61 +++ b/dev-python/matplotlib2tikz/matplotlib2tikz-0.6.11.ebuild
62 @@ -0,0 +1,39 @@
63 +# Copyright 1999-2017 Gentoo Foundation
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=6
67 +
68 +PYTHON_COMPAT=( python2_7 python3_{4,5} )
69 +
70 +inherit distutils-r1 virtualx
71 +
72 +DESCRIPTION="Convert matplotlib figures into TikZ/PGFPlots"
73 +HOMEPAGE="https://github.com/nschloe/matplotlib2tikz"
74 +SRC_URI="https://github.com/nschloe/matplotlib2tikz/archive/v${PV}.tar.gz -> ${P}.tar.gz"
75 +KEYWORDS="~amd64"
76 +
77 +LICENSE="MIT"
78 +SLOT="0"
79 +IUSE="test"
80 +
81 +PATCHES=( "${FILESDIR}/${P}-pipdated.patch" )
82 +
83 +RDEPEND="
84 + dev-python/matplotlib[${PYTHON_USEDEP}]
85 + dev-python/numpy[${PYTHON_USEDEP}]
86 + dev-python/pillow[${PYTHON_USEDEP}]"
87 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
88 + test? (
89 + ${RDEPEND}
90 + dev-python/ImageHash[${PYTHON_USEDEP}]
91 + dev-python/pytest[${PYTHON_USEDEP}]
92 + dev-tex/pgf
93 + )"
94 +
95 +# we have not succeeded in getting the tests to work yet ;-)
96 +RESTRICT="test"
97 +
98 +python_test() {
99 + local -x MPLBACKEND=Agg
100 + virtx py.test -v || die "Tests failed with ${EPYTHON}"
101 +}