From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B2D4815800F for ; Fri, 17 Feb 2023 10:39:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6F50E0827; Fri, 17 Feb 2023 10:39:06 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C1BA4E0827 for ; Fri, 17 Feb 2023 10:39:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BA2F6341116 for ; Fri, 17 Feb 2023 10:39:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DE3E48AA for ; Fri, 17 Feb 2023 10:39:03 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1676630314.c81c9f363c84d88bc8221276dfa79c6f30004c19.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tikzplotlib/files/, dev-python/tikzplotlib/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/tikzplotlib/Manifest dev-python/tikzplotlib/files/tikzplotlib-0.10.1-matplotlib-3.6.0.patch dev-python/tikzplotlib/tikzplotlib-0.10.1-r1.ebuild dev-python/tikzplotlib/tikzplotlib-0.10.1.ebuild X-VCS-Directories: dev-python/tikzplotlib/files/ dev-python/tikzplotlib/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: c81c9f363c84d88bc8221276dfa79c6f30004c19 X-VCS-Branch: master Date: Fri, 17 Feb 2023 10:39:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 339e63eb-d5d4-4d05-836c-41e08570e815 X-Archives-Hash: 347fc5814a097945d0b3e21ba70f64a8 commit: c81c9f363c84d88bc8221276dfa79c6f30004c19 Author: Sam James gentoo org> AuthorDate: Fri Feb 17 10:33:40 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri Feb 17 10:38:34 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c81c9f36 dev-python/tikzplotlib: enable py3.11, fix running tests Tests are a mess here, they've been failing for a while but the virtx nonfatal sneaky bit meant nobody noticed (now fixed). Applied a patch from a PR upstream to partially fix compat w/ new matplotlib but it only brings us from 34->25 failed tests. Signed-off-by: Sam James gentoo.org> dev-python/tikzplotlib/Manifest | 2 +- .../tikzplotlib-0.10.1-matplotlib-3.6.0.patch | 48 ++++++++++++++++++++++ ...-0.10.1.ebuild => tikzplotlib-0.10.1-r1.ebuild} | 19 ++++++--- 3 files changed, 63 insertions(+), 6 deletions(-) diff --git a/dev-python/tikzplotlib/Manifest b/dev-python/tikzplotlib/Manifest index 3b505fe0be91..a43373fd4058 100644 --- a/dev-python/tikzplotlib/Manifest +++ b/dev-python/tikzplotlib/Manifest @@ -1 +1 @@ -DIST tikzplotlib-0.10.1.tar.gz 98265 BLAKE2B 7664e702afb38580af78f2b0887000215a5a0c2ef57e4f9ca5d1100bcba257365b89aee805e800e3a9b5a992487c1ee9733088dadc53941405c0055336478130 SHA512 13a750d9929db1d4ce4608a296523be55878c702846b0b339c6c002cbdf4e8f7b1ffea84db612d8932a379fafce9b4fe6ab6ce4325bf780f211cc0b885a15818 +DIST tikzplotlib-0.10.1.gh.tar.gz 98265 BLAKE2B 7664e702afb38580af78f2b0887000215a5a0c2ef57e4f9ca5d1100bcba257365b89aee805e800e3a9b5a992487c1ee9733088dadc53941405c0055336478130 SHA512 13a750d9929db1d4ce4608a296523be55878c702846b0b339c6c002cbdf4e8f7b1ffea84db612d8932a379fafce9b4fe6ab6ce4325bf780f211cc0b885a15818 diff --git a/dev-python/tikzplotlib/files/tikzplotlib-0.10.1-matplotlib-3.6.0.patch b/dev-python/tikzplotlib/files/tikzplotlib-0.10.1-matplotlib-3.6.0.patch new file mode 100644 index 000000000000..2c3a0e506cc6 --- /dev/null +++ b/dev-python/tikzplotlib/files/tikzplotlib-0.10.1-matplotlib-3.6.0.patch @@ -0,0 +1,48 @@ +https://github.com/texworld/tikzplotlib/issues/567 +https://github.com/texworld/tikzplotlib/pull/558 + +From f9988eb6aa7cc7d55c0bb528c53e7a8408308939 Mon Sep 17 00:00:00 2001 +From: Paul Kim <44695374+thekpaul@users.noreply.github.com> +Date: Mon, 3 Oct 2022 01:15:21 +0900 +Subject: [PATCH 1/2] Legend Compatibility Issue in texworld#557 + +. + +. +--- a/src/tikzplotlib/_legend.py ++++ b/src/tikzplotlib/_legend.py +@@ -78,7 +78,7 @@ def draw_legend(data, obj): + if alignment: + data["current axes"].axis_options.append(f"legend cell align={{{alignment}}}") + +- if obj._ncol != 1: ++ if obj._ncols != 1: + data["current axes"].axis_options.append(f"legend columns={obj._ncol}") + + # Write styles to data + +From 61f7ea2fb2633f1c0de48f8da1f90a5f9ba078c1 Mon Sep 17 00:00:00 2001 +From: Paul Kim <44695374+thekpaul@users.noreply.github.com> +Date: Wed, 5 Oct 2022 11:30:48 +0900 +Subject: [PATCH 2/2] Backwards Compat for `ncol` + +Co-authored-by: st-- +--- a/src/tikzplotlib/_legend.py ++++ b/src/tikzplotlib/_legend.py +@@ -78,8 +78,13 @@ def draw_legend(data, obj): + if alignment: + data["current axes"].axis_options.append(f"legend cell align={{{alignment}}}") + +- if obj._ncols != 1: +- data["current axes"].axis_options.append(f"legend columns={obj._ncol}") ++ try: ++ ncols = obj._ncols ++ except AttributeError: ++ # backwards-compatibility with matplotlib < 3.6.0 ++ ncols = obj._ncol ++ if ncols != 1: ++ data["current axes"].axis_options.append(f"legend columns={ncols}") + + # Write styles to data + if legend_style: + diff --git a/dev-python/tikzplotlib/tikzplotlib-0.10.1.ebuild b/dev-python/tikzplotlib/tikzplotlib-0.10.1-r1.ebuild similarity index 73% rename from dev-python/tikzplotlib/tikzplotlib-0.10.1.ebuild rename to dev-python/tikzplotlib/tikzplotlib-0.10.1-r1.ebuild index 67419d0063ef..7b21d67ed209 100644 --- a/dev-python/tikzplotlib/tikzplotlib-0.10.1.ebuild +++ b/dev-python/tikzplotlib/tikzplotlib-0.10.1-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=flit -PYTHON_COMPAT=( python3_{9..10} ) +PYTHON_COMPAT=( python3_{9..11} ) inherit distutils-r1 virtualx @@ -13,26 +13,31 @@ HOMEPAGE=" https://github.com/texworld/tikzplotlib/ https://pypi.org/project/tikzplotlib/ " -SRC_URI="https://github.com/texworld/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/texworld/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" +# https://github.com/texworld/tikzplotlib/issues/567 for mpl-3.6.0 dep RDEPEND=" app-text/texlive[extra] - dev-python/matplotlib[latex,${PYTHON_USEDEP}] +